hyperkit

package
v0.12.12 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DriverName    = "hyperkit"
	DriverVersion = "0.12.12"

	DefaultMemory  = 8192
	DefaultCPUs    = 4
	DefaultSSHUser = "core"
)

Variables

This section is empty.

Functions

func RetryAfter

func RetryAfter(attempts int, callback func() error, d time.Duration) (err error)

RetryAfter retries a number of attempts, after a delay

Types

type MultiError

type MultiError struct {
	Errors []error
}

MultiError holds multiple errors

func (*MultiError) Collect

func (m *MultiError) Collect(err error)

Collect adds the error

func (MultiError) ToError

func (m MultiError) ToError() error

ToError converts all errors into one

type RetriableError

type RetriableError struct {
	Err error
}

RetriableError is an error that can be tried again

func (RetriableError) Error

func (r RetriableError) Error() string

Jump to

Keyboard shortcuts

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