Documentation
¶
Index ¶
- type Client
- type ClientImpl
- func (c *ClientImpl) DeleteMultiple(ctx context.Context, rows []*TagRow) error
- func (c *ClientImpl) FindByDigest(ctx context.Context, digest string) (*TagRow, error)
- func (c *ClientImpl) FindByTag(ctx context.Context, tag string) (*TagRow, error)
- func (c *ClientImpl) GetAll(ctx context.Context) ([]*TagRow, error)
- func (c *ClientImpl) GetByObjectKey(ctx context.Context, objectKey string) ([]*TagRow, error)
- func (c *ClientImpl) GetByTagPrefix(ctx context.Context, tagPrefix string) ([]*TagRow, error)
- func (c *ClientImpl) PutMultiple(ctx context.Context, rows []*TagRow) error
- type DynamoDBTagRow
- type PutMultipleParam
- type TagRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
PutMultiple(ctx context.Context, rows []*TagRow) error
FindByTag(ctx context.Context, tag string) (*TagRow, error)
FindByDigest(ctx context.Context, digest string) (*TagRow, error)
GetAll(ctx context.Context) ([]*TagRow, error)
GetByTagPrefix(ctx context.Context, tagPrefix string) ([]*TagRow, error)
GetByObjectKey(ctx context.Context, objectKey string) ([]*TagRow, error)
DeleteMultiple(ctx context.Context, rows []*TagRow) error
}
type ClientImpl ¶
type ClientImpl struct {
// contains filtered or unexported fields
}
func NewClientImpl ¶
func NewClientImpl(cfg aws.Config, tableName string) *ClientImpl
func (*ClientImpl) DeleteMultiple ¶
func (c *ClientImpl) DeleteMultiple(ctx context.Context, rows []*TagRow) error
func (*ClientImpl) FindByDigest ¶
func (*ClientImpl) GetByObjectKey ¶
func (*ClientImpl) GetByTagPrefix ¶
func (*ClientImpl) PutMultiple ¶
func (c *ClientImpl) PutMultiple(ctx context.Context, rows []*TagRow) error
type DynamoDBTagRow ¶
type DynamoDBTagRow struct {
Type string `dynamodbav:"type"` // PK
Tag string `dynamodbav:"tag"` // SK, GSI1SK
ObjectKey string `dynamodbav:"object_key"` // GSI1PK
UpdatedAt attributevalue.UnixTime `dynamodbav:"updated_at"`
}
func (*DynamoDBTagRow) GetKey ¶
func (r *DynamoDBTagRow) GetKey() map[string]types.AttributeValue
func (*DynamoDBTagRow) ToTagRow ¶
func (r *DynamoDBTagRow) ToTagRow() *TagRow
type PutMultipleParam ¶
Click to show internal directories.
Click to hide internal directories.