utils

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, connectionParameters ConnectionParameters) (client *gofish.APIClient, err error)

func ConnectToRedfish

func ConnectToRedfish(ctx context.Context, redfishDevice device.RedfishDevice) (client *gofish.APIClient, err error)

func GetDocument

func GetDocument(ctx context.Context, format string, args ...any) (document *documents.Node, err error)

Types

type ConnectionParameters

type ConnectionParameters struct {
	Endpoint string
	Login    string
	Password string
}

type Error

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

Error - is a multierror wrapper

func NewMultiError

func NewMultiError(errs ...error) (merr *Error)

NewMultiError \\

func (*Error) Append

func (e *Error) Append(errs ...error)

Append errors into the list

func (*Error) ErrOrNil

func (e *Error) ErrOrNil() error

ErrOrNil - return error or nil if error list is empty

type Parallel

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

func NewParallel

func NewParallel() *Parallel

func (*Parallel) Exec

func (p *Parallel) Exec(f func() error)

func (*Parallel) Wait

func (p *Parallel) Wait() error

Jump to

Keyboard shortcuts

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