Skip to content

Commit

Permalink
[WIP][apricot] A Processor and Repository for Configuration Templates
Browse files Browse the repository at this point in the history
This looks to create apricot as a standalone binary.
Its primary interface is protos/apricot.proto, and it serves as a shim
daemon (apricot/server.go) for configuration.Service, the non-remote
implementation of the apricot.Service interface.

A remote interface will be apricot/client.go, and this too should
implement apricot.Service.

Most code should be further refactored so that using the interface makes
all calls indistinguishable whether the call is compiled-in, or a gRPC
call implemented in apricot.Client.

coconut should then be cleaned up and Consul KV access code should be
deduplicated. In the end, consul conf should mostly remain as a thin
wrapper around apricot.Client.
  • Loading branch information
teo committed Jan 5, 2021
1 parent fbee2b9 commit 99dd53b
Show file tree
Hide file tree
Showing 26 changed files with 1,612 additions and 271 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ WHAT_walnut_BUILD_FLAGS=$(BUILD_ENV_FLAGS)
INSTALL_WHAT:=$(patsubst %, install_%, $(WHAT))


GENERATE_DIRS := ./core ./executor ./coconut/cmd ./odcshim ./walnut
SRC_DIRS := ./cmd/* ./core ./coconut ./executor ./common ./configuration ./occ/peanut ./odcshim ./walnut
GENERATE_DIRS := ./apricot ./core ./executor ./coconut/cmd ./odcshim ./walnut
SRC_DIRS := ./apricot ./cmd/* ./core ./coconut ./executor ./common ./configuration ./occ/peanut ./odcshim ./walnut

# Use linker flags to provide version/build settings to the target
PROD :=-X=$(REPOPATH)/common/product
Expand Down
1 change: 1 addition & 0 deletions apricot/client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package apricot
Loading

0 comments on commit 99dd53b

Please sign in to comment.