open-consul/agent/consul/state
Daniel Nephin 7e4d693aaa state: support for functional indexers
These new functional indexers provide a few advantages:

1. enterprise differences can be isolated to a single function (the
   indexer function), making code easier to change
2. as a consequence of (1) we no longer need to wrap all the calls to
   Txn operations, making code easier to read.
3. by removing reflection we should increase the performance of all
   operations.

One important change is in making all the function signatures the same.

https://blog.golang.org/errors-are-values

An extra boolean return value for SingleIndexer.FromObject is superfluous.
The error value can indicate when the index value could not be created.
By removing this extra return value we can use the same signature for both
indexer functions.

This has the nice properly of a function being usable for both indexing operations.
2021-02-19 17:14:46 -05:00
..
testdata state: support for functional indexers 2021-02-19 17:14:46 -05:00
acl.go state: Use the tableIndex constant 2021-02-05 18:37:45 -05:00
acl_events.go
acl_events_test.go acl: global tokens created by auth methods now correctly replicate to secondary datacenters (#9351) 2020-12-09 15:22:29 -06:00
acl_oss.go state: Move ACL schema indexes to match Ent 2021-01-28 20:05:09 -05:00
acl_schema.go state: Move ACL schema indexes to match Ent 2021-01-28 20:05:09 -05:00
acl_test.go acl: global tokens created by auth methods now correctly replicate to secondary datacenters (#9351) 2020-12-09 15:22:29 -06:00
autopilot.go state: remove the need for registerSchema 2021-02-05 12:19:56 -05:00
autopilot_test.go Switch to using the external autopilot module 2020-11-09 09:22:11 -05:00
catalog.go state: remove duplicate index on the checks table 2021-02-19 17:14:46 -05:00
catalog_events.go structs: rename EnterpriseMeta constructor 2021-02-16 14:45:43 -05:00
catalog_events_test.go structs: rename EnterpriseMeta constructor 2021-02-16 14:45:43 -05:00
catalog_oss.go state: remove duplicate index on the checks table 2021-02-19 17:14:46 -05:00
catalog_schema.go state: support for functional indexers 2021-02-19 17:14:46 -05:00
catalog_test.go state: Remove unnecessary entMeta arg to EnsureConfigEntry 2021-02-03 18:10:38 -05:00
config_entry.go structs: rename EnterpriseMeta constructor 2021-02-16 14:45:43 -05:00
config_entry_intention.go state: rename config-entries table const to match new pattern 2021-01-28 20:34:34 -05:00
config_entry_intention_oss.go
config_entry_oss.go state: rename config-entries table const to match new pattern 2021-01-28 20:34:34 -05:00
config_entry_schema.go state: rename config-entries table const to match new pattern 2021-01-28 20:34:34 -05:00
config_entry_test.go state: Remove unnecessary entMeta arg to EnsureConfigEntry 2021-02-03 18:10:38 -05:00
connect_ca.go state: remove the need for registerSchema 2021-02-05 12:19:56 -05:00
connect_ca_test.go state: rename connect constants 2021-02-05 12:12:19 -05:00
coordinate.go state: remove the need for registerSchema 2021-02-05 12:19:56 -05:00
coordinate_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
delay_oss.go
delay_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
federation_state.go state: remove the need for registerSchema 2021-02-05 12:19:56 -05:00
graveyard.go
graveyard_oss.go
graveyard_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
index_connect.go
index_connect_test.go
index_service_kind.go
indexer.go state: support for functional indexers 2021-02-19 17:14:46 -05:00
intention.go Merge pull request #9719 from hashicorp/oss/state-store-4 2021-02-05 14:02:38 -05:00
intention_oss.go state: rename table name constants to use pattern 2021-02-05 12:12:19 -05:00
intention_test.go Merge pull request #9718 from hashicorp/oss/dnephin/ent-meta-in-state-store-3 2021-02-05 14:02:07 -05:00
kvs.go state: remove the need for registerSchema 2021-02-05 12:19:56 -05:00
kvs_oss.go state: Use the tableIndex constant 2021-02-05 18:37:45 -05:00
kvs_test.go
memdb.go
operations_oss.go
prepared_query.go state: remove the need for registerSchema 2021-02-05 12:19:56 -05:00
prepared_query_index.go
prepared_query_index_test.go
prepared_query_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
schema.go state: Use the tableIndex constant 2021-02-05 18:37:45 -05:00
schema_oss_test.go state: add a regression test for state store schema 2021-01-15 18:49:55 -05:00
schema_test.go state: support for functional indexers 2021-02-19 17:14:46 -05:00
session.go state: remove the need for registerSchema 2021-02-05 12:19:56 -05:00
session_oss.go Add a paramter in state store methods to indicate whether a resource insertion is from a snapshot restoration (#9156) 2020-11-11 11:21:42 -05:00
session_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
state_store.go state: Use the tableIndex constant 2021-02-05 18:37:45 -05:00
state_store_oss_test.go
state_store_test.go
store_integration_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
system_metadata.go state: remove the need for registerSchema 2021-02-05 12:19:56 -05:00
system_metadata_test.go
tombstone_gc.go
tombstone_gc_test.go
txn.go
txn_test.go
usage.go state: remove the need for registerSchema 2021-02-05 12:19:56 -05:00
usage_oss.go Fix bug in usage metrics when multiple service instances are changed in a single transaction (#9440) 2021-01-12 15:31:47 -06:00
usage_oss_test.go
usage_test.go Fix bug in usage metrics when multiple service instances are changed in a single transaction (#9440) 2021-01-12 15:31:47 -06:00