Documentation ¶
Index ¶
- Constants
- Variables
- type Board
- type Client
- func (c *Client) Close(ctx context.Context) error
- func (c *Client) FirmwareInstall(ctx context.Context, component, applyAt string, forceInstall bool, ...) (jobID string, err error)
- func (c *Client) FirmwareInstallStatus(ctx context.Context, installVersion, component, taskID string) (string, 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) Screenshot(ctx context.Context) (image []byte, fileType string, err error)
- type Config
- type FruInfo
- type IPMI
- type Option
- type UnexpectedResponseError
Constants ¶
View Source
const ( // ProviderName for the provider Supermicro implementation ProviderName = "supermicro" // ProviderProtocol for the provider supermicro implementation ProviderProtocol = "vendorapi" )
Variables ¶
View Source
var ( ErrFirmwareInstallMode = errors.New("firmware install mode error") ErrMultipartForm = errors.New("multipart form error") )
View Source
var (
ErrQueryFRUInfo = errors.New("FRU information query returned error")
)
View Source
var ( // Features implemented Features = registrar.Features{ providers.FeatureScreenshot, providers.FeatureFirmwareInstall, providers.FeatureFirmwareInstallStatus, } )
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) FirmwareInstall ¶
func (c *Client) FirmwareInstall(ctx context.Context, component, applyAt string, forceInstall bool, reader io.Reader) (jobID string, err error)
FirmwareInstall uploads and initiates firmware update for the component
func (*Client) FirmwareInstallStatus ¶
func (c *Client) FirmwareInstallStatus(ctx context.Context, installVersion, component, taskID string) (string, error)
FirmwareInstallStatus returns the status of the firmware install process
type FruInfo ¶
type FruInfo struct {
Board *Board `xml:"BOARD,omitempty"`
}
FruInfo contains the FRU information
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 UnexpectedResponseError ¶
type UnexpectedResponseError struct {
// contains filtered or unexported fields
}
func (*UnexpectedResponseError) Error ¶
func (e *UnexpectedResponseError) Error() string
Click to show internal directories.
Click to hide internal directories.