dynamodb

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 20 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDynamoDBStateStore

func NewDynamoDBStateStore(logger 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) Close added in v1.15.0

func (d *StateStore) Close() error

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() (metadataInfo metadata.MetadataMap)

func (*StateStore) Init

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

Init does metadata and connection parsing

func (*StateStore) InitWithOptions added in v1.17.0

func (d *StateStore) InitWithOptions(ctx context.Context, metadata state.Metadata, opts ...awsCommon.ConfigOption) error

InitWithOptions does metadata and connection parsing and extra aws options

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) MultiMaxSize added in v1.12.0

func (d *StateStore) MultiMaxSize() int

MultiMaxSize returns the maximum number of operations allowed in a transaction. For AWS DynamoDB, that's 100.

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