open-consul/agent/consul/state
Matt Keeler 8431c5f533
Add support for implementing new requests with protobufs instea… (#6502)
* Add build system support for protobuf generation

This is done generically so that we don’t have to keep updating the makefile to add another proto generation.

Note: anything not in the vendor directory and with a .proto extension will be run through protoc if the corresponding namespace.pb.go file is not up to date.

If you want to rebuild just a single proto file you can do so with: make proto-rebuild PROTOFILES=<list of proto files to rebuild>

Providing the PROTOFILES var will override the default behavior of finding all the .proto files.

* Start adding types to the agent/proto package

These will be needed for some other work and are by no means comprehensive.

* Add ability to resolve/fixup the agentpb.ACLLinks structure in the state store.

* Use protobuf marshalling of raft requests instead of msgpack for protoc generated types.

This does not change any encoding of existing types.

* Removed structs package automatically encoding with protobuf marshalling

Instead the caller of raftApply that wants to opt-in to protobuf encoding will have to call `raftApplyProtobuf`

* Run update-vendor to fixup modules.txt

Nothing changed as far as dependencies go but the ordering of modules in that file depends on the time they are first seen and its not alphabetical.

* Rename some things and implement the structs.RPCInfo interface bits

agentpb.QueryOptions and agentpb.WriteRequest implement 3 of the 4 RPCInfo funcs and the new TargetDatacenter message type implements the fourth.

* Use the right encoding function.

* Renamed agent/proto package to agent/agentpb to prevent package name conflicts

* Update modules.txt to fix ordering

* Change blockingQuery to take in interfaces for the query options and meta

* Add %T to error output.

* Add/Update some comments
2019-09-20 14:37:22 -04:00
..
acl.go Add support for implementing new requests with protobufs instea… (#6502) 2019-09-20 14:37:22 -04:00
acl_test.go Add support for implementing new requests with protobufs instea… (#6502) 2019-09-20 14:37:22 -04:00
autopilot.go fix ignored errors in state store internals as reported by errcheck 2019-03-01 14:18:00 -06:00
autopilot_test.go Move autopilot to a standalone package 2017-12-11 16:45:33 -08:00
catalog.go Display IPs of machines when node names conflict to ease troubleshooting 2019-08-28 15:57:05 -04:00
catalog_test.go Fixed typos in comments (#6175) 2019-07-19 07:54:53 -04:00
config_entry.go connect: generate the full SNI names for discovery targets in the compiler rather than in the xds package (#6340) 2019-08-19 13:03:03 -05:00
config_entry_test.go connect: detect and prevent circular discovery chain references (#6246) 2019-08-02 09:18:45 -05:00
connect_ca.go connect: generate the full SNI names for discovery targets in the compiler rather than in the xds package (#6340) 2019-08-19 13:03:03 -05:00
connect_ca_test.go connect: generate the full SNI names for discovery targets in the compiler rather than in the xds package (#6340) 2019-08-19 13:03:03 -05:00
coordinate.go Creates a registration mechanism for schemas. 2017-11-29 18:36:52 -08:00
coordinate_test.go Fill out the tests around coordinate/node functionality 2017-10-31 15:36:44 -07:00
delay.go Spelling (#3958) 2018-03-19 16:56:00 +00:00
delay_test.go
graveyard.go
graveyard_test.go
index_connect.go Add Proxy Upstreams to Service Definition (#4639) 2018-10-10 16:55:34 +01:00
index_connect_test.go Add Proxy Upstreams to Service Definition (#4639) 2018-10-10 16:55:34 +01:00
index_service_kind.go Implement Mesh Gateways 2019-07-01 16:28:30 -04:00
intention.go Fix hot loop in cache for RPC returning zero index. 2018-06-25 12:25:37 -07:00
intention_test.go fix typos reported by golangci-lint:misspell (#5434) 2019-03-06 11:13:28 -06:00
kvs.go kv: do not trigger watches when setting the same value (#5885) 2019-06-18 15:06:29 +02:00
kvs_test.go kv: do not trigger watches when setting the same value (#5885) 2019-06-18 15:06:29 +02:00
prepared_query.go Creates a registration mechanism for schemas. 2017-11-29 18:36:52 -08:00
prepared_query_index.go
prepared_query_index_test.go
prepared_query_test.go agent: fix formatting 2018-11-07 02:16:03 -08:00
schema.go Creates a registration mechanism for schemas. 2017-11-29 18:36:52 -08:00
schema_test.go
session.go Creates a registration mechanism for schemas. 2017-11-29 18:36:52 -08:00
session_test.go
state_store.go Fix Internal.ServiceDump blocking (#6076) 2019-07-04 16:17:49 +01:00
state_store_test.go Connect: Make Connect health queries unblock correctly (#5508) 2019-03-21 16:01:56 +00:00
tombstone_gc.go Sheds monotonic time info so tombstone GC bins work properly. 2017-11-29 10:34:24 -08:00
tombstone_gc_test.go Sheds monotonic time info so tombstone GC bins work properly. 2017-11-29 10:34:24 -08:00
txn.go txn: clean up some state store/acl code 2019-01-09 11:59:23 -08:00
txn_test.go api: add support for new txn operations 2018-12-12 10:54:09 -08:00