Documentation
¶
Overview ¶
Code generated by generate-cached. DO NOT EDIT.
Index ¶
- type AwsClient
- type DynamoDBRepository
- func (r *DynamoDBRepository) GetRegion() ptypes.AwsRegion
- func (r *DynamoDBRepository) GetTableTags(table *types.TableDescription) ([]types.Tag, error)
- func (r *DynamoDBRepository) ListTablesAll() ([]Table, error)
- func (r *DynamoDBRepository) ListTablesByInput(query *awsdynamo.ListTablesInput) ([]Table, error)
- func (r *DynamoDBRepository) WithCache(dc *cache.DataCache) *DynamoDBRepositoryCached
- type DynamoDBRepositoryCached
- type Table
- type TableList
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
func (r *DynamoDBRepository) WithCache(dc *cache.DataCache) *DynamoDBRepositoryCached
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 (Table) GetTagValue ¶
Click to show internal directories.
Click to hide internal directories.