Documentation ¶
Overview ¶
Package root defines a storage representation for pointers to file trees and associated metadata.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoData = errors.New("requested data not found")
ErrNoData indicates that the requested data do not exist.
Functions ¶
Types ¶
type Options ¶
Options are configurable settings for creating a Root. A nil options pointer provides zero values for all fields.
type Root ¶
type Root struct { Description string // a human-readable description FileKey string // the storage key of the file node IndexKey string // the storage key of the blob index // contains filtered or unexported fields }
A Root records the location of the root of a file tree.
func Decode ¶
Decode decodes a protobuf-encoded root record and associates it with the storage in s.
func New ¶
New constructs a new empty Root associated with the given store. If opts != nil, initial values are set from its contents.
Click to show internal directories.
Click to hide internal directories.