Documentation ¶
Index ¶
- Constants
- Variables
- type Board
- type Client
- func (c *Client) BmcReset(ctx context.Context, resetType string) (ok bool, err error)
- func (c *Client) BootComplete() (bool, error)
- func (c *Client) Close(ctx context.Context) error
- func (c *Client) FirmwareInstallSteps(ctx context.Context, component string) ([]constants.FirmwareInstallStep, error)
- func (c *Client) FirmwareInstallUploaded(ctx context.Context, component, uploadTaskID string) (installTaskID string, err error)
- func (c *Client) FirmwareTaskStatus(ctx context.Context, kind constants.FirmwareInstallStep, ...) (state constants.TaskState, status string, err error)
- func (c *Client) FirmwareUpload(ctx context.Context, component string, file *os.File) (taskID string, err error)
- func (c *Client) GetBiosConfiguration(ctx context.Context) (biosConfig map[string]string, err error)
- func (c *Client) GetBootProgress() (*redfish.BootProgress, error)
- func (c *Client) Inventory(ctx context.Context) (device *common.Device, err error)
- func (c *Client) MountFloppyImage(ctx context.Context, image io.Reader) error
- func (c *Client) Name() string
- func (c *Client) Open(ctx context.Context) (err error)
- func (c *Client) PowerSet(ctx context.Context, state string) (ok bool, err error)
- func (c *Client) PowerStateGet(ctx context.Context) (state string, err error)
- func (c *Client) ResetBiosConfiguration(ctx context.Context) (err error)
- func (c *Client) Screenshot(ctx context.Context) (image []byte, fileType string, err error)
- func (c *Client) SendNMI(ctx context.Context) error
- func (c *Client) SetBIOSConfigurationFromFile(ctx context.Context, cfg string) (err error)
- func (c *Client) SetBiosConfiguration(ctx context.Context, biosConfig map[string]string) (err error)
- func (c *Client) UnmountFloppyImage(ctx context.Context) error
- type Config
- type FruInfo
- type IPMI
- type OEM
- type Option
- type Supermicro
- type UnexpectedResponseError
Constants ¶
const ( // ProviderName for the provider Supermicro implementation ProviderName = "supermicro" // ProviderProtocol for the provider supermicro implementation ProviderProtocol = "vendorapi" )
Variables ¶
var ( ErrQueryFRUInfo = errors.New("FRU information query returned error") ErrXMLAPIUnsupported = errors.New("XML API is unsupported") ErrModelUnknown = errors.New("Model number unknown") ErrModelUnsupported = errors.New("Model not supported") )
var ( ErrFirmwareInstallMode = errors.New("firmware install mode error") ErrMultipartForm = errors.New("multipart form error") )
var ( // Features implemented Features = registrar.Features{ providers.FeatureScreenshot, providers.FeatureMountFloppyImage, providers.FeatureUnmountFloppyImage, providers.FeatureFirmwareUpload, providers.FeatureFirmwareInstallUploaded, providers.FeatureFirmwareTaskStatus, providers.FeatureFirmwareInstallSteps, providers.FeatureInventoryRead, providers.FeaturePowerSet, providers.FeaturePowerState, providers.FeatureBmcReset, providers.FeatureGetBiosConfiguration, providers.FeatureSetBiosConfiguration, providers.FeatureSetBiosConfigurationFromFile, providers.FeatureResetBiosConfiguration, providers.FeatureBootProgress, } )
Functions ¶
This section is empty.
Types ¶
type Board ¶
type Board struct { MfcName string `xml:"MFC_NAME,attr"` PartNum string `xml:"PART_NUM,attr"` ProdName string `xml:"PROD_NAME,attr"` SerialNum string `xml:"SERIAL_NUM,attr"` }
Board contains the product baseboard information
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Connection details
func (*Client) BootComplete ¶ added in v2.3.2
BootComplete checks if this system has reached the last state for boot
func (*Client) FirmwareInstallSteps ¶ added in v2.2.0
func (c *Client) FirmwareInstallSteps(ctx context.Context, component string) ([]constants.FirmwareInstallStep, error)
bmc client interface implementations methods
func (*Client) FirmwareInstallUploaded ¶ added in v2.2.0
func (*Client) FirmwareTaskStatus ¶ added in v2.2.0
func (c *Client) FirmwareTaskStatus(ctx context.Context, kind constants.FirmwareInstallStep, component, taskID, installVersion string) (state constants.TaskState, status string, err error)
FirmwareTaskStatus returns the status of a firmware related task queued on the BMC.
func (*Client) FirmwareUpload ¶ added in v2.2.0
func (*Client) GetBiosConfiguration ¶ added in v2.3.0
func (c *Client) GetBiosConfiguration(ctx context.Context) (biosConfig map[string]string, err error)
GetBiosConfiguration return bios configuration
func (*Client) GetBootProgress ¶ added in v2.3.2
func (c *Client) GetBootProgress() (*redfish.BootProgress, error)
GetBootProgress allows a caller to follow along as the system goes through its boot sequence
func (*Client) Inventory ¶ added in v2.2.0
Inventory collects hardware inventory and install firmware information
func (*Client) MountFloppyImage ¶ added in v2.2.0
func (*Client) PowerStateGet ¶ added in v2.2.0
PowerStateGet gets the power state of a BMC machine
func (*Client) ResetBiosConfiguration ¶ added in v2.3.0
ResetBiosConfiguration sets the bios configuration back to "factory" defaults
func (*Client) Screenshot ¶
func (*Client) SetBIOSConfigurationFromFile ¶ added in v2.3.0
SetBiosConfigurationFromFile sets the bios configuration from a raw vendor config file
type FruInfo ¶
type FruInfo struct {
Board *Board `xml:"BOARD,omitempty"`
}
FruInfo contains the FRU information
type OEM ¶ added in v2.2.0
type OEM struct {
Supermicro `json:"Supermicro"`
}
type Option ¶
type Option func(*Config)
Option for setting optional Client values
func WithHttpClient ¶
func WithSecureTLS ¶
WithSecureTLS returns an option that enables secure TLS with an optional cert pool.
type Supermicro ¶ added in v2.2.0
type UnexpectedResponseError ¶
type UnexpectedResponseError struct {
// contains filtered or unexported fields
}
func (*UnexpectedResponseError) Error ¶
func (e *UnexpectedResponseError) Error() string