ipmi

package
v0.0.0-...-f576caf Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Board

type Board struct {
	ManufacturingDate string `json:"manufacturingDate"`
	Manufacturer      string `json:"manufacturer"`
	Product           string `json:"product"`
	Serial            string `json:"serial"`
	PartNumber        string `json:"partNumber"`
}

type FRU

type FRU struct {
	Board   `json:"board"`
	Product `json:"product"`
}

type Helper

type Helper struct {
	Options
}

func NewHelper

func NewHelper(opts ...Option) (*Helper, error)

func (*Helper) GetDefaultIpmiIp

func (h *Helper) GetDefaultIpmiIp() (string, error)

func (*Helper) GetFRU

func (h *Helper) GetFRU() (*FRU, error)

func (*Helper) Operate

func (h *Helper) Operate(operation string) error

type Option

type Option func(*Options)

func Host

func Host(host string) Option

func Password

func Password(password string) Option

func Port

func Port(port int) Option

func Username

func Username(username string) Option

type Options

type Options struct {
	Host     string `json:"host"`
	Port     int    `json:"port"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type Product

type Product struct {
	Manufacturer string `json:"manufacturer"`
	Name         string `json:"name"`
	Version      string `json:"version"`
	Serial       string `json:"serial"`
}

Jump to

Keyboard shortcuts

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