ipmi

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ipmi contains code for running and interpreting output of system ipmitool util

Index

Constants

View Source
const (
	// LanPrintCmd print bmc ip cmd with ipmitool
	LanPrintCmd = " ipmitool lan print"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IPMI

type IPMI struct {
	// contains filtered or unexported fields
}

IPMI is implementation for WrapImpi interface

func NewIPMI

func NewIPMI(e command.CmdExecutor) *IPMI

NewIPMI is a constructor for LSBLK struct

func (*IPMI) GetBmcIP

func (i *IPMI) GetBmcIP() string

GetBmcIP returns BMC IP using ipmitool

type WrapIpmi

type WrapIpmi interface {
	GetBmcIP() string
}

WrapIpmi is an interface that encapsulates operation with system ipmi util

Jump to

Keyboard shortcuts

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