Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { Hosts []*Host Tftp struct { Root string } Configuration struct { Directory string Bootloaders []*Bootloader } Server struct { Port int } HostManagementAdapters []*HostManagementInfo `yaml:"host_management_adapters"` }
type Bootloader ¶
type Bootloader struct { Name string `json:"name" yaml:"name"` File string `json:"file" yaml:"file"` ConfigPath string `json:"config_path" yaml:"config_path"` }
func (*Bootloader) String ¶
func (b *Bootloader) String() string
type Configuration ¶
type Configuration struct { Name string `json:"name"` Bootloader *Bootloader `json:"bootloader"` }
func (*Configuration) String ¶
func (c *Configuration) String() string
type ConfigurationDetails ¶
func (*ConfigurationDetails) String ¶
func (c *ConfigurationDetails) String() string
type Host ¶
type Host struct { Name string `json:"name" yaml:"name"` MACAddresses []string `json:"macAddresses" yaml:"mac_addresses"` Configuration *Configuration `json:"configuration" yaml:"configuration"` PowerState string `json:"powerState" yaml:"power_state"` IPMI *IPMI `json:"ipmi" yaml:"ipmi"` Management *HostManagement `json:"management" yaml:"management"` }
type HostManagement ¶
type HostManagement struct { MacAddress string `json:"macAddress" yaml:"mac_address"` IPAddress string `json:"ipAddress" yaml:"ip_address"` AdapterName string `json:"adapter" yaml:"adapter"` Adapter *HostManagementInfo `json:"-" yaml:"-"` Subnet string `json:"subnet" yaml:"subnet"` Vars []*HostManagementVar `json:"vars" yaml:"vars"` }
func (*HostManagement) String ¶
func (b *HostManagement) String() string
type HostManagementCmd ¶
type HostManagementCmd struct { Cmd string `yaml:"cmd"` PatternOn string `yaml:"pattern_on"` PatternOff string `yaml:"pattern_off"` }
func (*HostManagementCmd) String ¶
func (b *HostManagementCmd) String() string
type HostManagementInfo ¶
type HostManagementInfo struct { Name string `yaml:"name"` Vars []*HostManagementVar `json:"vars" yaml:"vars"` PowerStatus *HostManagementCmd `yaml:"power_status"` PowerOn *HostManagementCmd `yaml:"power_on"` PowerOff *HostManagementCmd `yaml:"power_off"` PowerReset *HostManagementCmd `yaml:"power_reset"` }
func (*HostManagementInfo) String ¶
func (b *HostManagementInfo) String() string
type HostManagementVar ¶
type HostManagementVar struct { Name string `json:"name" yaml:"name"` Value string `json:"value" yaml:"value"` }
func (*HostManagementVar) String ¶
func (b *HostManagementVar) String() string
type HostQuery ¶
type HostResponse ¶
type HostResponse struct { Name string `json:"name"` Configuration string `json:"configuration"` Rebooted string `json:"rebooted"` }
func (*HostResponse) String ¶
func (h *HostResponse) String() string
type HostsQuery ¶
type HostsQuery struct {
Hosts []*HostQuery `json:"hosts"`
}
func (*HostsQuery) String ¶
func (h *HostsQuery) String() string
type HostsResponse ¶
type HostsResponse struct {
Hosts []*HostResponse `json:"hosts"`
}
func (*HostsResponse) String ¶
func (h *HostsResponse) String() string
type IPMI ¶
type IPMI struct { MACAddress string `json:"macAddress" yaml:"mac_address"` Username string `json:"username" yaml:"username"` Password string `json:"password" yaml:"password"` Interface string `json:"interface" yaml:"interface"` Hostname string `json:"hostname" yaml:"hostname"` Subnet string `json:"subnet" yaml:"subnet"` }
Click to show internal directories.
Click to hide internal directories.