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 ¶
NewEtcdStateStore returns a new etcd state store.
Types ¶
type Etcd ¶
Etcd is a state store implementation for Etcd.
func (*Etcd) Get ¶
func (e *Etcd) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)
Get retrieves a Etcd KV item.
func (*Etcd) GetComponentMetadata ¶
func (*Etcd) Multi ¶
Multi performs a transactional operation. succeeds only if all operations succeed, and fails if one or more operations fail.
func (*Etcd) ParseClientFromConfig ¶
Click to show internal directories.
Click to hide internal directories.