dynamodb

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Code generated by generate-cached. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsClient

type AwsClient interface {
	GetRegion() ptypes.AwsRegion
	GetAccountID() ptypes.AwsAccountID
}

type DynamoDBRepository

type DynamoDBRepository struct {
	// contains filtered or unexported fields
}

func NewDynamoDBRepository

func NewDynamoDBRepository(ctx context.Context, client *v3.Client) *DynamoDBRepository

func (*DynamoDBRepository) GetRegion

func (r *DynamoDBRepository) GetRegion() ptypes.AwsRegion

func (*DynamoDBRepository) GetTableTags

func (r *DynamoDBRepository) GetTableTags(table *types.TableDescription) ([]types.Tag, error)

func (*DynamoDBRepository) ListTablesAll

func (r *DynamoDBRepository) ListTablesAll() ([]Table, error)

func (*DynamoDBRepository) ListTablesByInput

func (r *DynamoDBRepository) ListTablesByInput(query *awsdynamo.ListTablesInput) ([]Table, error)

func (*DynamoDBRepository) WithCache added in v0.4.0

WithCache returns a DynamoDBRepositoryCached that stores/retrieves results via the given DataCache. The cache namespace is set to "<accountID>:<region>".

type DynamoDBRepositoryCached added in v0.4.0

type DynamoDBRepositoryCached struct {
	// contains filtered or unexported fields
}

DynamoDBRepositoryCached wraps DynamoDBRepository and caches results of Get*/List* calls.

func (*DynamoDBRepositoryCached) GetTableTags added in v0.4.0

func (c *DynamoDBRepositoryCached) GetTableTags(table *types.TableDescription) ([]types.Tag, error)

GetTableTags returns cached results when available, otherwise delegates to the underlying repository.

func (*DynamoDBRepositoryCached) ListTablesAll added in v0.4.0

func (c *DynamoDBRepositoryCached) ListTablesAll() ([]Table, error)

ListTablesAll returns cached results when available, otherwise delegates to the underlying repository.

func (*DynamoDBRepositoryCached) ListTablesByInput added in v0.4.0

func (c *DynamoDBRepositoryCached) ListTablesByInput(query *awsdynamo.ListTablesInput) ([]Table, error)

ListTablesByInput returns cached results when available, otherwise delegates to the underlying repository.

type Table

type Table struct {
	service.AbstractResource
	*types.TableDescription
	Tags []types.Tag
}

func NewTable

func NewTable(client AwsClient, table *types.TableDescription, tags []types.Tag) Table

func (Table) GetName

func (e Table) GetName() string

func (Table) GetTagValue

func (e Table) GetTagValue(tag string) string

func (Table) GetTags

func (e Table) GetTags() map[string]string

type TableList

type TableList struct {
	Items []Table
}

Jump to

Keyboard shortcuts

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