Documentation
¶
Index ¶
- func IdFromString(id string) wwObjId
- func LoadYamlFile(filePath string, result interface{}) error
- func ObjJsonDump(args ...string) ([]wwObj, error)
- func ParseJsonDump(output []byte) ([]wwObj, error)
- func StringListEquals(l1, l2 []string) (bool, string)
- type Bootstrap
- type DB
- type File
- func (f *File) DeleteCmd() [][]string
- func (f *File) Equals(other interface{}) (bool, string)
- func (f *File) GIDString() string
- func (f *File) IdString() string
- func (f *File) NewCmd() [][]string
- func (f *File) ResolveRelativePaths(base string)
- func (f *File) UIDString() string
- func (f *File) UpdateCmd() [][]string
- type InventoryNodeGetter
- type NetDev
- type NetDevList
- type Node
- type Role
- type RoleList
- type Vnfs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IdFromString ¶
func IdFromString(id string) wwObjId
func LoadYamlFile ¶
func ObjJsonDump ¶
func ParseJsonDump ¶
func StringListEquals ¶
Types ¶
type Bootstrap ¶
type DB ¶
type DB struct {
Nodes map[string]*Node
Files map[string]*File
Vnfs map[string]*Vnfs
Bootstraps map[string]*Bootstrap
Roles map[string]*Role
}
func LoadWwshDB ¶
func (*DB) LoadNodesFromInventory ¶
func (db *DB) LoadNodesFromInventory(inv InventoryNodeGetter, system string) error
type InventoryNodeGetter ¶
type InventoryNodeGetter interface {
GetAll() ([]*types.InventoryNode, error)
}
type NetDev ¶
type NetDevList ¶
type NetDevList []*NetDev
func (NetDevList) Equals ¶
func (l NetDevList) Equals(other interface{}) (bool, string)
type Node ¶
type Node struct {
Name string `yaml:"hostname"`
Interfaces NetDevList `yaml:"interfaces"`
RoleName string `yaml:"role"`
Console string `yaml:"console"`
PxeLoader string `yaml:"pxeloader"`
IPxeUrl string `yaml:ipxeurl`
PostNetDown bool `yaml:"postnetdown"`
Role *Role `yaml:"-"`
Master string `yaml:"master"`
LastModified *time.Time `yaml:"last_modified"`
}
func NewNodeFromWWObject ¶
type Role ¶
type Vnfs ¶
func NewVnfsFromWWObject ¶
Click to show internal directories.
Click to hide internal directories.