pipeline

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ServiceHostnameLabel = "dagger.io/service.hostname"

ServiceHostnameLabel is annotated on all services started by Dagger.

Variables

This section is empty.

Functions

func LoadRootLabels

func LoadRootLabels(workdir string, engineName string)

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 Label

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

func LoadGitHubLabels added in v0.5.0

func LoadGitHubLabels() ([]Label, error)

func LoadGitLabels added in v0.5.1

func LoadGitLabels(workdir string) ([]Label, error)

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 Labels added in v0.5.0

type Labels []Label

func (*Labels) Add added in v0.5.0

func (labels *Labels) Add(name string, value string)

func (*Labels) AppendAnonymousGitLabels added in v0.5.0

func (labels *Labels) AppendAnonymousGitLabels(workdir string) *Labels

func (*Labels) AppendCILabel added in v0.5.0

func (labels *Labels) AppendCILabel() *Labels

func (*Labels) Set added in v0.5.0

func (labels *Labels) Set(s string) error

func (*Labels) String added in v0.5.0

func (labels *Labels) String() string

func (*Labels) Type added in v0.5.0

func (labels *Labels) Type() string

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) RecorderGroup added in v0.5.2

func (g Path) RecorderGroup(rec *progrock.Recorder) *progrock.Recorder

RecorderGroup converts the path to a Progrock recorder for the group.

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 🇻🇳