datastore

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReleaseStore

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

ReleaseStore stores and retrieves releases from a GCP Datastore table

func NewReleaseStore

func NewReleaseStore(serviceAccountFile string) (*ReleaseStore, error)

NewReleaseStore creates a new ReleaseStore

func (ReleaseStore) Delete

func (rs ReleaseStore) Delete(ctx context.Context, uniqueID string) error

Delete deletes a release by it's UniqueID

func (ReleaseStore) Get

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

Get gets a release by it's UniqueID

func (ReleaseStore) List

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

List returns releases

func (ReleaseStore) Load

func (rs ReleaseStore) Load(ctx context.Context, releases store.Releases) error

Load bulk-writes releases to datastore

func (ReleaseStore) Put

func (rs ReleaseStore) Put(ctx context.Context, r store.Release) error

Put creates or updates a release

func (ReleaseStore) Setup

func (rs ReleaseStore) Setup(ctx context.Context) error

Setup satisfies the RelaseStore interface. No action is required

Jump to

Keyboard shortcuts

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