Versions in this module Expand all Collapse all v0 v0.0.1 Dec 17, 2020 Changes in this version + type CIMCSession interface + Close func(context.Context) error + CloseConsole func(context.Context) error + GetPowerState func(context.Context) (PowerState, error) + OpenConsole func(context.Context) (*goexpect.GExpect, error) + PowerCycle func(context.Context) error + PowerOff func(context.Context) error + PowerOn func(context.Context) error + SendCmd func(context.Context, string) (string, error) + func NewSession(addr, user, pass string) (CIMCSession, error) + type PowerState int + const Off + const On + const Unknown + func (p PowerState) String() string + type Session struct + func (cs *Session) Close(ctx context.Context) error + func (cs *Session) CloseConsole(ctx context.Context) error + func (cs *Session) GetPowerState(ctx context.Context) (PowerState, error) + func (cs *Session) OpenConsole(ctx context.Context) (*goexpect.GExpect, error) + func (cs *Session) PowerCycle(ctx context.Context) error + func (cs *Session) PowerOff(ctx context.Context) error + func (cs *Session) PowerOn(ctx context.Context) error + func (cs *Session) SendCmd(ctx context.Context, msg string) (string, error) + func (cs Session) String() string