Documentation ¶
Overview ¶
Package redfish provides power management functionality using Redfish.
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) IsPoweredOn(ctx context.Context) (bool, error)
- func (c *Client) PowerOff(ctx context.Context) error
- func (c *Client) PowerOn(ctx context.Context) error
- func (c *Client) Reboot(ctx context.Context) error
- func (c *Client) SetPXEBootOnce(ctx context.Context, mode pxe.BootMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a wrapper around the gofish client.
func NewClient ¶
func NewClient(address, username, password string, setBootSourceOverrideMode bool, logger *zap.Logger) *Client
NewClient returns a new Redfish power management client.
func (*Client) IsPoweredOn ¶
IsPoweredOn implements the power.Client interface.
Click to show internal directories.
Click to hide internal directories.