dynamodb

package
v0.0.0-...-ebde46d Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

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