Documentation ¶
Overview ¶
Package snapmeta describes entities that can accept arbitrary metadata and flush it to a persistent repository.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Persister ¶
type Persister interface { Store snap.RepoManager LoadMetadata() error FlushMetadata() error Cleanup() }
Persister describes the ability to flush metadata to, and load it again, from a repository.
type Simple ¶
type Simple struct {
// contains filtered or unexported fields
}
Simple is a snapstore implementation that stores snapshot metadata as a byte slice in a map in memory. A Simple should not be copied.
func NewSimple ¶
func NewSimple() *Simple
NewSimple instantiates a new Simple snapstore and returns its pointer.
Click to show internal directories.
Click to hide internal directories.