# Packages
No description provided by the author
# Functions
CapNodeToNode converts a capnproto `capNd` to a normal `Node`.
ContentHash returns the correct content hash for `nd`.
Depth returns the depth of the node.
MakeGhost takes an existing node and converts it to a ghost.
MarshalNode will convert any Node to a byte string Use UnmarshalNode to load a Node from it again.
NewEmptyCommit creates a new commit after the commit referenced by `parent`.
NewEmptyDirectory creates a new empty directory that does not exist yet.
NewEmptyFile returns a newly created file under `parent`, named `name`.
NewMockLinker returns a Linker that can be easily used for testing.
ParentDirectory returns the parent directory of `nd`.
RemoveNode removes `nd` from it's parent directory using `lkr`.
UnmarshalNode will try to interpret data as a Node.
Walk calls `visit` for each node below `node`, including `node`.
# Constants
AuthorOfStage is the Person that is displayed for the stage commit.
NodeTypeCommit indicates a commit.
NodeTypeDirectory indicates a directory.
NodeTypeFile indicates a regular file.
NodeTypeGhost indicates a moved node.
NodeTypeUnknown should not happen in real programs.
# Variables
ErrSkipChild can be returned inside a Walk() closure to stop descending recursively into a directory.
# Structs
Base is a place that holds all common attributes of all Nodes.
Commit groups a set of changes.
Directory is a typical directory that may contain several other directories or files.
File represents a single file in the repository.
Ghost is a special kind of Node that marks a moved node.
MockLinker is supposed to be used for testing.
# Interfaces
HierarchyEntry represents a thing that is placed in a file hierarchy and may have other children beneath it.
Linker will tell a node how it relates to other nodes and gives it the ability to resolve other nodes by hash.
Metadatable is a thing that accumulates certain common node attributes.
ModNode is a node that supports modification of it's core attributes.
Node is a single node in brig's MDAG.
Serializable is a thing that can be converted to a capnproto message.
Streamable represents a thing that can be streamed, given a cryptographic key.
# Type aliases
NodeType defines the type of a specific node.