Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrContentNotFound = errors.New("content not found")
ErrContentNotFound is used to indicate that content as a given address could not be found.
Functions ¶
This section is empty.
Types ¶
type CAS ¶
type CAS struct {
// contains filtered or unexported fields
}
CAS represents a content-addressable storage provider. TODO (#344) Support writing and reading both v0 and v1 CIDs.
func New ¶
func New(provider ariesstorage.Provider, useV0CIDs bool) (*CAS, error)
New returns a new CAS that uses the passed in provider as a backing store.
Click to show internal directories.
Click to hide internal directories.