Documentation ¶
Overview ¶
Package messages ...
Package messages ...
Package messages ...
Index ¶
- Constants
- Variables
- func GetUserErr(code string, err error, args ...interface{}) error
- func GetUserError(code string, err error, args ...interface{}) error
- func GetUserErrorCode(err error) string
- func GetUserMsg(code string, args ...interface{}) util.Message
- func InitMessages() map[string]util.Message
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 GetUserError ¶
GetUserError ...
func GetUserErrorCode ¶
GetUserErrorCode returns reason code string if a util.Message, else ErrorUnclassified string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.