codes

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationSuccess PluginExitReason = iota
	OperationError
	MisuseOfShellBuiltins
	OperationTimeout
	OperationCancelledByClient
	OperationCancelledByPlugin
	OperationSucceededWithWarnings
	PluginToHostCommunicationError
	HostToPluginCommunicationError
	PlugNotStarted
	PlugCrashed
	DataFormatError           = 65
	ErrNoInput                = 66
	ErrServiceUnavailable     = 69
	InternalSoftwareError     = 70
	ErrOsError                = 71
	ErrCriticalOsFileMissing  = 72
	ErrCannotCreateOutputFile = 73
	ErrIoError                = 74
	TemporaryFailure          = 75
	RemoteErrorInProtocol     = 76
	PermissionDenied          = 77
	ConfigurationError        = 78

	CommandInvokedCannotExecute = 126
	CommandNotFound             = 127
	InvalidArgumentToExit       = 129
	ExitStatusOutOfRange        = 255
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageCode

type MessageCode string
const (
	ExitMessage    MessageCode = "PLUGKIT_Exit"
	Unsupported    MessageCode = "PLUGKIT_Unsupported"
	FinishMessage  MessageCode = "PLUGKIT_Finish"
	PluginResponse MessageCode = "PLUGKIT_Response" // FIXME: PluginResponse seems unused.
)

type PluginExitReason

type PluginExitReason int

PluginExitReason provides basic operation codes which can be cast to a string using String() function and therefore used in errors. Codes can be extended, but the String() function will return `UnknownExternalStatusCode` if it receives a code that it does not recognize.It is recommended not to overshadow standard plugin exit reasons.

func (PluginExitReason) String added in v0.0.3

func (r PluginExitReason) String() string

Jump to

Keyboard shortcuts

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