messages

package
v1.1.21 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Package messages ...

Package messages ...

Package messages ...

Index

Constants

View Source
const (
	// MethodUnimplemented ...
	MethodUnimplemented = "MethodUnimplemented"

	// MethodUnsupported ...
	MethodUnsupported = "MethodUnsupported"

	// MissingVolumeName ...
	MissingVolumeName = "MissingVolumeName"

	// MissingSnapshotName ...
	MissingSnapshotName = "MissingSnapshotName"

	// MissingSourceVolumeID ...
	MissingSourceVolumeID = "MissingSourceVolumeID"

	// VolumeAlreadyExists ...
	VolumeAlreadyExists = "VolumeAlreadyExists"

	// SnapshotAlreadyExists ...
	SnapshotAlreadyExists = "SnapshotAlreadyExists"

	// EmptyVolumeID ...
	EmptyVolumeID = "EmptyVolumeID"

	// EmptySnapshotID ...
	EmptySnapshotID = "EmptySnapshotID"

	// UnsupportedVolumeContentSource ...
	UnsupportedVolumeContentSource = "UnsupportedVolumeContentSource"

	// EmptyVolumePath ...
	EmptyVolumePath = "EmptyVolumePath"

	// EmptyNodeID ...
	EmptyNodeID = "EmptyNodeID"

	// EndpointNotReachable ...
	EndpointNotReachable = "EndpointNotReachable"

	// Timeout ...
	Timeout = "Timeout"

	// VolumeInvalidArguments ...
	VolumeInvalidArguments = "VolumeInvalidArguments"

	// VolumeCreationFailed ...
	VolumeCreationFailed = "VolumeCreationFailed"

	// NoVolumeCapabilities ...
	NoVolumeCapabilities = "NoVolumeCapabilities"

	// VolumeCapabilitiesNotSupported ...
	VolumeCapabilitiesNotSupported = "VolumeCapabilitiesNotSupported"

	// InvalidParameters ...
	InvalidParameters = "InvalidParameters"

	// InternalError ...
	InternalError = "InternalError"

	// ObjectNotFound ...
	ObjectNotFound = "ObjectNotFound"

	// FailedPrecondition ...
	FailedPrecondition = "FailedPrecondition"

	// NoStagingTargetPath ...
	NoStagingTargetPath = "NoStagingTargetPath"

	// NoTargetPath ...
	NoTargetPath = "NoTargetPath"

	// MountPointValidateError ...
	MountPointValidateError = "MountPointValidateError"

	// UnmountFailed ...
	UnmountFailed = "UnmountFailed"

	// MountFailed ...
	MountFailed = "MountFailed"

	// EmptyDevicePath ...
	EmptyDevicePath = "EmptyDevicePath"

	// DevicePathFindFailed ...
	DevicePathFindFailed = "DevicePathFindFailed"

	// DevicePathNotFound ...
	DevicePathNotFound = "DevicePathNotFound"

	// TargetPathCheckFailed ...
	TargetPathCheckFailed = "TargetPathCheckFailed"

	// TargetPathCreateFailed ...
	TargetPathCreateFailed = "TargetPathCreateFailed"

	// VolumeMountCheckFailed ...
	VolumeMountCheckFailed = "VolumeMountCheckFailed"

	// FormatAndMountFailed ...
	FormatAndMountFailed = "FormatAndMountFailed"

	// NodeMetadataInitFailed ...
	NodeMetadataInitFailed = "NodeMetadataInitFailed"

	// DevicePathNotExists ...
	DevicePathNotExists = "DevicePathNotExists"

	// BlockDeviceCheckFailed ...
	BlockDeviceCheckFailed = "BlockDeviceCheckFailed"

	// GetDeviceInfoFailed ...
	GetDeviceInfoFailed = "GetDeviceInfoFailed"

	// GetFSInfoFailed ...
	GetFSInfoFailed = "GetFSInfoFailed"

	// DriverNotConfigured ...
	DriverNotConfigured = "DriverNotConfigured"

	// RemoveMountTargetFailed ...
	RemoveMountTargetFailed = "RemoveMountTargetFailed"

	// CreateMountTargetFailed ...
	CreateMountTargetFailed = "CreateMountTargetFailed"

	// MountingTargetFailed ...
	MountingTargetFailed = "MountingTargetFailed"

	// UnresponsiveMountHelperContainerUtility ...
	UnresponsiveMountHelperContainerUtility = "UnresponsiveMountHelperContainerUtility"

	// MetadataServiceNotEnabled ...
	MetadataServiceNotEnabled = "MetadataServiceNotEnabled"

	// ListVolumesFailed ...
	ListVolumesFailed = "ListVolumesFailed"

	// ListSnapshotsFailed ...
	ListSnapshotsFailed = "ListSnapshotsFailed"

	// StartVolumeIDNotFound ...
	StartVolumeIDNotFound = "StartVolumeIDNotFound"

	// StartSnapshotIDNotFound ...
	StartSnapshotIDNotFound = "StartSnapshotIDNotFound"

	// FileSystemResizeFailed ...
	FileSystemResizeFailed = "FileSystemResizeFailed"

	// VolumePathNotMounted ...
	VolumePathNotMounted = "VolumePathNotMounted"

	// SubnetIDListNotFound ...
	SubnetIDListNotFound = "SubnetIDListNotFound"

	// SubnetFindFailed ...
	SubnetFindFailed = "SubnetFindFailed"

	// RC5XX
	RC5XX = "RC:5"
)

Variables

View Source
var MessagesEn map[string]Message

MessagesEn ...

Functions

func GetCSIBackendError added in v1.1.19

func GetCSIBackendError(logger *zap.Logger, requestID string, err error, args ...interface{}) error

Populate backendError from library and based on RC:xxx code set the CSI return code. GetCSIBackendError ...

func GetCSIError

func GetCSIError(logger *zap.Logger, code string, requestID string, err error, args ...interface{}) error

GetCSIError ...

func InitMessages

func InitMessages() map[string]Message

InitMessages ...

Types

type Message

type Message struct {
	Code         string
	Type         codes.Code
	RequestID    string
	Description  string
	BackendError string
	CSIError     string
	Action       string
}

Message Wrapper Message/Error Class

func GetCSIMessage

func GetCSIMessage(code string, args ...interface{}) Message

GetCSIMessage ...

func (Message) Error

func (msg Message) Error() string

Error Implement the Error() interface method

func (Message) Info

func (msg Message) Info() string

Info ...

Jump to

Keyboard shortcuts

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