Documentation ¶
Index ¶
- func NewDynamoDBStateStore(_ logger.Logger) state.Store
- type StateStore
- func (d *StateStore) BulkDelete(ctx context.Context, req []state.DeleteRequest) error
- func (d *StateStore) BulkSet(ctx context.Context, req []state.SetRequest) error
- func (d *StateStore) Delete(ctx context.Context, req *state.DeleteRequest) error
- func (d *StateStore) Features() []state.Feature
- func (d *StateStore) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)
- func (d *StateStore) GetComponentMetadata() map[string]string
- func (d *StateStore) Init(_ context.Context, metadata state.Metadata) error
- func (d *StateStore) Multi(ctx context.Context, request *state.TransactionalStateRequest) error
- func (d *StateStore) Set(ctx context.Context, req *state.SetRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StateStore ¶
StateStore is a DynamoDB state store.
func (*StateStore) BulkDelete ¶
func (d *StateStore) BulkDelete(ctx context.Context, req []state.DeleteRequest) error
BulkDelete performs a bulk delete operation.
func (*StateStore) BulkSet ¶
func (d *StateStore) BulkSet(ctx context.Context, req []state.SetRequest) error
BulkSet performs a bulk set operation.
func (*StateStore) Delete ¶
func (d *StateStore) Delete(ctx context.Context, req *state.DeleteRequest) error
Delete performs a delete operation.
func (*StateStore) Features ¶ added in v1.1.1
func (d *StateStore) Features() []state.Feature
Features returns the features available in this state store.
func (*StateStore) Get ¶
func (d *StateStore) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)
Get retrieves a dynamoDB item.
func (*StateStore) GetComponentMetadata ¶ added in v1.10.1
func (d *StateStore) GetComponentMetadata() map[string]string
func (*StateStore) Multi ¶ added in v1.11.0
func (d *StateStore) Multi(ctx context.Context, request *state.TransactionalStateRequest) error
Multi performs a transactional operation. succeeds only if all operations succeed, and fails if one or more operations fail.
func (*StateStore) Set ¶
func (d *StateStore) Set(ctx context.Context, req *state.SetRequest) error
Set saves a dynamoDB item.
Click to show internal directories.
Click to hide internal directories.