 Documentation
      ¶
      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 ¶
NewEtcdStateStoreV1 returns a new etcd state store for schema V1.
func NewEtcdStateStoreV2 ¶
NewEtcdStateStoreV2 returns a new etcd state store for schema V2.
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 (e *Etcd) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
func (*Etcd) Multi ¶
Multi performs a transactional operation. succeeds only if all operations succeed, and fails if one or more operations fail.
func (*Etcd) MultiMaxSize ¶
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.
func (*Etcd) ParseClientFromConfig ¶
 Click to show internal directories. 
   Click to hide internal directories.