Documentation ¶
Index ¶
- Constants
- func NewPowerRequest(bmcInfo BmcSecretConfig, powerAction v1.PowerAction) *v1.PowerRequest
- type BmcSecretConfig
- type BootDevice
- type Pbnj
- func (p *Pbnj) GetPowerState(ctx context.Context, bmcInfo BmcSecretConfig) (PowerState, error)
- func (p *Pbnj) PowerOff(ctx context.Context, bmcInfo BmcSecretConfig) error
- func (p *Pbnj) PowerOn(ctx context.Context, bmcInfo BmcSecretConfig) error
- func (p *Pbnj) SetBootDevice(ctx context.Context, info BmcSecretConfig, mode BootDevice) error
- type PowerState
Constants ¶
View Source
const ( BootDeviceUnspecified BootDevice = v1.BootDevice_BOOT_DEVICE_UNSPECIFIED BootDeviceNone = v1.BootDevice_BOOT_DEVICE_NONE BootDeviceBIOS = v1.BootDevice_BOOT_DEVICE_BIOS BootDeviceCDROM = v1.BootDevice_BOOT_DEVICE_CDROM BootDeviceDisk = v1.BootDevice_BOOT_DEVICE_DISK BootDevicePXE = v1.BootDevice_BOOT_DEVICE_PXE )
View Source
const PbnjGrpcAuth = client.PbnjGrpcAuthorityEnv
Variables ¶
This section is empty.
Functions ¶
func NewPowerRequest ¶
func NewPowerRequest(bmcInfo BmcSecretConfig, powerAction v1.PowerAction) *v1.PowerRequest
Types ¶
type BmcSecretConfig ¶
type BootDevice ¶ added in v0.9.0
type BootDevice = v1.BootDevice
Boot devices patched from upstream PBNJ so consumers don't need to depend on the upstream package.
type Pbnj ¶
type Pbnj struct {
// contains filtered or unexported fields
}
func NewPBNJClient ¶
NewPBNJClient client establishes a connection with PBnJ which requires "PBNJ_GRPC_AUTHORITY" as an env variables and returns a PBnJClient instance
func (*Pbnj) GetPowerState ¶
func (p *Pbnj) GetPowerState(ctx context.Context, bmcInfo BmcSecretConfig) (PowerState, error)
func (*Pbnj) SetBootDevice ¶ added in v0.9.0
func (p *Pbnj) SetBootDevice(ctx context.Context, info BmcSecretConfig, mode BootDevice) error
type PowerState ¶
type PowerState string
const ( PowerStateOn PowerState = "on" PowerStateOff PowerState = "off" PowerStateUnknown PowerState = "unknown" )
Click to show internal directories.
Click to hide internal directories.