ipmi

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package ipmi provides power management functionality using IPMI.

Index

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 goipmi client.

func NewClient

func NewClient(info *specs.PowerManagement_IPMI) (*Client, error)

NewClient creates a new IPMI client.

func (*Client) Close

func (c *Client) Close() error

Close implements the power.Client interface.

func (*Client) IsPoweredOn

func (c *Client) IsPoweredOn(context.Context) (bool, error)

IsPoweredOn implements the power.Client interface.

func (*Client) PowerOff

func (c *Client) PowerOff(context.Context) error

PowerOff implements the power.Client interface.

func (*Client) PowerOn

func (c *Client) PowerOn(context.Context) error

PowerOn implements the power.Client interface.

func (*Client) Reboot

func (c *Client) Reboot(context.Context) error

Reboot implements the power.Client interface.

func (*Client) SetPXEBootOnce

func (c *Client) SetPXEBootOnce(_ context.Context, mode pxe.BootMode) error

SetPXEBootOnce implements the power.Client interface.

Jump to

Keyboard shortcuts

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