Documentation ¶
Index ¶
Constants ¶
View Source
const ( DIR = "tree" FILE = "blob" )
Variables ¶
View Source
var LogContext = ocmlog.Context().WithContext(LogRealm)
LogContext is the default logging content used by dirtree functions. It uses its package location as message context and is based on the ocm logging context.
View Source
var LogRealm = logging.Package()
LogRealm is the realm used for logging output of this package.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context interface { logging.Context Hasher() hash.Hash FileMode(vfs.FileMode) Mode DirMode(vfs.FileMode) Mode LinkMode(vfs.FileMode) Mode WriteHeader(w io.Writer, typ string, size int64) error }
func DefaultContext ¶
DefaultContext provides a default directory tree hashing context. It is based on the Git tree hash mechanism.
type DirNode ¶
type DirNode struct {
// contains filtered or unexported fields
}
func NewDirNode ¶
func NewVFSDirNode ¶
type FileNode ¶
type FileNode struct {
// contains filtered or unexported fields
}
func NewFileNode ¶
Click to show internal directories.
Click to hide internal directories.