model

package
v0.0.0-...-f9b5611 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2020 License: MIT Imports: 1 Imported by: 0

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"`
}

func (*AppConfig) String

func (c *AppConfig) String() string

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

type ConfigurationDetails struct {
	Name    string `json:"name"`
	Content string `json:"content"`
}

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"`
}

func (*Host) String

func (h *Host) String() string

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 HostQuery struct {
	Name          string `json:"name"`
	MACAddress    string `json:"macAddress"`
	Configuration string `json:"configuration"`
	Reboot        bool   `json:"reboot"`
}

func (*HostQuery) String

func (h *HostQuery) String() string

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"`
}

func (*IPMI) String

func (i *IPMI) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL