Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type Conn
- func (c *Conn) BmcReset(ctx context.Context, resetType string) (ok bool, err error)
- func (c *Conn) BootDeviceSet(ctx context.Context, bootDevice string, setPersistent, efiBoot bool) (ok bool, err error)
- func (c *Conn) Close(ctx context.Context) (err error)
- func (c *Conn) Compatible(ctx context.Context) bool
- func (c *Conn) GetCiphers(ctx context.Context) (output string, err error)
- func (c *Conn) GetSOLCiphers(ctx context.Context) (output string, err error)
- func (c *Conn) Name() string
- func (c *Conn) Open(ctx context.Context) (err error)
- func (c *Conn) PowerSet(ctx context.Context, state string) (ok bool, err error)
- func (c *Conn) PowerStateGet(ctx context.Context) (state string, err error)
- func (c *Conn) SolActivate(ctx context.Context, stdin ...byte) (output string, err error)
- func (c *Conn) SolDeactivate(ctx context.Context) (output string, err error)
- func (c *Conn) SolInfo(ctx context.Context) (info string, err error)
- func (c *Conn) UserRead(ctx context.Context) (users []map[string]string, err error)
- type Option
Constants ¶
View Source
const ( // ProviderName for the provider implementation ProviderName = "ipmitool" // ProviderProtocol for the provider implementation ProviderProtocol = "ipmi" )
Variables ¶
View Source
var ( // Features implemented by ipmitool Features = registrar.Features{ providers.FeaturePowerSet, providers.FeaturePowerState, providers.FeatureUserRead, providers.FeatureBmcReset, providers.FeatureBootDeviceSet, } )
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn for Ipmitool connection details
func (*Conn) BootDeviceSet ¶
func (c *Conn) BootDeviceSet(ctx context.Context, bootDevice string, setPersistent, efiBoot bool) (ok bool, err error)
BootDeviceSet sets the next boot device with options
func (*Conn) Compatible ¶
Compatible tests whether a BMC is compatible with the ipmitool provider
func (*Conn) GetCiphers ¶
GetCiphers gets a list of ciphers supported for IPMI.
func (*Conn) GetSOLCiphers ¶
GetSOLCiphers gets a list of ciphers supported for SOL.
func (*Conn) PowerStateGet ¶
PowerStateGet gets the power state of a BMC machine
func (*Conn) SolActivate ¶
SolActivate activates and connects to the serial-over-lan interface. It needs stdin, or the connection will be immediately dropped.
func (*Conn) SolDeactivate ¶
SolDeactivate disconnects the serial-over-lan interface.
type Option ¶
type Option func(*Config)
Option for setting optional Client values
func WithCipherSuite ¶
func WithIpmitoolPath ¶
func WithLogger ¶
Click to show internal directories.
Click to hide internal directories.