Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BMC ¶
type BMC struct {
MAC net.HardwareAddr `json:"mac"`
IP net.IP `json:"ip"`
Credential *credential.Credential `json:"credential"`
}
BMC specifies the information for a BMC which includes MAC address, IP address, and access credential.
func New ¶
func New(s string, cred *credential.Credential, ip string) (*BMC, error)
New creates a new BMC instance with the given MAC address, credential and IP address.
func (*BMC) SetCredential ¶
func (b *BMC) SetCredential(cred *credential.Credential)
SetCredential sets the credential for the BMC.
Click to show internal directories.
Click to hide internal directories.