Documentation ¶
Index ¶
- Variables
- func GetResource(key string) (io.ReadCloser, error)
- func GetResourceSize(key string) uint
- func GetSnapshot(key string) (io.ReadCloser, error)
- func GetSnapshotSize(key string) uint
- func Hash(x []byte) string
- func Init(sType string, sParams string) error
- func SaveResource(key string, resource []byte) error
- func SaveSnapshot(key string, snapshot []byte) error
- type Storage
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrResourceNotFound = errors.New("resource not found")
View Source
var ErrSnapshotNotFound = errors.New("snapshot not found")
View Source
var ErrUninitialized = errors.New("uninitialized storage")
View Source
var ErrUnknownStorage = errors.New("unknown storage type")
Functions ¶
func GetResource ¶ added in v0.2.0
func GetResource(key string) (io.ReadCloser, error)
func GetResourceSize ¶ added in v0.2.0
func GetSnapshot ¶
func GetSnapshot(key string) (io.ReadCloser, error)
func GetSnapshotSize ¶ added in v0.2.0
func SaveResource ¶ added in v0.2.0
func SaveSnapshot ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.