Documentation ¶
Index ¶
- func Cancel(c *cli.Clients, prname string, opts metav1.PatchOptions, ...) (*v1.PipelineRun, error)
- func Create(c *cli.Clients, pr *v1beta1.PipelineRun, opts metav1.CreateOptions, ns string) (*v1beta1.PipelineRun, error)
- func GetAllPipelineRuns(gr schema.GroupVersionResource, opts metav1.ListOptions, c *cli.Clients, ...) ([]string, error)
- func GetPipelineRun(gr schema.GroupVersionResource, c *cli.Clients, prName, ns string) (*v1.PipelineRun, error)
- func GetTaskRunsWithStatus(pr *v1.PipelineRun, c *cli.Clients, ns string) (map[string]*v1.PipelineRunTaskRunStatus, error)
- func PrintPipelineRunDescription(out io.Writer, c *cli.Clients, ns string, prName string, time clockwork.Clock) error
- type TaskRunWithStatus
- type TaskRunWithStatusList
- type Tracker
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 ¶
func Create(c *cli.Clients, pr *v1beta1.PipelineRun, opts metav1.CreateOptions, ns string) (*v1beta1.PipelineRun, error)
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)
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 ¶
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
Click to show internal directories.
Click to hide internal directories.