errors

package
v0.0.0-...-d88c8b5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDanglingError

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