messages

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package messages ...

Package messages ...

Package messages ...

Index

Constants

View Source
const (
	//Timeout indicates IAM_TOKEN exchange request failed due to timeout
	Timeout = "Timeout"
	//EndpointNotReachable indicates IAM_TOKEN exchange request failed due to incorrect endpoint
	EndpointNotReachable = "EndpointNotReachable"
	//AuthenticationFailed indicate authentication to IAM endpoint failed. e,g IAM_TOKEN refresh
	AuthenticationFailed = "AuthenticationFailed"
	//VolumeAttachFailed indicates if volume attach to instance is failed
	VolumeAttachFailed = "VolumeAttachFailed"
	//VolumeDetachFailed indicates if volume detach from instance is failed
	VolumeDetachFailed = "VolumeDetachFailed"
	//VolumeAttachFindFailed indicates if the volume attachment is not found with given request
	VolumeAttachFindFailed = "VolumeAttachFindFailed"
	//VolumeAttachTimedOut indicates the volume attach is not completed within the specified time out
	VolumeAttachTimedOut = "VolumeAttachTimedOut"
	//VolumeDetachTimedOut indicates the volume detach is not completed within the specified time out
	VolumeDetachTimedOut = "VolumeDetachTimedOut"
	//InvalidServiceSession indicates that there is some issue with IAM token exchange request for container service
	InvalidServiceSession = "InvalidServiceSession"
)

Variables

View Source
var MessagesEn map[string]util.Message

MessagesEn ...

Functions

func GetUserErr

func GetUserErr(code string, err error, args ...interface{}) error

GetUserErr ...

func GetUserError

func GetUserError(code string, err error, args ...interface{}) error

GetUserError ...

func GetUserErrorCode

func GetUserErrorCode(err error) string

GetUserErrorCode returns reason code string if a util.Message, else ErrorUnclassified string

func GetUserMsg

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

GetUserMsg ...

func InitMessages

func InitMessages() map[string]util.Message

InitMessages ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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