dynamodb

package
v1.11.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 17 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDynamoDBStateStore

func NewDynamoDBStateStore(_ logger.Logger) state.Store

NewDynamoDBStateStore returns a new dynamoDB state store.

Types

type StateStore

type StateStore struct {
	state.BulkStore
	// contains filtered or unexported fields
}

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

Get retrieves a dynamoDB item.

func (*StateStore) GetComponentMetadata added in v1.10.1

func (d *StateStore) GetComponentMetadata() map[string]string

func (*StateStore) Init

func (d *StateStore) Init(_ context.Context, metadata state.Metadata) error

Init does metadata and connection parsing.

func (*StateStore) 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 (*StateStore) Set

func (d *StateStore) Set(ctx context.Context, req *state.SetRequest) error

Set saves a dynamoDB item.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL