errors

package
v1.20.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrPodsNotFound error returned when pod or pods could not be found
	ErrPodsNotFound = errors.New("Pod(s) not found")
	// ErrK8SApiAccountNotSet is returned when the account used to talk to k8s api is not setup
	ErrK8SApiAccountNotSet = errors.New("k8s api account is not setup")
)

Functions

This section is empty.

Types

type ErrAppNotReady

type ErrAppNotReady struct {
	// ID is the identifier of the app
	ID string
	// Cause is the underlying cause of the error
	Cause string
}

ErrAppNotReady error type for when an app is not yet ready

func (ErrAppNotReady) Error

func (e ErrAppNotReady) Error() string

type ErrAppNotTerminated

type ErrAppNotTerminated struct {
	// ID is the identifier of the app
	ID string
	// Cause is the underlying cause of the error
	Cause string
}

ErrAppNotTerminated error type for when an app is not yet terminated

func (ErrAppNotTerminated) Error

func (e ErrAppNotTerminated) Error() string

type ErrFailedToApplySpec

type ErrFailedToApplySpec struct {
	// Path is the path of the yaml file that was to be applied
	Path string
	// Cause is the underlying cause of the error
	Cause string
}

ErrFailedToApplySpec error type for failing to apply a spec file

func (ErrFailedToApplySpec) Error

func (e ErrFailedToApplySpec) Error() string

type ErrFailedToExecCronJob

type ErrFailedToExecCronJob struct {
	// Name of CronJob object
	Name string
	// Cause is the underlying cause of the error
	Cause string
}

ErrFailedToExecCronJob error type when cron job is not executed

func (ErrFailedToExecCronJob) Error

func (e ErrFailedToExecCronJob) Error() string

type ErrFailedToParseYAML

type ErrFailedToParseYAML struct {
	// Path is the path of the yaml file that was to be parsed
	Path string
	// Cause is the underlying cause of the error
	Cause string
}

ErrFailedToParseYAML error type for objects not found

func (ErrFailedToParseYAML) Error

func (e ErrFailedToParseYAML) Error() string

type ErrFailedToValidateCustomSpec

type ErrFailedToValidateCustomSpec struct {
	// Name of CRD object
	Name string
	// Cause is the underlying cause of the error
	Cause string
	// Type is the underlying type of CRD objects
	Type interface{}
}

ErrFailedToValidateCustomSpec error type when CRD objects does not applied successfully

func (ErrFailedToValidateCustomSpec) Error

type ErrPVCNotReady

type ErrPVCNotReady struct {
	// ID is the identifier of the app
	ID string
	// Cause is the underlying cause of the error
	Cause string
}

ErrPVCNotReady error type for when a PVC is not yet ready/bound

func (ErrPVCNotReady) Error

func (e ErrPVCNotReady) Error() string

type ErrSnapshotDataFailed

type ErrSnapshotDataFailed struct {
	// ID is the identifier of the snapshot data
	ID string
	// Cause is the underlying cause of the error
	Cause string
}

ErrSnapshotDataFailed error type for when a snapshot data has failed

func (ErrSnapshotDataFailed) Error

func (e ErrSnapshotDataFailed) Error() string

type ErrSnapshotDataNotReady

type ErrSnapshotDataNotReady struct {
	// ID is the identifier of the snapshot data
	ID string
	// Cause is the underlying cause of the error
	Cause string
}

ErrSnapshotDataNotReady error type for when a snapshot data is not yet ready

func (ErrSnapshotDataNotReady) Error

func (e ErrSnapshotDataNotReady) Error() string

type ErrSnapshotFailed

type ErrSnapshotFailed struct {
	// ID is the identifier of the snapshot
	ID string
	// Cause is the underlying cause of the error
	Cause string
}

ErrSnapshotFailed error type for when a snapshot has failed

func (ErrSnapshotFailed) Error

func (e ErrSnapshotFailed) Error() string

type ErrSnapshotNotReady

type ErrSnapshotNotReady struct {
	// ID is the identifier of the snapshot
	ID string
	// Cause is the underlying cause of the error
	Cause string
}

ErrSnapshotNotReady error type for when a snapshot is not yet ready/bound

func (ErrSnapshotNotReady) Error

func (e ErrSnapshotNotReady) Error() string

type ErrValidatePVCSize

type ErrValidatePVCSize struct {
	// ID is the identifier of the app
	ID string
	// Cause is the underlying cause of the error
	Cause string
}

ErrValidatePVCSize error type for when a PVC size is not that expected size of PVC

func (ErrValidatePVCSize) Error

func (e ErrValidatePVCSize) Error() string

Jump to

Keyboard shortcuts

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