redfish

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	*http.Client
	// contains filtered or unexported fields
}

func New

func New(url, user, password string, insecure bool, log logger.Logger, connectionTimeout *time.Duration) (*APIClient, error)

func (*APIClient) BMC added in v0.2.0

func (c *APIClient) BMC() (*api.BMC, error)

func (*APIClient) BoardInfo

func (c *APIClient) BoardInfo() (*api.Board, error)

func (*APIClient) GetBootOptions added in v0.7.0

func (c *APIClient) GetBootOptions() ([]*schemas.BootOption, error)

func (*APIClient) MachineUUID

func (c *APIClient) MachineUUID() (string, error)

MachineUUID retrieves a unique uuid for this (hardware) machine

func (*APIClient) PowerCycle

func (c *APIClient) PowerCycle() error

func (*APIClient) PowerOff

func (c *APIClient) PowerOff() error

func (*APIClient) PowerOn

func (c *APIClient) PowerOn() error

func (*APIClient) PowerReset

func (c *APIClient) PowerReset() error

func (*APIClient) PowerState

func (c *APIClient) PowerState() (hal.PowerState, error)

func (*APIClient) SetBootOrder

func (c *APIClient) SetBootOrder(entries []*schemas.BootOption) error

SetBootOrder sets the boot order to match the sequence of the boot option entries

func (*APIClient) SetBootTarget added in v0.7.0

func (c *APIClient) SetBootTarget(target hal.BootTarget) error

func (*APIClient) SetChassisIdentifyLEDOff added in v0.6.0

func (c *APIClient) SetChassisIdentifyLEDOff() error

SetChassisIdentifyLEDOff turns off the chassis identify LED

func (*APIClient) SetChassisIdentifyLEDOn added in v0.6.0

func (c *APIClient) SetChassisIdentifyLEDOn() error

SetChassisIdentifyLEDOn turns on the chassis identify LED

func (*APIClient) SetChassisIdentifyLEDState added in v0.6.0

func (c *APIClient) SetChassisIdentifyLEDState(state hal.IdentifyLEDState) error

SetChassisIdentifyLEDState sets the chassis identify LED to given state

func (*APIClient) UpdateFirmware added in v0.7.0

func (c *APIClient) UpdateFirmware(url string) error

UpdateFirmware triggers a firmware update using the given URL BMC analyzes the file and chooses the right component to update

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL