messages

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

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"

	// ListVolumesFailed ...
	ListVolumesFailed = "ListVolumesFailed"

	// ListSnapshotsFailed ...
	ListSnapshotsFailed = "ListSnapshotsFailed"

	// StartVolumeIDNotFound ...
	StartVolumeIDNotFound = "StartVolumeIDNotFound"

	// StartSnapshotIDNotFound ...
	StartSnapshotIDNotFound = "StartSnapshotIDNotFound"

	// FileSystemResizeFailed ...
	FileSystemResizeFailed = "FileSystemResizeFailed"

	// VolumePathNotMounted ...
	VolumePathNotMounted = "VolumePathNotMounted"

	// SubnetIDListNotFound ...
	SubnetIDListNotFound = "SubnetIDListNotFound"

	// SubnetFindFailed ...
	SubnetFindFailed = "SubnetFindFailed"
)

Variables

View Source
var MessagesEn map[string]Message

MessagesEn ...

Functions

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
	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