Documentation ¶
Index ¶
- type Ipmi
- func (i *Ipmi) BootDeviceSet(ctx context.Context, bootDevice string, setPersistent, efiBoot bool) (ok bool, err error)
- func (i *Ipmi) ForceRestart(ctx context.Context) (status bool, err error)
- func (i *Ipmi) GetCiphers(ctx context.Context) (output string, err error)
- func (i *Ipmi) GetSOLCiphers(ctx context.Context) (output string, err error)
- func (i *Ipmi) IsOn(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PowerCycle(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PowerCycleBmc(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PowerOff(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PowerOn(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PowerOnForce(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PowerReset(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PowerResetBmc(ctx context.Context, resetType string) (ok bool, err error)
- func (i *Ipmi) PowerSoft(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PowerState(ctx context.Context) (state string, err error)
- func (i *Ipmi) PxeOnce(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PxeOnceEfi(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PxeOnceMbr(ctx context.Context) (status bool, err error)
- func (i *Ipmi) ReadUsers(ctx context.Context) (users []map[string]string, err error)
- func (i *Ipmi) SolActivate(ctx context.Context, stdin ...byte) (output string, err error)
- func (i *Ipmi) SolDeactivate(ctx context.Context) (output string, err error)
- func (i *Ipmi) SolInfo(ctx context.Context) (info string, err error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ipmi ¶
type Ipmi struct { Username string Password string Host string // contains filtered or unexported fields }
Ipmi holds the date for an ipmi connection
func (*Ipmi) BootDeviceSet ¶
func (i *Ipmi) BootDeviceSet(ctx context.Context, bootDevice string, setPersistent, efiBoot bool) (ok bool, err error)
BootDeviceSet sets the next boot device with options
func (*Ipmi) ForceRestart ¶
ForceRestart does the chassis power cycle even if the chassis is turned off. From the RedFish spec (https://www.dmtf.org/sites/default/files/standards/documents/DSP2046_2018.1.pdf):
Perform an immediate (non-graceful) shutdown, followed by a restart.
func (*Ipmi) GetCiphers ¶
GetCiphers gets a list of ciphers supported for IPMI.
func (*Ipmi) GetSOLCiphers ¶
GetSOLCiphers gets a list of ciphers supported for SOL.
func (*Ipmi) PowerCycle ¶
PowerCycle reboots the machine via bmc
func (*Ipmi) PowerCycleBmc ¶
PowerCycleBmc reboots the bmc we are connected to
func (*Ipmi) PowerOnForce ¶
PowerOnForce power on the machine via bmc even when the machine is already on (Thanks HP!)
func (*Ipmi) PowerReset ¶
PowerReset reboots the machine via bmc
func (*Ipmi) PowerResetBmc ¶
PowerResetBmc reboots the bmc we are connected to
func (*Ipmi) PowerState ¶
PowerState returns the current power state of the machine
func (*Ipmi) PxeOnceEfi ¶
PxeOnceEfi makes the machine to boot via pxe once using EFI
func (*Ipmi) PxeOnceMbr ¶
PxeOnceMbr makes the machine to boot via pxe once using MBR
func (*Ipmi) SolActivate ¶
SolActivate activates and connects to the serial-over-lan interface. It needs stdin, or the connection will be immediately dropped.
func (*Ipmi) SolDeactivate ¶
SolDeactivate disconnects the serial-over-lan interface.