package errors
import "k8s.io/cloud-provider/volume/errors"
Index ¶
- func IsDanglingError(err error) bool
- func IsDeletedVolumeInUse(err error) bool
- func NewDanglingError(msg string, node k8stypes.NodeName, devicePath string) error
- func NewDeletedVolumeInUseError(message string) error
- type DanglingAttachError
Functions ¶
func IsDanglingError ¶
IsDanglingError returns true if an error is DanglingAttachError
func IsDeletedVolumeInUse ¶
IsDeletedVolumeInUse returns true if an error returned from Delete() is deletedVolumeInUseError
func NewDanglingError ¶
NewDanglingError create a new dangling error
func NewDeletedVolumeInUseError ¶
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
Source Files ¶
errors.go
- Version
- v0.32.2 (latest)
- Published
- Feb 13, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 2 months ago –
Tools for package owners.