errors

package
v0.11.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResultForError

func GetResultForError(reqLogger logr.Logger, err error) (ctrl.Result, error)

func IsNotAMachine

func IsNotAMachine(err error) bool

func IsNotExist

func IsNotExist(err error) bool

func IsNotFound

func IsNotFound(err error) bool

func IsUUIDNotExist

func IsUUIDNotExist(err error) bool

Types

type MachineError

type MachineError struct {
	ErrStatus Reason
}

func NotFound

func NotFound(msg string) *MachineError

func NotSizeLabeled

func NotSizeLabeled() *MachineError

func UUIDNotExist

func UUIDNotExist(s string) *MachineError

func Unknown

func Unknown() *MachineError

func (*MachineError) Error

func (e *MachineError) Error() string

func (*MachineError) Status

func (e *MachineError) Status() Reason

type MachineStatus

type MachineStatus interface {
	Status() Reason
}

type Reason

type Reason struct {
	Message      string
	StatusReason StatusReason
}

type StatusReason

type StatusReason string

func ReasonForError

func ReasonForError(err error) StatusReason

Jump to

Keyboard shortcuts

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