Documentation ¶
Index ¶
Constants ¶
const CopyCommand = "cp"
CopyCommand is the name of the copy command.
const DecodeScriptCommand = "decode-script"
DecodeScriptCommand is the command name for decoding scripts.
const InitCommand = "init"
InitCommand is the name of main initialization command
const StepInitCommand = "step-init"
StepInitCommand is the name of the /tekton/steps initialization command.
Variables ¶
This section is empty.
Functions ¶
func Process ¶
Process takes the set of arguments passed to entrypoint and executes any subcommand that the args call for. An error is returned to the caller to indicate that a subcommand was matched and to pass back its success/fail state. The returned error will be nil if no subcommand was matched to the passed args, SubcommandSuccessful if args matched and the subcommand succeeded, or any other error if the args matched but the subcommand failed.
Types ¶
type SubcommandError ¶
type SubcommandError struct {
// contains filtered or unexported fields
}
SubcommandError is returned for failed subcommand executions.
func (SubcommandError) Error ¶
func (err SubcommandError) Error() string
type SubcommandSuccessful ¶
type SubcommandSuccessful struct {
// contains filtered or unexported fields
}
SubcommandSuccessful is returned for successful subcommand executions.
func (SubcommandSuccessful) Error ¶
func (err SubcommandSuccessful) Error() string