messages

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Overview

Package messages ...

Package messages ...

Package messages ...

Index

Constants

View Source
const (
	// APIKeyNotFound ...
	APIKeyNotFound = "api key could not be found"

	// UserNotFound ...
	UserNotFound = "user not found or active"
)

Following are the error messages expected while opening a session

View Source
const (
	// ErrAPIKeyNotFound ...
	ErrAPIKeyNotFound = "API key is not found, reset the api key. If reset, retry after few minutes"

	// ErrUpdatingAPIKey ...
	ErrUpdatingAPIKey = "Error updating the new API key"
)

Following are the error messages published in when api key update fails

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

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