Documentation
¶
Index ¶
- type ConfigContext
- type Data
- type Exec
- type Netbox
- func (n *Netbox) GetAvailabilityZone(block string) (az string, err error)
- func (n *Netbox) GetData() (*Data, error)
- func (n *Netbox) GetTemperConfigContext() (temperCtx ConfigContext, err error)
- func (n *Netbox) SetStatus(status string) (err error)
- func (n *Netbox) Update(serialNumber string) error
- func (n *Netbox) WriteLocalContextData(t []*Task) (err error)
- type NodeInterface
- type Task
- type TaskContext
- type TemperContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigContext ¶
type ConfigContext struct {
Baremetal TemperContext `json:"baremetal"`
}
type Data ¶
type Data struct { Device *models.DeviceWithConfigContext RemoteIP string PrimaryIP string DNSName string IpamAddresses []models.IPAddress Interfaces []NodeInterface `json:"-"` }
type Netbox ¶
type Netbox struct { Data *Data // contains filtered or unexported fields }
func (*Netbox) GetAvailabilityZone ¶
func (*Netbox) GetTemperConfigContext ¶
func (n *Netbox) GetTemperConfigContext() (temperCtx ConfigContext, err error)
func (*Netbox) SetStatus ¶
SetStatus does not return error to not trigger errorhandler and cleanup of node
func (*Netbox) Update ¶
Update node serial and primaryIP. Does not return error to not trigger errorhandler and cleanup of node
func (*Netbox) WriteLocalContextData ¶
type NodeInterface ¶
type TaskContext ¶
type TaskContext struct {
Tasks []*Task `json:"tasks"`
}
type TemperContext ¶
type TemperContext struct {
Temper TaskContext `json:"temper"`
}
Click to show internal directories.
Click to hide internal directories.