Documentation ¶
Overview ¶
Package metadata contains types for managing custom metadata of files in the file system. Every file will be assigned an identifier and arbitrary metadata can be set on each file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is the error returned when requested metadata // cannot be found. ErrNotFound = errors.New("not found") )
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { Location string `json:"location,omitempty"` // The file's location on the file system Values map[string]string `json:"values,omitempty"` // User metadata. }
The Metadata type represents file metadata as stored within the metadata store.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
The Store type contains methods for interacting with metadata storage. Metadata can be applied, updated & deleted from files using this type.
func Open ¶
Open a connection to the metadata store at the provided location. If connecting takes longer than the provided timeout it will be cancelled and an error is returned.
Click to show internal directories.
Click to hide internal directories.