Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISync ¶
type ISync interface { // Init is used by the sync provider to initialize its data structures and external dependencies. Init(ctx context.Context) error // Sync is the contract between Runtime and sync implementation. // Note that, it is expected to return the first data sync as soon as possible to fill the store. Sync(ctx context.Context, dataSync chan<- DataSync) error // ReSync is used to fetch the full flag configuration from the sync // This method should trigger an ALL sync operation then exit ReSync(ctx context.Context, dataSync chan<- DataSync) error // IsReady shall return true if the provider is ready to communicate with the Runtime IsReady() bool }
ISync implementations watch for changes in the flag sources (HTTP backend, local file, K8s CRDs ...),fetch the latest value and communicate to the Runtime with DataSync channel
type Type ¶
type Type int
const ( // ALL - All flags of sync provider. This is the default if unset due to primitive default ALL Type = iota // ADD - Additional flags from sync provider ADD // UPDATE - Update for flag(s) previously provided UPDATE // DELETE - Delete for flag(s) previously provided DELETE )
Type of the sync operation
Directories ¶
Path | Synopsis |
---|---|
credentials/mock
Package credendialsmock is a generated GoMock package.
|
Package credendialsmock is a generated GoMock package. |
mock
Package grpcmock is a generated GoMock package.
|
Package grpcmock is a generated GoMock package. |
mock
Package syncmock is a generated GoMock package.
|
Package syncmock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.