Documentation ¶
Index ¶
- Constants
- type AddUser
- type Body
- type C7000
- func (c *C7000) ApplyCfg(config *cfgresources.ResourcesConfig) (err error)
- func (c *C7000) Blades() (blades []*devices.Blade, err error)
- func (c *C7000) BmcType() (model string)
- func (c *C7000) ChassisSnapshot() (chassis *devices.Chassis, err error)
- func (c *C7000) CheckCredentials() (err error)
- func (c *C7000) Close() (err error)
- func (c *C7000) FindBladePosition(serial string) (position int, err error)
- func (c *C7000) FwVersion() (version string, err error)
- func (c *C7000) IsActive() bool
- func (c *C7000) IsOn() (status bool, err error)
- func (c *C7000) IsOnBlade(position int) (status bool, err error)
- func (c *C7000) Model() (model string, err error)
- func (c *C7000) Name() (name string, err error)
- func (c *C7000) Nics() (nics []*devices.Nic, err error)
- func (c *C7000) PassThru() (passthru string, err error)
- func (c *C7000) PowerCycle() (status bool, err error)
- func (c *C7000) PowerCycleBlade(position int) (status bool, err error)
- func (c *C7000) PowerCycleBmcBlade(position int) (status bool, err error)
- func (c *C7000) PowerKw() (power float64, err error)
- func (c *C7000) PowerOff() (status bool, err error)
- func (c *C7000) PowerOffBlade(position int) (status bool, err error)
- func (c *C7000) PowerOn() (status bool, err error)
- func (c *C7000) PowerOnBlade(position int) (status bool, err error)
- func (c *C7000) Psus() (psus []*devices.Psu, err error)
- func (c *C7000) PxeOnceBlade(position int) (status bool, err error)
- func (c *C7000) ReseatBlade(position int) (status bool, err error)
- func (c *C7000) Serial() (serial string, err error)
- func (c *C7000) SetDynamicPower(enable bool) (status bool, err error)
- func (c *C7000) SetFlexAddressState(position int, enable bool) (status bool, err error)
- func (c *C7000) SetIpmiOverLan(position int, enable bool) (status bool, err error)
- func (c *C7000) Status() (status string, err error)
- func (c *C7000) StorageBlades() (storageBlades []*devices.StorageBlade, err error)
- func (c *C7000) TempC() (temp int, err error)
- func (c *C7000) UpdateCredentials(username string, password string)
- func (c *C7000) Vendor() (vendor string)
- type Envelope
- type EnvelopeLoginResponse
- type Header
- type HpOaSessionKeyToken
- type NtpPoll
- type NtpPrimary
- type NtpSecondary
- type OaSessionKey
- type Password
- type SearchContext
- type SearchContexts
- type Security
- type Server
- type SetRemoteSyslogEnabled
- type SetRemoteSyslogPort
- type SetRemoteSyslogServer
- type SetUserPassword
- type UserLogIn
- type UserLogout
- type Username
Constants ¶
const (
// BMCType defines the bmc model that is supported by this package
BMCType = "c7000"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddUser ¶
<hpoa:addUser>
<hpoa:username>Test</hpoa:username> <hpoa:password>foobar</hpoa:password>
</hpoa:addUser>
type C7000 ¶
type C7000 struct { XMLToken string //required to send SOAP XML payloads Rimp *hp.Rimp // contains filtered or unexported fields }
C7000 holds the status and properties of a connection to a BladeSystem device
func (*C7000) ApplyCfg ¶
func (c *C7000) ApplyCfg(config *cfgresources.ResourcesConfig) (err error)
func (*C7000) ChassisSnapshot ¶
ChassisSnapshot do best effort to populate the server data and returns a blade or discrete
func (*C7000) CheckCredentials ¶ added in v0.1.5
CheckCredentials verify whether the credentials are valid or not
func (*C7000) FindBladePosition ¶
FindBladePosition receives a serial and find the position of the blade using it
func (*C7000) PowerCycle ¶
PowerCycle reboots the machine via bmc
func (*C7000) PowerCycleBlade ¶
PowerCycleBlade reboots the machine via bmc
func (*C7000) PowerCycleBmcBlade ¶
PowerCycleBmcBlade reboots the bmc we are connected to
func (*C7000) PowerOffBlade ¶
PowerOffBlade power off the machine via bmc
func (*C7000) PowerOnBlade ¶
PowerOnBlade power on the machine via bmc
func (*C7000) PxeOnceBlade ¶
PxeOnceBlade makes the machine to boot via pxe once
func (*C7000) ReseatBlade ¶
ReseatBlade reboots the machine via bmc
func (*C7000) SetDynamicPower ¶
func (*C7000) SetFlexAddressState ¶
Enable/Disable FlexAddress disables flex Addresses for blades FlexAddress is a virtual addressing scheme
func (*C7000) SetIpmiOverLan ¶
Enable/Disable IPMI over lan parameter per blade in chassis
func (*C7000) StorageBlades ¶
func (c *C7000) StorageBlades() (storageBlades []*devices.StorageBlade, err error)
StorageBlades returns all StorageBlades found in this chassis
func (*C7000) UpdateCredentials ¶
UpdateCredentials updates login credentials
type Envelope ¶
type Envelope struct { XMLName xml.Name `xml:"SOAP-ENV:Envelope"` Text string `xml:",chardata"` SOAPENV string `xml:"xmlns:SOAP-ENV,attr"` Xsi string `xml:"xmlns:xsi,attr"` Xsd string `xml:"xmlns:xsd,attr"` Wsu string `xml:"xmlns:wsu,attr"` Wsse string `xml:"xmlns:wsse,attr"` Hpoa string `xml:"xmlns:hpoa,attr"` Header Header Body Body }
type EnvelopeLoginResponse ¶
type EnvelopeLoginResponse struct { XMLName xml.Name `xml:"Envelope"` Text string `xml:",chardata"` SOAPENV string `xml:"SOAP-ENV,attr"` SOAPENC string `xml:"SOAP-ENC,attr"` Xsi string `xml:"xsi,attr"` Xsd string `xml:"xsd,attr"` Wsu string `xml:"wsu,attr"` Wsse string `xml:"wsse,attr"` Hpoa string `xml:"hpoa,attr"` Body struct { UserLogInResponse struct { HpOaSessionKeyToken struct { OaSessionKey struct { Text string `xml:",chardata"` } `xml:"oaSessionKey"` } `xml:"HpOaSessionKeyToken"` } `xml:"userLogInResponse"` } `xml:"Body"` }
type HpOaSessionKeyToken ¶
type HpOaSessionKeyToken struct { XMLName xml.Name `xml:"hpoa:HpOaSessionKeyToken"` OaSessionKey OaSessionKey }
type NtpPrimary ¶
type NtpSecondary ¶
type OaSessionKey ¶
type SearchContext ¶
type SearchContexts ¶
type SearchContexts struct { XMLName xml.Name `xml:"hpoa:searchContexts"` Hpoa string `xml:"xmlns:hpoa,attr"` SearchContext []SearchContext }
type Security ¶
type Security struct { XMLName xml.Name `xml:"wsse:Security"` MustUnderstand string `xml:"SOAP-ENV:mustUnderstand,attr"` HpOaSessionKeyToken HpOaSessionKeyToken }
type SetRemoteSyslogEnabled ¶
type SetRemoteSyslogPort ¶
type SetRemoteSyslogServer ¶
type SetUserPassword ¶
type SetUserPassword struct { XMLName xml.Name `xml:"hpoa:setUserPassword"` Username Username Password Password }
<hpoa:setUserPassword>
<hpoa:username>Administrator</hpoa:username> <hpoa:password>foobar</hpoa:password>
</hpoa:setUserPassword>
type UserLogout ¶ added in v0.1.5
UserLogout is requied to logout the session