messages

package
v1.0.0-beta13 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 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"

	// MissingVolumeName ...
	MissingVolumeName = "MissingVolumeName"

	// VolumeAlreadyExists ...
	VolumeAlreadyExists = "VolumeAlreadyExists"

	// EmptyVolumeID ...
	EmptyVolumeID = "EmptyVolumeID"

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

	// StartVolumeIDNotFound ...
	StartVolumeIDNotFound = "StartVolumeIDNotFound"

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