Documentation
¶
Index ¶
- type Boxfile
- func (self *Boxfile) AddStorageNode()
- func (b Boxfile) BoolValue(name string) bool
- func (self Boxfile) Equal(other Boxfile) bool
- func (b *Boxfile) FillRaw()
- func (b Boxfile) IntValue(name string) int
- func (self *Boxfile) Merge(box Boxfile)
- func (self *Boxfile) MergeProc(box Boxfile)
- func (self Boxfile) Node(name string) (box Boxfile)
- func (b Boxfile) Nodes(types ...string) (rtn []string)
- func (self Boxfile) SaveToPath(path string) error
- func (self Boxfile) String() string
- func (b Boxfile) StringSliceValue(name string) []string
- func (b Boxfile) StringValue(name string) string
- func (b Boxfile) Value(name string) interface{}
- func (b Boxfile) VersionValue(name string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Boxfile ¶
type Boxfile struct {
Parsed map[string]interface{}
Valid bool
// contains filtered or unexported fields
}
func NewFromPath ¶
NewFromPath creates a new boxfile from a file instead of raw bytes
func (*Boxfile) AddStorageNode ¶
func (self *Boxfile) AddStorageNode()
Adds any missing storage nodes that are implied in the web => network_dirs but not explicitly placed inside the root as a nfs node
func (*Boxfile) FillRaw ¶
func (b *Boxfile) FillRaw()
FillRaw is used when a boxfile is create from an existing boxfile and we want to see what the raw would look like
func (Boxfile) Node ¶
Node returns just a specific node from the boxfile if the object is a sub hash it returns a boxfile object this allows Node to be chained if you know the data
func (Boxfile) SaveToPath ¶
func (Boxfile) StringSliceValue ¶
func (Boxfile) StringValue ¶
func (Boxfile) VersionValue ¶
Click to show internal directories.
Click to hide internal directories.