Documentation ¶
Index ¶
- Variables
- func Copy(src, dst string) (err error)
- func Create(srcpath, dstpath string) (*Tree, *BuildConfig)
- func WalkSubtree(node *Node, walkFn WalkFunc, data interface{}) error
- func Write(t *Tree, config *BuildConfig) error
- type BuildConfig
- type Node
- type NodeMeta
- type TerradimConfig
- type TerradimConfigMap
- type Tree
- type WalkFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ModelConfig = TerradimConfigMap{ "dim1": &TerradimConfig{Config: nodeConfig{}}, "dim2": &TerradimConfig{Config: nodeConfig{}}, }
ModelConfig list enumerable dirs
Functions ¶
func WalkSubtree ¶
WalkSubtree visits children of a node and runs WalkFunc
Types ¶
type BuildConfig ¶
type BuildConfig struct { ConfigMap TerradimConfigMap FileRootPrefix string FileOutPrefix string PathSeparator string }
BuildConfig contains all build congig details
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node is used to represent edge and leaf nodes
type NodeMeta ¶
type NodeMeta struct { Dirname string Basename string Size int64 IsDir bool IsEnum bool IsConfig bool }
NodeMeta comment
type TerradimConfig ¶
type TerradimConfig struct { Path string Config nodeConfig }
TerradimConfig is the marshalled config for a terrdim file (ex. n1.yaml)
type TerradimConfigMap ¶
type TerradimConfigMap map[string]*TerradimConfig
TerradimConfigMap hold paths for terradim enum dirs
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
Tree implements a directory trie using substrings between separator strings
func NewFromMap ¶
NewFromMap returns a new tree from a map with paths as keys and meta as values
Click to show internal directories.
Click to hide internal directories.