archiver

package
v0.0.0-...-2363357 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArchivableName = "tekton.dev/archive"
)

Variables

This section is empty.

Functions

func Archivable

func Archivable(ag annotationsGetter) bool

Archivable returns true if this run should be archived.

Types

type LogArchiver

type LogArchiver interface {
	// Archive the PipelineRun output and return a URL to retrieve
	// the contents later, or an error.
	ArchivePipelineRun(*pipelinev1.PipelineRun, []byte) (string, error)
}

LogArchiver provides the core interface for archiving the output from PipelineRuns.

type State

type State int

State represents the state of a PipelineRun or TaskRun.

const (
	Pending State = iota
	Failed
	Successful
	Error
)

func ConditionsToState

func ConditionsToState(conditions duckv1.Conditions) State

ConditionToState processes a set of conditions looking for a ConditionSucceeded and returns a combined state for the run.

It can return a Pending result if the task has not yet completed. TODO: will likely need to work out if a task was killed OOM.

func (State) Complete

func (s State) Complete() bool

func (State) String

func (s State) String() string

Jump to

Keyboard shortcuts

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