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) 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) 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) SendNMI(ctx context.Context) error
- type Option
Constants ¶
View Source
const ( // ProviderName for the OpenBMC provider implementation ProviderName = "openbmc" // ProviderProtocol for the OpenBMC provider implementation ProviderProtocol = "redfish" )
Variables ¶
View Source
var ( // Features implemented by dell redfish Features = registrar.Features{ providers.FeaturePowerState, providers.FeaturePowerSet, providers.FeatureBmcReset, providers.FeatureFirmwareInstallSteps, providers.FeatureFirmwareUploadInitiateInstall, providers.FeatureFirmwareTaskStatus, providers.FeatureInventoryRead, } )
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn details for redfish client
func (*Conn) FirmwareInstallSteps ¶
func (c *Conn) FirmwareInstallSteps(ctx context.Context, component string) ([]constants.FirmwareInstallStep, error)
bmc client interface implementations methods
func (*Conn) FirmwareInstallUploadAndInitiate ¶
func (*Conn) FirmwareTaskStatus ¶
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) PowerStateGet ¶
PowerStateGet gets the power state of a BMC machine
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.