Versions in this module Expand all Collapse all v0 v0.1.0 Jan 4, 2021 Changes in this version + const AuthTypeMD2 + const AuthTypeMD5 + const AuthTypeNone + const AuthTypeOEM + const AuthTypePassword + const BootDeviceBios + const BootDeviceCdrom + const BootDeviceDiag + const BootDeviceDisk + const BootDeviceFloppy + const BootDeviceNone + const BootDevicePxe + const BootDeviceRemoteCdrom + const BootDeviceRemoteDisk + const BootDeviceRemoteFloppy + const BootDeviceRemotePrimary + const BootDeviceSafe + const BootParamBootFlags + const BootParamFlagValid + const BootParamInfoAck + const BootParamInitInfo + const BootParamInitMbox + const BootParamSetInProgress + const BootParamSvcPartScan + const BootParamSvcPartSelect + const ChassisIntrusion + const CommandActivateSession + const CommandChassisControl + const CommandChassisStatus + const CommandCloseSession + const CommandCompleted + const CommandGetAuthCapabilities + const CommandGetDeviceID + const CommandGetSessionChallenge + const CommandGetSystemBootOptions + const CommandGetUserName + const CommandSetSessionPrivilegeLevel + const CommandSetSystemBootOptions + const CommandSetUserName + const ControlPowerAcpiSoft + const ControlPowerCycle + const ControlPowerDown + const ControlPowerHardReset + const ControlPowerPulseDiag + const ControlPowerUp + const CoolingFanFault + const DiagButtonDisable + const DiagButtonDisabled + const DriveFault + const ErrCommandTimeout + const ErrDataTruncated + const ErrDestUnavail + const ErrDuplicateRequest + const ErrFirmwareUpMode + const ErrInitMode + const ErrInvalidCommand + const ErrInvalidLunCommand + const ErrInvalidObjCommand + const ErrInvalidPacket + const ErrInvalidResv + const ErrInvalidState + const ErrLongPacket + const ErrNoObj + const ErrNoResponse + const ErrNodeBusy + const ErrOutOfSpace + const ErrParamRange + const ErrPrivLevel + const ErrRepoUpMode + const ErrRequestData + const ErrShortPacket + const ErrUnspecified + const FrontPanelLockout + const MainPowerFault + const MaxUsernameLen + const OemAMI + const OemAvocent + const OemBroadcom + const OemBull + const OemDell + const OemFujitsuSiemens + const OemGoogle + const OemHP + const OemHitachi116 + const OemHitachi399 + const OemIntel + const OemKontron + const OemLMC + const OemMagnum + const OemNEC + const OemNewisys + const OemNokia + const OemNokiaSiemensNetworks + const OemOSA + const OemPICMG + const OemPPS + const OemPeppercon + const OemRadiSys + const OemRaritan + const OemSun + const OemSupermicro + const OemSupermicro47488 + const OemTatung + const OemToshiba + const OemTyan + const OemUnknown + const PowerButtonDisable + const PowerButtonDisabled + const PowerControlFault + const PowerEventAcFailed + const PowerEventCommand + const PowerEventFault + const PowerEventInterlock + const PowerEventOverload + const PowerEventUnknown + const PowerInterlock + const PowerOverload + const PowerRestorePolicyAlwaysOff + const PowerRestorePolicyAlwaysOn + const PowerRestorePolicyPrevious + const PowerRestorePolicyUnknown + const PrivLevelAdmin + const PrivLevelCallback + const PrivLevelNone + const PrivLevelOEM + const PrivLevelOperator + const PrivLevelUser + const ResetButtonDisable + const ResetButtonDisabled + const SleepButtonDisable + const SleepButtonDisabled + const StatusPowerOffString + const StatusPowerOnString + const SystemPower + var NetworkFunctionApp = NetworkFunction(0x06) + var NetworkFunctionChassis = NetworkFunction(0x00) + type ActivateSessionRequest struct + AuthCode [16]uint8 + AuthType uint8 + InSeq [4]uint8 + PrivLevel uint8 + type ActivateSessionResponse struct + AuthType uint8 + InboundSeq uint32 + MaxPriv uint8 + SessionID uint32 + type AuthCapabilitiesRequest struct + ChannelNumber uint8 + PrivLevel uint8 + type AuthCapabilitiesResponse struct + AuthTypeSupport uint8 + ChannelNumber uint8 + OEMAux uint8 + OEMID uint16 + Reserved uint8 + Status uint8 + type BootDevice uint8 + func (d BootDevice) String() string + type ChassisControl uint8 + func (c ChassisControl) String() string + type ChassisControlRequest struct + type ChassisControlResponse struct + type ChassisStatusRequest struct + type ChassisStatusResponse struct + FrontControlPanel uint8 + LastPowerEvent uint8 + PowerState uint8 + State uint8 + func (r *ChassisStatusResponse) UnmarshalBinary(buf []byte) error + func (s *ChassisStatusResponse) IsSystemPowerOn() bool + func (s *ChassisStatusResponse) PowerRestorePolicy() uint8 + func (s *ChassisStatusResponse) String() string + type Client struct + func NewClient(c *Connection) (*Client, error) + func (c *Client) Close() error + func (c *Client) Control(ctl ChassisControl) error + func (c *Client) DeviceID() (*DeviceIDResponse, error) + func (c *Client) GetPowerStatus() (string, error) + func (c *Client) GetUserName(userID byte) (*GetUserNameResponse, error) + func (c *Client) Open() error + func (c *Client) Send(req *Request, res Response) error + func (c *Client) SetBootDevice(dev BootDevice) error + func (c *Client) SetUserName(userID byte, username string) (*SetUserNameResponse, error) + type CloseSessionRequest struct + SessionID uint32 + type CloseSessionResponse struct + type Command uint8 + type CompletionCode uint8 + func (c CompletionCode) Code() uint8 + func (c CompletionCode) Error() string + type Connection struct + Cipher int + Hostname string + Interface string + Password string + Path string + Port int + Username string + func (c *Connection) LocalIP() string + func (c *Connection) RemoteIP() string + type DeviceIDRequest struct + type DeviceIDResponse struct + AdditionalDeviceSupport uint8 + DeviceID uint8 + DeviceRevision uint8 + FirmwareRevision1 uint8 + FirmwareRevision2 uint8 + IPMIVersion uint8 + ManufacturerID OemID + ProductID uint16 + type GetUserNameRequest struct + UserID byte + func (r *GetUserNameRequest) MarshalBinary() ([]byte, error) + func (r *GetUserNameRequest) UnmarshalBinary(buf []byte) error + type GetUserNameResponse struct + Username string + func (r *GetUserNameResponse) MarshalBinary() ([]byte, error) + func (r *GetUserNameResponse) UnmarshalBinary(buf []byte) error + type Handler func(*Message) Response + type Message struct + AuthCode [16]byte + Data []byte + RequestID string + func (m *Message) CompletionCode() CompletionCode + func (m *Message) NetFn() NetworkFunction + func (m *Message) Request(data interface{}) Response + func (m *Message) Response(data Response) error + type NetworkFunction uint8 + type OemID uint16 + func (id OemID) String() string + type Request struct + Data interface{} + type Response interface + Code func() uint8 + type SessionChallengeRequest struct + AuthType uint8 + Username [16]uint8 + type SessionChallengeResponse struct + Challenge [16]byte + TemporarySessionID uint32 + type SessionPrivilegeLevelRequest struct + PrivLevel uint8 + type SessionPrivilegeLevelResponse struct + NewPrivilegeLevel uint8 + type SetSystemBootOptionsRequest struct + Data []uint8 + Param uint8 + func (r *SetSystemBootOptionsRequest) MarshalBinary() ([]byte, error) + func (r *SetSystemBootOptionsRequest) UnmarshalBinary(buf []byte) error + type SetSystemBootOptionsResponse struct + type SetUserNameRequest struct + UserID byte + Username string + func (r *SetUserNameRequest) MarshalBinary() ([]byte, error) + func (r *SetUserNameRequest) UnmarshalBinary(buf []byte) error + type SetUserNameResponse struct + func (r *SetUserNameResponse) MarshalBinary() ([]byte, error) + func (r *SetUserNameResponse) UnmarshalBinary(buf []byte) error + type Simulator struct + func NewSimulator(addr net.UDPAddr) *Simulator + func (s *Simulator) LocalAddr() *net.UDPAddr + func (s *Simulator) NewConnection() *Connection + func (s *Simulator) Run() error + func (s *Simulator) SetHandler(netfn NetworkFunction, command Command, handler Handler) + func (s *Simulator) Stop() + type SystemBootOptionsRequest struct + Block uint8 + Param uint8 + Set uint8 + type SystemBootOptionsResponse struct + Data []uint8 + Param uint8 + Version uint8 + func (r *SystemBootOptionsResponse) BootDeviceSelector() BootDevice + func (r *SystemBootOptionsResponse) MarshalBinary() ([]byte, error) + func (r *SystemBootOptionsResponse) UnmarshalBinary(buf []byte) error