racadm

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Racadm)

func WithLogger

func WithLogger(log logr.Logger) Option

func WithRacadmPath

func WithRacadmPath(racadmPath string) Option

type Racadm

type Racadm struct {
	Executor   ex.Executor
	RacadmPath string
	Log        logr.Logger
	Host       string
	Username   string
	Password   string
}

func New

func New(host, user, pass string, opts ...Option) *Racadm

func (*Racadm) ChangeBiosCfg

func (s *Racadm) ChangeBiosCfg(ctx context.Context, cfgFile string) (err error)

func (*Racadm) Close

func (c *Racadm) Close(ctx context.Context) (err error)

Close a connection to a BMC

func (*Racadm) Open

func (c *Racadm) Open(ctx context.Context) (err error)

Open a connection to a BMC

func (*Racadm) SetBiosConfigurationFromFile

func (s *Racadm) SetBiosConfigurationFromFile(ctx context.Context, cfg string) (err error)

Jump to

Keyboard shortcuts

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