storage

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2017 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API added in v0.6.0

type API interface {
	ExistRelease(name string) (bool, error)
	HaveSameChecksums(name string, bins []*release.Binary) (bool, error)
	FindLatestRelease(name string) (*release.Release, error)
	FindReleaseByTimestamp(name, timestamp string) (*release.Release, error)
	CreateRelease(name string, timestamp string, bins []*release.Binary) (*release.Release, error)
	DeleteRelease(name, timestamp string) error
	PruneReleases(name string, keep int) ([]string, error)
	WalkReleases(concurrency int, walkfn func(*release.Release) error) error
}

API defines the interface of the storage backend layer for S3.

func New

func New(sess *session.Session) API

New creates a StorageAPI client object.

type TestStorageAPI added in v0.6.0

type TestStorageAPI interface {
	API
	// contains filtered or unexported methods
}

TestStorageAPI defines the interface for stub testing storage.API.

Jump to

Keyboard shortcuts

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