Documentation ¶
Index ¶
- func NewConsulStateStore(logger logger.Logger) state.Store
- type Consul
- func (c *Consul) Delete(ctx context.Context, req *state.DeleteRequest) error
- func (c *Consul) Features() []state.Feature
- func (c *Consul) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)
- func (c *Consul) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
- func (c *Consul) Init(_ context.Context, metadata state.Metadata) error
- func (c *Consul) Set(ctx context.Context, req *state.SetRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Consul ¶
Consul is a state store implementation for HashiCorp Consul.
func (*Consul) Features ¶ added in v1.1.1
Features returns the features available in this state store.
func (*Consul) Get ¶
func (c *Consul) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)
Get retrieves a Consul KV item.
func (*Consul) GetComponentMetadata ¶ added in v1.10.1
func (c *Consul) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
Click to show internal directories.
Click to hide internal directories.