Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCASKey ¶
CreateCASKey creates a content-addressable key for the given file.
Types ¶
type Index ¶
type Index struct {
Objects []*Object
}
Index tracks which objects are stored in a bucket.
func (*Index) Diff ¶
Diff builds a new index containing objects present in the supplied index but not the origin.
type Object ¶
type Object struct { Key string `json:"key"` Tags string `json:"tags"` Filepath string `json:"-"` IsNew bool `json:"-"` }
Object holds data about a key and its tags.
type ObjectStore ¶
type ObjectStore interface { Get(key string) ([]byte, error) Put(key string, contentType string, data io.ReadSeeker) error }
ObjectStore describes an object capable of storing and retrieving data for a given key.
Click to show internal directories.
Click to hide internal directories.