ipmi

package
v0.0.0-...-7dbd9af Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package ipmi implement the XXX interface over IPMI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection goipmi.Connection

Connection properties for a Client

func ConfigFromEnv

func ConfigFromEnv() (*Connection, error)

ConfigFromEnv returns the ipmi configuration from TASTEVIN_IPMI env var example env: TASTEVIN_IPMI='{"Hostname":"10.0.3.208","Username":"USERID","Password":"PASSW0RD","Interface":"lanplus","Path":"ipmitool"}'

type Remote

type Remote struct {
	*goipmi.Client
}

Remote represent an IPMI Remote

func NewRemote

func NewRemote(c *Connection) (*Remote, error)

NewRemote creates a new IPMI Remote

func (*Remote) Close

func (r *Remote) Close() error

Close the IPMI session

func (*Remote) Open

func (r *Remote) Open() error

Open a new IPMI session

func (*Remote) PowerDown

func (r *Remote) PowerDown() error

PowerDown sends the request to power down

func (*Remote) PowerStatus

func (r *Remote) PowerStatus() (bool, error)

PowerStatus returns the current power status

func (*Remote) PowerUp

func (r *Remote) PowerUp() error

PowerUp sends the request to power up

func (*Remote) Spawn

func (r *Remote) Spawn(timeout time.Duration, opts ...exp.Option) (*exp.GExpect, <-chan error, error)

Spawn creates a goexpect session over IPMI SOL

Jump to

Keyboard shortcuts

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