Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct {
Mode uint32 `json:"mode,omitempty"` // File mode (e.g., 0644)
}
Attributes defines optional metadata for nodes/leaves.
type Leaf ¶
type Leaf struct {
// Name of the file. Can be a template string.
Name string `json:"name"`
// ContentTemplate is the template string used to generate the file content.
ContentTemplate string `json:"content_template"`
// Attributes defines file permissions/metadata (optional).
Attributes *Attributes `json:"attributes,omitempty"`
}
Leaf represents a file in the filesystem.
type Node ¶
type Node struct {
// Name of the directory. Can be a template string.
Name string `json:"name"`
// Selector is a query (e.g., JSONPath) to select data for this node context.
Selector string `json:"selector,omitempty"`
// Children directories.
Children []Node `json:"children,omitempty"`
// Files within this directory.
Files []Leaf `json:"files,omitempty"`
}
Node represents a directory in the filesystem. It can contain other nodes or leaves (files).
Click to show internal directories.
Click to hide internal directories.