taskerrors

package
v0.0.0-...-028f1de Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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
)

func (ErrorCode) String

func (c ErrorCode) String() string

type ExecutionError

type ExecutionError interface {
	error

	Code() ErrorCode
}

func NewExecuteScriptError

func NewExecuteScriptError(cause error) ExecutionError

func NewGetScriptPathError

func NewGetScriptPathError(cause error) ExecutionError

func NewNoEnoughSpaceError

func NewNoEnoughSpaceError(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 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

type InvalidSettingError interface {
	error

	Name() string
	ShortMessage() string
	Unwrap() error
}

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

func (e *NoEnoughSpaceError) Code() ErrorCode

func (*NoEnoughSpaceError) Error

func (e *NoEnoughSpaceError) Error() string

type NormalizedExecutionError

type NormalizedExecutionError interface {
	error

	Code() string
	Description() string
}

func NewContainerRuntimeInternalError

func NewContainerRuntimeInternalError(cause error) NormalizedExecutionError

func NewContainerRuntimeTimeoutError

func NewContainerRuntimeTimeoutError(cause error) NormalizedExecutionError

func NormalizeExecutionError

func NormalizeExecutionError(code string, cause error) NormalizedExecutionError

type NormalizedValidationError

type NormalizedValidationError interface {
	error

	Param() string
	Value() string
}

func NewContainerConnectError

func NewContainerConnectError(cause error) NormalizedValidationError

func NewContainerNameAndIdNotMatchError

func NewContainerNameAndIdNotMatchError(containerId string, expectedName string) NormalizedValidationError

func NewContainerNameDuplicatedError

func NewContainerNameDuplicatedError() NormalizedValidationError

func NewContainerNotFoundError

func NewContainerNotFoundError() NormalizedValidationError

func NewContainerStateAbnormalError

func NewContainerStateAbnormalError(currentState string) NormalizedValidationError

func NewInvalidContainerIdError

func NewInvalidContainerIdError() NormalizedValidationError

func NewInvalidContainerNameError

func NewInvalidContainerNameError() NormalizedValidationError

func NewUnsupportedContainerRuntimeError

func NewUnsupportedContainerRuntimeError() NormalizedValidationError

func NormalizeValidationError

func NormalizeValidationError(category string, cause error) NormalizedValidationError

type Stringer

type Stringer string

func (Stringer) String

func (s Stringer) String() string

Jump to

Keyboard shortcuts

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