errors

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InsufficientDeviceError

type InsufficientDeviceError struct {
	// contains filtered or unexported fields
}

func NewInsufficientDeviceError

func NewInsufficientDeviceError(requested, used, capacity int64) *InsufficientDeviceError

func (*InsufficientDeviceError) Error

func (e *InsufficientDeviceError) Error() string

func (InsufficientDeviceError) GetReason

func (e InsufficientDeviceError) GetReason() string

type InsufficientExclusiveResourceError

type InsufficientExclusiveResourceError struct {
	// contains filtered or unexported fields
}

func NewInsufficientExclusiveResourceError

func NewInsufficientExclusiveResourceError(resource pkg.VolumeType, requested, available, capacity int64) *InsufficientExclusiveResourceError

func (*InsufficientExclusiveResourceError) Error

func (InsufficientExclusiveResourceError) GetReason

type InsufficientLVMError

type InsufficientLVMError struct {
	// contains filtered or unexported fields
}

func NewInsufficientLVMError

func NewInsufficientLVMError(requested, used, capacity int64) *InsufficientLVMError

func (*InsufficientLVMError) Error

func (e *InsufficientLVMError) Error() string

func (*InsufficientLVMError) GetReason

func (e *InsufficientLVMError) GetReason() string

type InsufficientMountPointError

type InsufficientMountPointError struct {
	// contains filtered or unexported fields
}

func NewInsufficientMountPointError

func NewInsufficientMountPointError(requested, available, capacity int64, mediaType pkg.MediaType) *InsufficientMountPointError

func (*InsufficientMountPointError) Error

func (InsufficientMountPointError) GetReason

func (e InsufficientMountPointError) GetReason() string

type NoAvailableVGError

type NoAvailableVGError struct {
	// contains filtered or unexported fields
}

NoAvailableVGError means there is no volume group on `nodeName`

func NewNoAvailableVGError

func NewNoAvailableVGError(nodeName string) *NoAvailableVGError

func (*NoAvailableVGError) Error

func (e *NoAvailableVGError) Error() string

func (*NoAvailableVGError) GetReason

func (e *NoAvailableVGError) GetReason() string

type NotSuchVGError

type NotSuchVGError struct {
	// contains filtered or unexported fields
}

NotSuchVGError means no named vg `name`

func NewNotSuchVGError

func NewNotSuchVGError(name string) *NotSuchVGError

func (*NotSuchVGError) Error

func (e *NotSuchVGError) Error() string

func (*NotSuchVGError) GetReason

func (e *NotSuchVGError) GetReason() string

type PredicateError

type PredicateError interface {
	// GetReason should not any node or pod specific info in order not
	// to break the scheduler side message aggregation
	GetReason() string
	// Error() should return detailed message, contains the
	// detailed message regarding node or reason
	Error() string
}

A generic interface for getting simple error message of same type to avoid pouring too many error into etcd store

Jump to

Keyboard shortcuts

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