errors

package
v0.0.0-...-2c539bb Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LabelConflict defines the conflict label error string
	LabelConflict = "LabelConflict"
)

Variables

This section is empty.

Functions

func IsCRDNotExists

func IsCRDNotExists(err error) bool

IsCRDNotExists check if error is crd not exists

func IsLabelConflict

func IsLabelConflict(err error) bool

IsLabelConflict checks if the error is Label Conflict error

Types

type ErrorList

type ErrorList []error

ErrorList wraps a list of errors, it also fit for an Error interface

func (ErrorList) Error

func (e ErrorList) Error() string

Error implement error interface

func (ErrorList) HasError

func (e ErrorList) HasError() bool

HasError check if any error exists in list

type ManagedResourceHasNoDataError

type ManagedResourceHasNoDataError struct{}

ManagedResourceHasNoDataError identifies error caused by no data in maanged resource

func (ManagedResourceHasNoDataError) Error

type ResourceTrackerNotExistError

type ResourceTrackerNotExistError struct {
	Name string
}

ResourceTrackerNotExistError identifies error caused by resourcetracker not exist

func (ResourceTrackerNotExistError) Error

Error implement error interface

Jump to

Keyboard shortcuts

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