Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mode ¶ added in v0.4.0
type Mode int
Mode is the type of configuration. Each configuration has a distinct base directory.
type ParseOption ¶
ParseOption is a funcional option that intend to modify a Parser.
func BaseDirs ¶ added in v0.4.0
func BaseDirs(dirs map[Mode]string) ParseOption
func Tags ¶ added in v0.5.0
func Tags(tags map[string]struct{}) ParseOption
Tags filters targets by their tags.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser is a configuration parser.
type Status ¶
type Status uint8
Status is a node's status.
const ( // StatusReady means the node is ready to be symlinked. StatusReady Status = 1 << iota // StatusSkip means the node has children and thus might be skipped. StatusSkip // StatusDone means the symlink already exists and is pointing exactly // to the specified node. StatusDone // StatusConflict means a symlink already exists but points to a different target. StatusConflict // StatusError means the target doesn't exist. StatusError // StatusExpand means a symlink already exists but since it's a directory // and the target is also a directory, it gets expanded in order to have // the target's inner files symlinked inside it. StatusExpand )
Click to show internal directories.
Click to hide internal directories.