Documentation
¶
Overview ¶
Package tree defines directory tree structures for snapshot metadata.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct {
Name string `json:"name"`
Type NodeType `json:"type"`
Mode os.FileMode `json:"mode"`
Size int64 `json:"size,omitempty"`
UID uint32 `json:"uid"`
GID uint32 `json:"gid"`
User string `json:"user,omitempty"`
Group string `json:"group,omitempty"`
ModTime time.Time `json:"mtime"`
AccessTime time.Time `json:"atime,omitempty"`
ChangeTime time.Time `json:"ctime,omitempty"`
Xattrs map[string][]byte `json:"xattrs,omitempty"`
SymlinkTarget string `json:"symlink_target,omitempty"`
DevMajor uint32 `json:"dev_major,omitempty"`
DevMinor uint32 `json:"dev_minor,omitempty"`
Inode uint64 `json:"inode,omitempty"`
Links uint64 `json:"links,omitempty"`
// For files: ordered list of content blob IDs
Content []types.BlobID `json:"content,omitempty"`
// For directories: the blob ID of the child tree
Subtree types.BlobID `json:"subtree,omitempty"`
}
Node represents a single filesystem entry within a tree.
Click to show internal directories.
Click to hide internal directories.