errors

package
v0.24.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 1 Imported by: 55

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDanglingError added in v0.18.0

func IsDanglingError(err error) bool

IsDanglingError returns true if an error is DanglingAttachError

func IsDeletedVolumeInUse

func IsDeletedVolumeInUse(err error) bool

IsDeletedVolumeInUse returns true if an error returned from Delete() is deletedVolumeInUseError

func NewDanglingError

func NewDanglingError(msg string, node k8stypes.NodeName, devicePath string) error

NewDanglingError create a new dangling error

func NewDeletedVolumeInUseError

func NewDeletedVolumeInUseError(message string) error

NewDeletedVolumeInUseError returns a new instance of DeletedVolumeInUseError error.

Types

type DanglingAttachError

type DanglingAttachError struct {
	CurrentNode k8stypes.NodeName
	DevicePath  string
	// contains filtered or unexported fields
}

DanglingAttachError indicates volume is attached to a different node than we expected.

func (*DanglingAttachError) Error

func (err *DanglingAttachError) Error() string

Jump to

Keyboard shortcuts

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