sum

package
v2.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 8 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(*Sum)

Option for setting optional Client values

func WithLogger

func WithLogger(log logr.Logger) Option

func WithSumPath

func WithSumPath(sumPath string) Option

type Sum

type Sum struct {
	Executor ex.Executor
	SumPath  string
	Log      logr.Logger
	Host     string
	Username string
	Password string
}

Sum is a sum command executor object

func New

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

func (*Sum) ChangeBiosCfg

func (s *Sum) ChangeBiosCfg(ctx context.Context, cfgFile string, reboot bool) (err error)

func (*Sum) Close

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

Close a connection to a BMC

func (*Sum) GetBiosConfiguration

func (s *Sum) GetBiosConfiguration(ctx context.Context) (biosConfig map[string]string, err error)

GetBiosConfiguration return bios configuration

func (*Sum) GetCurrentBiosCfg

func (s *Sum) GetCurrentBiosCfg(ctx context.Context) (output string, err error)

func (*Sum) LoadDefaultBiosCfg

func (s *Sum) LoadDefaultBiosCfg(ctx context.Context) (err error)

func (*Sum) Open

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

Open a connection to a BMC

func (*Sum) ResetBiosConfiguration

func (s *Sum) ResetBiosConfiguration(ctx context.Context) (err error)

ResetBiosConfiguration reset bios configuration

func (*Sum) SetBiosConfiguration

func (s *Sum) SetBiosConfiguration(ctx context.Context, biosConfig map[string]string) (err error)

SetBiosConfiguration set bios configuration

func (*Sum) SetBiosConfigurationFromFile

func (s *Sum) 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