Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidHash is returned when an write fails for hash mismatch ErrInvalidHash error = errors.New("invalid hash") )
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface { Exists(key, extension string) (bool, error) Read(key, extension string) ([]byte, error) ReadStream(key, extension string) (io.ReadCloser, error) Write(key, extension string, data []byte) error WriteStream(key, extension string, reader io.Reader) error }
Store is a read-write interface for a CAS store
Click to show internal directories.
Click to hide internal directories.