ipmitool

package module
v0.0.0-...-ae8b93d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2016 License: MIT Imports: 5 Imported by: 0

README

godoc

Go wrapper for dealing with ipmitool

Documentation

Index

Constants

View Source
const AuthMD2 = "MD2"
View Source
const AuthMD5 = "MD5"
View Source
const AuthNone = "NONE"
View Source
const AuthOEM = "OEM"
View Source
const AuthPASSWORD = "PASSWORD"

Variables

This section is empty.

Functions

This section is empty.

Types

type ChassisStatus

type ChassisStatus struct {
	// meta-status that says if last connection to server was successful
	Connected          bool   `json:"connected"`
	Power              bool   `json:"power"`
	PowerRestorePolicy string `json:"power_restore_policy"`
	LastPowerEvent     string `json:"last_power_event"`
	DriveFault         bool   `json:"drive_fault"`
	CoolingFault       bool   `json:"cooling_fault"`
	Identify           bool   `json:"identify"`
}

type Instance

type Instance struct {
	IP       string
	AuthType string
	User     string
	Password string
	// contains filtered or unexported fields
}

func (Instance) Cmd

func (i Instance) Cmd(cmdArgs []string) ([]string, error)

func (Instance) GetChassisStatus

func (i Instance) GetChassisStatus() (ChassisStatus, error)

func (Instance) Identify

func (i Instance) Identify(state bool) (err error)

func (Instance) PowerCycle

func (i Instance) PowerCycle() (err error)

func (Instance) PowerOff

func (i Instance) PowerOff() (err error)

func (Instance) PowerOn

func (i Instance) PowerOn() (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL