store

package
v0.0.0-...-03904d5 Latest Latest
Warning

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

Go to latest
Published: May 11, 2015 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBStore

func DBStore(db *sql.DB, imageName string) *dbStore

DBStore takes a database connection and the QDN of the image

Types

type KeyStore

type KeyStore interface {
	GetKeys(role string) ([]*data.Key, error)
	SaveKey(role string, key *data.Key) error
}

type LocalStore

type LocalStore interface {
	MetadataStore
	KeyStore
	TargetStore
	Clean() error
	Commit(meta map[string]json.RawMessage, consistentSnapshot bool, hashes map[string]data.Hashes) error
}

func FileSystemStore

func FileSystemStore(dir string, p util.PassphraseFunc) LocalStore

func MemoryStore

func MemoryStore(meta map[string]json.RawMessage, files map[string][]byte) LocalStore

type MetadataStore

type MetadataStore interface {
	GetMeta(name string) (json.RawMessage, error)
	SetMeta(name string, blob json.RawMessage) error
}

type TargetStore

type TargetStore interface {
	WalkStagedTargets(paths []string, targetsFn targetsWalkFunc) error
}

Jump to

Keyboard shortcuts

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