v1alpha1

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PipelineRun

type PipelineRun struct {
	UUID        string            `json:"uuid"`
	Name        string            `json:"name"`
	Namespace   string            `json:"namespace"`
	Labels      map[string]string `json:"labels,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`
	CompletedAt *time.Time        `json:"completedAt,omitempty"`
	StartedAt   *time.Time        `json:"startedAt,omitempty"`
	CreatedAt   time.Time         `json:"createdAt,omitempty"`
	Status      PipelineStatus    `json:"status,omitempty"`
	Tasks       []*TaskRun        `json:"status,tasks"`
}

func NewPipelineRun

func NewPipelineRun(uns *unstructured.Unstructured) (*PipelineRun, error)

func (*PipelineRun) CompletedAtNotEqual

func (p *PipelineRun) CompletedAtNotEqual(other *PipelineRun) bool

func (*PipelineRun) GetCompletedAtString

func (p *PipelineRun) GetCompletedAtString() string

func (*PipelineRun) GetStartedAtString

func (p *PipelineRun) GetStartedAtString() string

func (*PipelineRun) NotEqual

func (p *PipelineRun) NotEqual(other *PipelineRun) bool

func (*PipelineRun) StartedAtNotEqual

func (p *PipelineRun) StartedAtNotEqual(other *PipelineRun) bool

func (*PipelineRun) StatusNotEqual

func (p *PipelineRun) StatusNotEqual(other *PipelineRun) bool

func (*PipelineRun) String

func (p *PipelineRun) String() string

type PipelineStatus

type PipelineStatus int16
const (
	Undefined PipelineStatus = iota
	PipelineRunPending
	NotStarted
	Running
	Success
	Failed
)

func (PipelineStatus) String

func (p PipelineStatus) String() string

type TaskRun added in v0.0.10

type TaskRun struct {
	Status PipelineStatus `json:"status,omitempty"`
}

Jump to

Keyboard shortcuts

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