Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataStore ¶
type DataStore interface { Get(ctx context.Context, name string) ([]byte, error) Put(ctx context.Context, name string, value []byte) error // TODO: return size Has(ctx context.Context, name string) (bool, error) }
DataStore is an interface defining low-level operations for handling unstructured key/value pairs. At this level, there is no concept of digest or any structure of the values.
type File ¶
type File struct {
DirName string
}
File is an implementation of DataStore using the local file system, rooted at the specified directory.
Click to show internal directories.
Click to hide internal directories.