Documentation ¶
Index ¶
- func NewEtcdStateStoreV1(logger logger.Logger) state.Store
- func NewEtcdStateStoreV2(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() (metadataInfo metadata.MetadataMap)
- func (e *Etcd) Init(_ context.Context, metadata state.Metadata) error
- func (e *Etcd) Multi(ctx context.Context, request *state.TransactionalStateRequest) error
- func (e *Etcd) MultiMaxSize() int
- 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 NewEtcdStateStoreV1 ¶ added in v1.12.0
NewEtcdStateStoreV1 returns a new etcd state store for schema V1.
func NewEtcdStateStoreV2 ¶ added in v1.12.0
NewEtcdStateStoreV2 returns a new etcd state store for schema V2.
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 (e *Etcd) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
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) MultiMaxSize ¶ added in v1.12.0
MultiMaxSize returns the maximum number of operations allowed in a transaction. For Etcd the default is 128, but this can be configured via the server flag --max-txn-ops. As such we are using the component metadata value maxTxnOps.