Versions in this module Expand all Collapse all v0 v0.7.1 Jan 24, 2025 v0.7.0 Sep 16, 2024 Changes in this version + var ItemDecodeError = errors.New("item decode error") + type DynamoDBClient interface + GetItem func(ctx context.Context, params *dynamodb.GetItemInput, ...) (*dynamodb.GetItemOutput, error) + Options func() dynamodb.Options + PutItem func(ctx context.Context, params *dynamodb.PutItemInput, ...) (*dynamodb.PutItemOutput, error) + Query func(ctx context.Context, params *dynamodb.QueryInput, ...) (*dynamodb.QueryOutput, error) + type Metastore struct + func NewDynamoDB(opts ...Option) (*Metastore, error) + func (d *Metastore) GetClient() DynamoDBClient + func (d *Metastore) GetRegionSuffix() string + func (d *Metastore) GetTableName() string + func (d *Metastore) Load(ctx context.Context, keyID string, created int64) (*appencryption.EnvelopeKeyRecord, error) + func (d *Metastore) LoadLatest(ctx context.Context, keyID string) (*appencryption.EnvelopeKeyRecord, error) + func (d *Metastore) Store(ctx context.Context, keyID string, created int64, ...) (bool, error) + type Option func(*Metastore) + func WithDynamoDBClient(client DynamoDBClient) Option + func WithRegionSuffix(enabled bool) Option + func WithTableName(name string) Option