pipeline

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadRootLabels

func LoadRootLabels(workdir string) error

LoadRootLabels loads default Pipeline labels from a workdir.

Types

type CustomName

type CustomName struct {
	Name     string `json:"name,omitempty"`
	Pipeline Path   `json:"pipeline,omitempty"`
	Internal bool   `json:"internal,omitempty"`
}

func (CustomName) LLBOpt

func (c CustomName) LLBOpt() llb.ConstraintsOpt

func (CustomName) String

func (c CustomName) String() string

type GitHubEventPayload

type GitHubEventPayload struct {
	// set on many events
	Action *string `json:"action,omitempty"`

	// set on push events
	After *string `json:"after,omitempty"`

	// set on check_suite events
	CheckSuite *github.CheckSuite `json:"check_suite,omitempty"`

	// set on check_run events
	CheckRun *github.CheckRun `json:"check_run,omitempty"`

	// set on pull_request events
	PullRequest *github.PullRequest `json:"pull_request,omitempty"`

	// set on all events
	Repo         *github.Repository   `json:"repository,omitempty"`
	Sender       *github.User         `json:"sender,omitempty"`
	Installation *github.Installation `json:"installation,omitempty"`
}

type Label

type Label struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

func RootLabels

func RootLabels() []Label

RootLabels returns default labels for Pipelines.

`LoadRootLabels` *must* be called before invoking this function. `RootLabels` will wait until `LoadRootLabels` has completed.

type Path

type Path []Pipeline

func (Path) Add

func (g Path) Add(pipeline Pipeline) Path

func (Path) Copy

func (g Path) Copy() Path

func (Path) ID

func (g Path) ID() string

func (Path) LLBOpt

func (g Path) LLBOpt() llb.ConstraintsOpt

func (Path) Name

func (g Path) Name() string

func (Path) ProgressGroup

func (g Path) ProgressGroup() *pb.ProgressGroup

func (Path) String

func (g Path) String() string

type Pipeline

type Pipeline struct {
	Name        string  `json:"name"`
	Description string  `json:"description,omitempty"`
	Labels      []Label `json:"labels,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳