Documentation
¶
Index ¶
Constants ¶
View Source
const ( ContinueOnError = "continue" FailOnError = "stopAndFail" )
RFC3339 with millisecond
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entrypointer ¶
type Entrypointer struct { // Entrypoint is the original specified entrypoint, if any. Entrypoint string // Args are the original specified args, if any. Args []string // WaitFiles is the set of files to wait for. If empty, execution // begins immediately. WaitFiles []string // WaitFileContent indicates the WaitFile should have non-zero size // before continuing with execution. WaitFileContent bool // PostFile is the file to write when complete. If not specified, no // file is written. PostFile string // Termination path is the path of a file to write the starting time of this endpopint TerminationPath string // Waiter encapsulates waiting for files to exist. Waiter Waiter // Runner encapsulates running commands. Runner Runner // PostWriter encapsulates writing files when complete. PostWriter PostWriter // Results is the set of files that might contain task results Results []string // Timeout is an optional user-specified duration within which the Step must complete Timeout *time.Duration // BreakpointOnFailure helps determine if entrypoint execution needs to adapt debugging requirements BreakpointOnFailure bool // OnError defines exiting behavior of the entrypoint // set it to "stopAndFail" to indicate the entrypoint to exit the taskRun if the container exits with non zero exit code // set it to "continue" to indicate the entrypoint to continue executing the rest of the steps irrespective of the container exit code OnError string // StepMetadataDir is the directory for a step where the step related metadata can be stored StepMetadataDir string // StepMetadataDirLink is the directory which needs to be linked to the StepMetadataDir // the symlink is mainly created for providing easier access to the step metadata // i.e. use `/tekton/steps/0/exitCode` instead of `/tekton/steps/my-awesome-step/exitCode` StepMetadataDirLink string }
Entrypointer holds fields for running commands with redirected entrypoints.
func (Entrypointer) BreakpointExitCode ¶ added in v0.26.0
func (e Entrypointer) BreakpointExitCode(breakpointExitPostFile string) (int, error)
func (Entrypointer) Go ¶
func (e Entrypointer) Go() error
Go optionally waits for a file, runs the command, and writes a post file.
func (Entrypointer) WriteExitCodeFile ¶ added in v0.27.0
func (e Entrypointer) WriteExitCodeFile(stepPath, content string)
WriteExitCodeFile write the exitCodeFile
func (Entrypointer) WritePostFile ¶ added in v0.2.0
func (e Entrypointer) WritePostFile(postFile string, err error)
WritePostFile write the postfile
type PostWriter ¶
type PostWriter interface { // Write writes to the path when complete. Write(file, content string) // CreateDirWithSymlink creates directory and a symlink CreateDirWithSymlink(source, link string) }
PostWriter encapsulates writing a file when complete.
Click to show internal directories.
Click to hide internal directories.