Documentation ¶
Index ¶
- Constants
- type Ibmc
- func (i *Ibmc) ApplyCfg(config *cfgresources.ResourcesConfig) (err error)
- func (i *Ibmc) Bios(cfg *cfgresources.Bios) error
- func (i *Ibmc) BiosVersion() (string, error)
- func (i *Ibmc) CPU() (string, int, int, int, error)
- func (i *Ibmc) ChassisSerial() (string, error)
- func (i *Ibmc) CheckCredentials() error
- func (i *Ibmc) Close() error
- func (i *Ibmc) CurrentHTTPSCert() ([]*x509.Certificate, bool, error)
- func (i *Ibmc) Disks() ([]*devices.Disk, error)
- func (i *Ibmc) GenerateCSR(cert *cfgresources.HTTPSCertAttributes) ([]byte, error)
- func (i *Ibmc) HardwareType() string
- func (i *Ibmc) IsBlade() (bool, error)
- func (i *Ibmc) IsOn() (status bool, err error)
- func (i *Ibmc) Ldap(cfg *cfgresources.Ldap) error
- func (i *Ibmc) LdapGroup(cfgGroup []*cfgresources.LdapGroup, cfgLdap *cfgresources.Ldap) error
- func (i *Ibmc) License() (string, string, error)
- func (i *Ibmc) Memory() (int, error)
- func (i *Ibmc) Model() (string, error)
- func (i *Ibmc) Name() (string, error)
- func (i *Ibmc) Network(cfg *cfgresources.Network) (bool, error)
- func (i *Ibmc) Nics() ([]*devices.Nic, error)
- func (i *Ibmc) Ntp(cfg *cfgresources.Ntp) error
- func (i *Ibmc) Power(cfg *cfgresources.Power) (err error)
- func (i *Ibmc) PowerCycle() (status bool, err error)
- func (i *Ibmc) PowerCycleBmc() (status bool, err error)
- func (i *Ibmc) PowerKw() (float64, error)
- func (i *Ibmc) PowerOff() (status bool, err error)
- func (i *Ibmc) PowerOn() (status bool, err error)
- func (i *Ibmc) PowerState() (string, error)
- func (i *Ibmc) PxeOnce() (status bool, err error)
- func (i *Ibmc) Resources() []string
- func (i *Ibmc) Screenshot() ([]byte, string, error)
- func (i *Ibmc) Serial() (string, error)
- func (i *Ibmc) ServerSnapshot() (interface{}, error)
- func (i *Ibmc) SetLicense(*cfgresources.License) error
- func (i *Ibmc) Slot() (int, error)
- func (i *Ibmc) Status() (string, error)
- func (i *Ibmc) Syslog(cfg *cfgresources.Syslog) error
- func (i *Ibmc) TempC() (int, error)
- func (i *Ibmc) UpdateCredentials(string, string)
- func (i *Ibmc) UpdateFirmware(string, string) (b bool, e error)
- func (i *Ibmc) UploadHTTPSCert(cert []byte, certFileName string, key []byte, keyFileName string) (bool, error)
- func (i *Ibmc) User(cfg []*cfgresources.User) error
- func (i *Ibmc) Vendor() string
- func (i *Ibmc) Version() (string, error)
Constants ¶
const (
// BMCType defines the bmc model that is supported by this package
BMCType = "ibmc"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ibmc ¶
type Ibmc struct {
// contains filtered or unexported fields
}
Ibmc holds the status and properties of a connection to an iDrac device
func (*Ibmc) ApplyCfg ¶
func (i *Ibmc) ApplyCfg(config *cfgresources.ResourcesConfig) (err error)
ApplyCfg implements the Bmc interface
func (*Ibmc) Bios ¶
func (i *Ibmc) Bios(cfg *cfgresources.Bios) error
Bios method implements the Configure interface
func (*Ibmc) BiosVersion ¶
BiosVersion implements the Bmc interface
func (*Ibmc) ChassisSerial ¶ added in v0.2.9
ChassisSerial implements the Bmc interface
func (*Ibmc) CheckCredentials ¶
CheckCredentials implements the Bmc interface
func (*Ibmc) CurrentHTTPSCert ¶ added in v0.2.4
func (i *Ibmc) CurrentHTTPSCert() ([]*x509.Certificate, bool, error)
CurrentHTTPSCert returns the current x509 certficates configured on the BMC The bool value returned indicates if the BMC supports CSR generation. CurrentHTTPSCert implements the Configure interface.
func (*Ibmc) GenerateCSR ¶ added in v0.2.4
func (i *Ibmc) GenerateCSR(cert *cfgresources.HTTPSCertAttributes) ([]byte, error)
GenerateCSR generates a CSR request on the BMC. GenerateCSR implements the Configure interface.
func (*Ibmc) HardwareType ¶ added in v0.3.3
HardwareType implements the Bmc interface
func (*Ibmc) Ldap ¶
func (i *Ibmc) Ldap(cfg *cfgresources.Ldap) error
Ldap method implements the Configure interface
func (*Ibmc) LdapGroup ¶
func (i *Ibmc) LdapGroup(cfgGroup []*cfgresources.LdapGroup, cfgLdap *cfgresources.Ldap) error
LdapGroup method implements the Configure interface
func (*Ibmc) Network ¶
func (i *Ibmc) Network(cfg *cfgresources.Network) (bool, error)
Network method implements the Configure interface
func (*Ibmc) Ntp ¶
func (i *Ibmc) Ntp(cfg *cfgresources.Ntp) error
Ntp method implements the Configure interface
func (*Ibmc) Power ¶ added in v0.3.5
func (i *Ibmc) Power(cfg *cfgresources.Power) (err error)
Power implemented the Configure interface
func (*Ibmc) PowerCycle ¶
PowerCycle implements the Bmc interface
func (*Ibmc) PowerCycleBmc ¶
PowerCycleBmc implements the Bmc interface
func (*Ibmc) PowerState ¶
PowerState implements the Bmc interface
func (*Ibmc) Resources ¶
Resources returns a slice of supported resources and the order they are to be applied in.
func (*Ibmc) Screenshot ¶
Screenshot implements the Bmc interface
func (*Ibmc) ServerSnapshot ¶
ServerSnapshot implements the Bmc interface
func (*Ibmc) SetLicense ¶
func (i *Ibmc) SetLicense(*cfgresources.License) error
SetLicense implements the Configure interface
func (*Ibmc) Syslog ¶
func (i *Ibmc) Syslog(cfg *cfgresources.Syslog) error
Syslog method implements the Configure interface
func (*Ibmc) UpdateCredentials ¶
UpdateCredentials implements the Bmc interface
func (*Ibmc) UpdateFirmware ¶ added in v0.2.4
UpdateFirmware implements the Bmc inteface
func (*Ibmc) UploadHTTPSCert ¶ added in v0.2.4
func (i *Ibmc) UploadHTTPSCert(cert []byte, certFileName string, key []byte, keyFileName string) (bool, error)
UploadHTTPSCert uploads the given CRT cert, UploadHTTPSCert implements the Configure interface.