Documentation ¶
Index ¶
- type Boot
- type CPU
- type Data
- type Default
- func (p *Default) BootFromImage(path string) (err error)
- func (p *Default) EjectMedia() (err error)
- func (p *Default) GetClientConfig() *gofish.ClientConfig
- func (p *Default) GetData() (*Data, error)
- func (p *Default) InsertMedia(image string) (err error)
- func (p *Default) Power(forceOff bool, restart bool) (err error)
- func (p *Default) WaitPowerStateOn() (err error)
- type Dell
- type Disk
- type Hpe
- type HpeBaseNetworkAdapter
- type Interface
- type Inventory
- type Lenovo
- type Memory
- type Redfish
- func NewDefault(remoteIP string, cfg config.Config, ctxLogger *log.Entry) (Redfish, error)
- func NewDell(remoteIP string, cfg config.Config, ctxLogger *log.Entry) (Redfish, error)
- func NewHpe(remoteIP string, cfg config.Config, ctxLogger *log.Entry) (Redfish, error)
- func NewLenovo(remoteIP string, cfg config.Config, ctxLogger *log.Entry) (Redfish, error)
- type RootDisk
- type SystemVendor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Default ¶
type Default struct { Data *Data // contains filtered or unexported fields }
func (*Default) BootFromImage ¶
func (*Default) EjectMedia ¶
func (*Default) GetClientConfig ¶
func (p *Default) GetClientConfig() *gofish.ClientConfig
func (*Default) InsertMedia ¶
func (*Default) WaitPowerStateOn ¶
type Disk ¶
type Disk struct { ID string `json:"-"` Rotational bool `json:"rotational"` Vendor string `json:"vendor"` Name string `json:"name"` Hctl *string `json:"hctl"` WwnVendorExtension *string `json:"wwn_vendor_extension"` WwnWithExtension *string `json:"wwn_with_extension"` Model string `json:"model"` Wwn *string `json:"wwn"` Serial *string `json:"serial"` Size int64 `json:"size"` }
type HpeBaseNetworkAdapter ¶
type HpeBaseNetworkAdapter struct { Name string SerialNumber string StructuredName string PhysicalPorts []redfish.EthernetInterface }
type Interface ¶
type Interface struct { Lldp map[string]string `json:"lldp"` Product string `json:"product"` Vendor *string `json:"vendor"` Name string `json:"name"` HasCarrier bool `json:"has_carrier"` IP4Address string `json:"ipv4_address"` ClientID *string `json:"client_id"` MacAddress string `json:"mac_address"` PortLinkStatus redfish.PortLinkStatus `json:"-"` Nic int `json:"-"` Port int `json:"-"` }
type Lenovo ¶
type Lenovo struct {
Default
}
func (*Lenovo) EjectMedia ¶
func (*Lenovo) InsertMedia ¶
type Redfish ¶
type Redfish interface { GetData() (*Data, error) GetClientConfig() *gofish.ClientConfig Power(forceOff bool, restart bool) (err error) WaitPowerStateOn() (err error) BootFromImage(path string) (err error) EjectMedia() (err error) InsertMedia(image string) (err error) // contains filtered or unexported methods }
func NewDefault ¶
Click to show internal directories.
Click to hide internal directories.