Documentation
¶
Index ¶
Constants ¶
View Source
const ( OperationSuccess PluginExitReason = iota OperationError MisuseOfShellBuiltins OperationTimeout OperationCancelledByClient OperationCancelledByPlugin OperationSucceededWithWarnings PluginToHostCommunicationError HostToPluginCommunicationError PlugNotStarted PlugCrashed DataFormatError = 65 ErrNoInput = 66 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
Click to show internal directories.
Click to hide internal directories.