Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamoDB ¶
type DynamoDB struct {
// contains filtered or unexported fields
}
DynamoDB represents a datastore that uses dynamodb under the hood
func New ¶
func New(client *awsdynamodb.DynamoDB, table string) (*DynamoDB, error)
New creates a new DynamoDB-based datastore
func (*DynamoDB) DeleteSnapshotInfo ¶
func (d *DynamoDB) DeleteSnapshotInfo(info *datastore.SnapshotInfo) error
DeleteSnapshotInfo deletes the given info from the database
func (*DynamoDB) GetLatestSnapshotInfo ¶
func (d *DynamoDB) GetLatestSnapshotInfo(resource datastore.SnapshotResource) (*datastore.SnapshotInfo, error)
GetLatestSnapshotInfo returns the latest snapshot info found in the datastore
func (*DynamoDB) StoreSnapshotInfo ¶
func (d *DynamoDB) StoreSnapshotInfo(info *datastore.SnapshotInfo) error
StoreSnapshotInfo stores the given snapshot info in the datastore
Click to show internal directories.
Click to hide internal directories.