consul

package
v1.11.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsulStateStore

func NewConsulStateStore(logger logger.Logger) state.Store

NewConsulStateStore returns a new consul state store.

Types

type Consul

type Consul struct {
	state.BulkStore
	// contains filtered or unexported fields
}

Consul is a state store implementation for HashiCorp Consul.

func (*Consul) Delete

func (c *Consul) Delete(ctx context.Context, req *state.DeleteRequest) error

Delete performes a Consul KV delete operation.

func (*Consul) Features added in v1.1.1

func (c *Consul) Features() []state.Feature

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() map[string]string

func (*Consul) Init

func (c *Consul) Init(_ context.Context, metadata state.Metadata) error

Init does metadata and config parsing and initializes the Consul client.

func (*Consul) Set

func (c *Consul) Set(ctx context.Context, req *state.SetRequest) error

Set saves a Consul KV item.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL