Documentation ¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) EnableUser(uid byte) (*goipmi.EnableUserResponse, error)
- func (c *Client) GetLANConfig(param uint8) (*goipmi.LANConfigResponse, error)
- func (c *Client) GetUserName(uid byte) (*goipmi.GetUserNameResponse, error)
- func (c *Client) GetUserSummary() (*goipmi.GetUserSummaryResponse, error)
- func (c *Client) IsFake() bool
- func (c *Client) IsPoweredOn() (bool, error)
- func (c *Client) PowerCycle() error
- func (c *Client) PowerOff() error
- func (c *Client) PowerOn() error
- func (c *Client) SetPXE(mode types.PXEMode) error
- func (c *Client) SetUserAccess(options, uid, limits, session byte) (*goipmi.SetUserAccessResponse, error)
- func (c *Client) SetUserName(uid byte, name string) (*goipmi.SetUserNameResponse, error)
- func (c *Client) SetUserPass(uid byte, pass string) (*goipmi.SetUserPassResponse, error)
- func (c *Client) Status() (*goipmi.ChassisStatusResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a holder for the IPMIClient.
func (*Client) EnableUser ¶
func (c *Client) EnableUser(uid byte) (*goipmi.EnableUserResponse, error)
EnableUser sets a user as enabled. Actually the same underlying command as SetUserPass (see 22.30).
func (*Client) GetLANConfig ¶
func (c *Client) GetLANConfig(param uint8) (*goipmi.LANConfigResponse, error)
GetLANConfig fetches a given param from the LAN Config. (see 23.2).
func (*Client) GetUserName ¶
func (c *Client) GetUserName(uid byte) (*goipmi.GetUserNameResponse, error)
GetUserName fetches a un string given a uid. This is how we check if a user slot is available.
nb: a "failure" here can actually mean that the slot is just open for use or you can also have a user with "" as the name which won't fail this check and is still open for use. (see 22.29).
func (*Client) GetUserSummary ¶
func (c *Client) GetUserSummary() (*goipmi.GetUserSummaryResponse, error)
GetUserSummary returns stats about user table, including max users allowed.
func (*Client) IsPoweredOn ¶
IsPoweredOn checks current power state.
func (*Client) PowerCycle ¶
PowerCycle will power cycle a given machine.
func (*Client) SetUserAccess ¶
func (c *Client) SetUserAccess(options, uid, limits, session byte) (*goipmi.SetUserAccessResponse, error)
SetUserAccess tweaks the privileges for a given uid (see 22.26).
func (*Client) SetUserName ¶
SetUserName sets a string for the given uid (see 22.28).
func (*Client) SetUserPass ¶
SetUserPass sets the password for a given uid (see 22.30). nb: This naively assumes you'll pass a 16 char or less pw string.
The goipmi function does not support longer right now.