dynamodb

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

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
	DynamoDB() *dynamodb.Client
}

type DynamoDBRepository

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

func NewDynamoDBRepository

func NewDynamoDBRepository(ctx context.Context, client AwsClient) *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 *dynamodb.ListTablesInput) ([]Table, error)

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