Documentation
¶
Index ¶
- type CommanderError
- func NewAttachProcessFailedError(message ...string) *CommanderError
- func NewClientNotCreatedError(message ...string) *CommanderError
- func NewCommanderError(code, subcode, message string) *CommanderError
- func NewCommanderExitError(message ...string) *CommanderError
- func NewCreateClientFailedError(message ...string) *CommanderError
- func NewIpcRequestFailedError(message ...string) *CommanderError
- func NewLoadCommanderFailedError(message ...string) *CommanderError
- func NewStartProcessFailedError(message ...string) *CommanderError
- func NewStatusUpdateTimeoutError(message ...string) *CommanderError
- type ErrorCode
- type ExecutionError
- func NewCreateProcessCollectionError(cause error) ExecutionError
- func NewExecuteScriptError(cause error) ExecutionError
- func NewGetScriptPathError(cause error) ExecutionError
- func NewInitOutputBufError(cause error) ExecutionError
- func NewLauncherNotFoundError(cause error) ExecutionError
- func NewNoEnoughSpaceError(cause error) ExecutionError
- func NewPluginLoadFailedError(cause error) ExecutionError
- func NewPowershellNotFoundError(cause error) ExecutionError
- func NewResolvingInstanceNameError(cause error) ExecutionError
- func NewSaveScriptFileError(cause error) ExecutionError
- func NewScriptFileExistedError(savePath string, cause error) ExecutionError
- func NewServerResponseError(cause error) ExecutionError
- func NewSetExecutablePermissionError(cause error) ExecutionError
- func NewSetWindowsPermissionError(cause error) ExecutionError
- func NewSystemDefaultShellNotFoundError(cause error) ExecutionError
- func NewUnknownCommandTypeError() ExecutionError
- type InvalidSettingError
- func NewDefaultWorkingDirectoryNotAvailableError(message string) InvalidSettingError
- func NewHomeDirectoryNotAvailableError(cause error) InvalidSettingError
- func NewInvalidEnvironmentParameterError(message string) InvalidSettingError
- func NewInvalidUsernameOrPasswordError(cause error, shortMessage string) InvalidSettingError
- func NewWorkingDirectoryNotExistError(workingDir string) InvalidSettingError
- type NoEnoughSpaceError
- type NormalizedExecutionError
- type NormalizedValidationError
- type Stringer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommanderError ¶
func NewAttachProcessFailedError ¶
func NewAttachProcessFailedError(message ...string) *CommanderError
func NewClientNotCreatedError ¶
func NewClientNotCreatedError(message ...string) *CommanderError
func NewCommanderError ¶
func NewCommanderError(code, subcode, message string) *CommanderError
func NewCommanderExitError ¶
func NewCommanderExitError(message ...string) *CommanderError
func NewCreateClientFailedError ¶
func NewCreateClientFailedError(message ...string) *CommanderError
func NewIpcRequestFailedError ¶
func NewIpcRequestFailedError(message ...string) *CommanderError
func NewLoadCommanderFailedError ¶
func NewLoadCommanderFailedError(message ...string) *CommanderError
func NewStartProcessFailedError ¶
func NewStartProcessFailedError(message ...string) *CommanderError
func NewStatusUpdateTimeoutError ¶
func NewStatusUpdateTimeoutError(message ...string) *CommanderError
func (*CommanderError) Error ¶
func (e *CommanderError) Error() string
func (*CommanderError) SubMessage ¶
func (e *CommanderError) SubMessage() string
type ErrorCode ¶
type ErrorCode int
ErrorCode defines and MUST contain all error codes that will be reported as failure
const ( WrapErrBase64DecodeFailed ErrorCode WrapErrExecuteScriptFailed WrapErrResolveEnvironmentParameterFailed WrapGeneralError WrapErrCreatePipeFailed // Deprecated, replaced by WrapErrInitOutputBufFailed WrapErrCreateProcessCollectionFailed WrapCommanderError WrapErrServerResponseError // Backend server Response errorCode for api task/xxx WrapErrInitOutputBufFailed )
type ExecutionError ¶
func NewCreateProcessCollectionError ¶
func NewCreateProcessCollectionError(cause error) ExecutionError
func NewExecuteScriptError ¶
func NewExecuteScriptError(cause error) ExecutionError
func NewGetScriptPathError ¶
func NewGetScriptPathError(cause error) ExecutionError
func NewInitOutputBufError ¶
func NewInitOutputBufError(cause error) ExecutionError
func NewLauncherNotFoundError ¶
func NewLauncherNotFoundError(cause error) ExecutionError
func NewNoEnoughSpaceError ¶
func NewNoEnoughSpaceError(cause error) ExecutionError
func NewPluginLoadFailedError ¶
func NewPluginLoadFailedError(cause error) ExecutionError
func NewPowershellNotFoundError ¶
func NewPowershellNotFoundError(cause error) ExecutionError
func NewResolvingInstanceNameError ¶
func NewResolvingInstanceNameError(cause error) ExecutionError
func NewSaveScriptFileError ¶
func NewSaveScriptFileError(cause error) ExecutionError
func NewScriptFileExistedError ¶
func NewScriptFileExistedError(savePath string, cause error) ExecutionError
func NewServerResponseError ¶
func NewServerResponseError(cause error) ExecutionError
func NewSetExecutablePermissionError ¶
func NewSetExecutablePermissionError(cause error) ExecutionError
func NewSetWindowsPermissionError ¶
func NewSetWindowsPermissionError(cause error) ExecutionError
func NewSystemDefaultShellNotFoundError ¶
func NewSystemDefaultShellNotFoundError(cause error) ExecutionError
func NewUnknownCommandTypeError ¶
func NewUnknownCommandTypeError() ExecutionError
type InvalidSettingError ¶
func NewDefaultWorkingDirectoryNotAvailableError ¶
func NewDefaultWorkingDirectoryNotAvailableError(message string) InvalidSettingError
func NewHomeDirectoryNotAvailableError ¶
func NewHomeDirectoryNotAvailableError(cause error) InvalidSettingError
func NewInvalidEnvironmentParameterError ¶
func NewInvalidEnvironmentParameterError(message string) InvalidSettingError
func NewInvalidUsernameOrPasswordError ¶
func NewInvalidUsernameOrPasswordError(cause error, shortMessage string) InvalidSettingError
func NewWorkingDirectoryNotExistError ¶
func NewWorkingDirectoryNotExistError(workingDir string) InvalidSettingError
type NoEnoughSpaceError ¶
type NoEnoughSpaceError struct {
// contains filtered or unexported fields
}
func (*NoEnoughSpaceError) ErrCode ¶
func (e *NoEnoughSpaceError) ErrCode() ErrorCode
func (*NoEnoughSpaceError) Error ¶
func (e *NoEnoughSpaceError) Error() string
type NormalizedExecutionError ¶
func NormalizeExecutionError ¶
func NormalizeExecutionError(code string, cause error) NormalizedExecutionError
type NormalizedValidationError ¶
func NormalizeValidationError ¶
func NormalizeValidationError(category string, cause error) NormalizedValidationError
Click to show internal directories.
Click to hide internal directories.