Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type Conn
- func (c *Conn) BmcReset(ctx context.Context, resetType string) (ok bool, err error)
- func (c *Conn) Close(ctx context.Context) error
- func (c *Conn) Compatible(ctx context.Context) bool
- func (c *Conn) FirmwareInstallSteps(ctx context.Context, component string) ([]constants.FirmwareInstallStep, error)
- func (c *Conn) FirmwareInstallUploadAndInitiate(ctx context.Context, component string, file *os.File) (taskID string, err error)
- func (c *Conn) FirmwareTaskStatus(ctx context.Context, kind constants.FirmwareInstallStep, ...) (state constants.TaskState, status string, err error)
- func (c *Conn) GetBiosConfiguration(ctx context.Context) (biosConfig map[string]string, err error)
- func (c *Conn) Inventory(ctx context.Context) (device *common.Device, err error)
- func (c *Conn) Name() string
- func (c *Conn) Open(ctx context.Context) (err error)
- func (c *Conn) PowerSet(ctx context.Context, state string) (ok bool, err error)
- func (c *Conn) PowerStateGet(ctx context.Context) (state string, err error)
- func (c *Conn) ResetBiosConfiguration(ctx context.Context) (err error)
- func (c *Conn) Screenshot(ctx context.Context) (image []byte, fileType string, err error)
- func (c *Conn) SendNMI(ctx context.Context) error
- func (c *Conn) SetBiosConfiguration(ctx context.Context, biosConfig map[string]string) (err error)
- type Dell
- type Option
Constants ¶
View Source
const ( // ProviderName for the provider Dell implementation ProviderName = "dell" // ProviderProtocol for the provider Dell implementation ProviderProtocol = "redfish" )
Variables ¶
View Source
var ( // Features implemented by dell redfish Features = registrar.Features{ providers.FeatureScreenshot, providers.FeaturePowerState, providers.FeaturePowerSet, providers.FeatureFirmwareInstallSteps, providers.FeatureFirmwareUploadInitiateInstall, providers.FeatureFirmwareTaskStatus, providers.FeatureInventoryRead, providers.FeatureBmcReset, providers.FeatureGetBiosConfiguration, providers.FeatureSetBiosConfiguration, providers.FeatureResetBiosConfiguration, } )
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn details for redfish client
func (*Conn) Compatible ¶
Compatible tests whether a BMC is compatible with the gofish provider
func (*Conn) FirmwareInstallSteps ¶ added in v2.2.0
func (c *Conn) FirmwareInstallSteps(ctx context.Context, component string) ([]constants.FirmwareInstallStep, error)
bmc client interface implementations methods
func (*Conn) FirmwareInstallUploadAndInitiate ¶ added in v2.2.0
func (*Conn) FirmwareTaskStatus ¶ added in v2.2.0
func (c *Conn) 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 (*Conn) GetBiosConfiguration ¶ added in v2.2.4
GetBiosConfiguration returns the BIOS configuration settings via the BMC
func (*Conn) Inventory ¶ added in v2.2.0
Inventory collects hardware inventory and install firmware information
func (*Conn) PowerStateGet ¶
PowerStateGet gets the power state of a BMC machine
func (*Conn) ResetBiosConfiguration ¶ added in v2.2.4
ResetBiosConfiguration resets the BIOS configuration settings back to 'factory defaults' via the BMC
func (*Conn) Screenshot ¶
type Dell ¶ added in v2.2.0
type Dell struct { OdataType string `json:"@odata.type"` CompletionTime interface{} `json:"CompletionTime"` Description string `json:"Description"` EndTime string `json:"EndTime"` ID string `json:"Id"` JobState string `json:"JobState"` JobType string `json:"JobType"` Message string `json:"Message"` MessageArgs []interface{} `json:"MessageArgs"` MessageID string `json:"MessageId"` Name string `json:"Name"` PercentComplete int `json:"PercentComplete"` StartTime string `json:"StartTime"` TargetSettingsURI interface{} `json:"TargetSettingsURI"` }
type Option ¶
type Option func(*Config)
Option for setting optional Client values
func WithHttpClient ¶
func WithRootCAs ¶
func WithUseBasicAuth ¶
Click to show internal directories.
Click to hide internal directories.