dynamo

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReleaseStore

func NewReleaseStore(tableName string) (store.ReleaseStore, error)

NewReleaseStore Creates a new ReleaseStore

Types

type ReleaseStore

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

ReleaseStore stores and retrieves releases from a DynamoDB table

func (ReleaseStore) Delete

func (rs ReleaseStore) Delete(uniqueID string) error

Delete deletes a release by it's UniqueID

func (ReleaseStore) Get

func (rs ReleaseStore) Get(uniqueID string) (*store.Release, error)

Get gets a release by it's UniqueID

func (ReleaseStore) List

func (rs ReleaseStore) List(selector map[string]string) (store.Releases, error)

List returns releases from DynamoDB

func (ReleaseStore) Load

func (rs ReleaseStore) Load(releases store.Releases) error

Load bulk-writes releases to DynamoDB

func (ReleaseStore) Put

func (rs ReleaseStore) Put(r store.Release) error

Put creates or updates a release in DynamoDB

func (ReleaseStore) Setup

func (rs ReleaseStore) Setup() error

Setup creates the table in DynamoDB if it doesn't exist. This call waits on the creation of the table to return

Jump to

Keyboard shortcuts

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