errors

package
v0.0.0-...-7b24307 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInstanceNotFound tells that the requested instance was not found on the cloud provider.
	ErrInstanceNotFound = errors.New("instance not found")
)

Functions

func IsNotFound

func IsNotFound(err error) bool

func IsTerminalError

func IsTerminalError(err error) (bool, common.MachineStatusError, string)

IsTerminalError is a helper function that helps to determine if a given error is terminal.

Types

type TerminalError

type TerminalError struct {
	Reason  common.MachineStatusError
	Message string
}

TerminalError is a helper struct that holds errors of type "terminal".

func (TerminalError) Error

func (te TerminalError) Error() string

Jump to

Keyboard shortcuts

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