Documentation ¶
Index ¶
- func NewEtcdStateStore(logger logger.Logger) state.Store
- func NewTLSConfig(clientCert, clientKey, caCert string) (*tls.Config, error)
- type Etcd
- func (e *Etcd) Close() error
- func (e *Etcd) Delete(ctx context.Context, req *state.DeleteRequest) error
- func (e *Etcd) Features() []state.Feature
- func (e *Etcd) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)
- func (e *Etcd) GetComponentMetadata() map[string]string
- func (e *Etcd) Init(_ context.Context, metadata state.Metadata) error
- func (e *Etcd) Multi(ctx context.Context, request *state.TransactionalStateRequest) error
- func (e *Etcd) ParseClientFromConfig(etcdConfig *etcdConfig) (*clientv3.Client, error)
- func (e *Etcd) Ping() error
- func (e *Etcd) Set(ctx context.Context, req *state.SetRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEtcdStateStore ¶ added in v1.11.0
NewEtcdStateStore returns a new etcd state store.
Types ¶
type Etcd ¶ added in v1.11.0
Etcd is a state store implementation for Etcd.
func (*Etcd) Features ¶ added in v1.11.0
Features returns the features available in this state store.
func (*Etcd) Get ¶ added in v1.11.0
func (e *Etcd) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)
Get retrieves a Etcd KV item.
func (*Etcd) GetComponentMetadata ¶ added in v1.11.0
func (*Etcd) Init ¶ added in v1.11.0
Init does metadata and config parsing and initializes the Etcd client.
func (*Etcd) Multi ¶ added in v1.11.0
Multi performs a transactional operation. succeeds only if all operations succeed, and fails if one or more operations fail.
func (*Etcd) ParseClientFromConfig ¶ added in v1.11.0
Click to show internal directories.
Click to hide internal directories.