pipelinerun

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 26 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cancel added in v0.20.0

func Cancel(c *cli.Clients, prname string, opts metav1.PatchOptions, cancelStatus, ns string) (*v1.PipelineRun, error)

func Create

It will create the resource based on the api available.

func GetAllPipelineRuns

func GetAllPipelineRuns(gr schema.GroupVersionResource, opts metav1.ListOptions, c *cli.Clients, ns string, limit int, time clockwork.Clock) ([]string, error)

GetAllPipelineRuns returns all pipelinesruns running in a namespace

func GetPipelineRun added in v0.30.0

func GetPipelineRun(gr schema.GroupVersionResource, c *cli.Clients, prName, ns string) (*v1.PipelineRun, error)

func GetTaskRunsWithStatus added in v0.30.0

func GetTaskRunsWithStatus(pr *v1.PipelineRun, c *cli.Clients, ns string) (map[string]*v1.PipelineRunTaskRunStatus, error)

func PrintPipelineRunDescription added in v0.30.0

func PrintPipelineRunDescription(out io.Writer, c *cli.Clients, ns string, prName string, time clockwork.Clock) error

Types

type TaskRunWithStatus added in v0.30.0

type TaskRunWithStatus struct {
	TaskRunName      string
	PipelineTaskName string
	Status           *v1.TaskRunStatus
}

type TaskRunWithStatusList added in v0.30.0

type TaskRunWithStatusList []TaskRunWithStatus

func (TaskRunWithStatusList) Len added in v0.30.0

func (trs TaskRunWithStatusList) Len() int

func (TaskRunWithStatusList) Less added in v0.30.0

func (trs TaskRunWithStatusList) Less(i, j int) bool

func (TaskRunWithStatusList) Swap added in v0.30.0

func (trs TaskRunWithStatusList) Swap(i, j int)

type Tracker

type Tracker struct {
	Name   string
	Ns     string
	Client *cli.Clients
	// contains filtered or unexported fields
}

Tracker tracks the progress of a PipelineRun

func NewTracker

func NewTracker(name string, ns string, client *cli.Clients) *Tracker

NewTracker returns a new instance of Tracker

func (*Tracker) Monitor

func (t *Tracker) Monitor(allowed []string) <-chan []taskrunpkg.Run

Monitor to observe the progress of PipelineRun. It emits an event upon starting of a new Pipeline's Task. allowed containers the name of the Pipeline tasks, which used as filter limit the events to only those tasks

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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