Documentation ¶
Index ¶
Constants ¶
View Source
const ( WithArgsKey = "args" WithEntrypointKey = "entrypoint" )
View Source
const DefaultsRunKey = "run"
View Source
const MatrixIncludeKey = "include"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct { Name string `yaml:",omitempty"` If string `yaml:",omitempty"` Needs []string `yaml:",omitempty"` RunsOn []VirtualEnvironment `yaml:"runs-on,omitempty"` Outputs map[string]string `yaml:",omitempty"` Env map[string]string `yaml:",omitempty"` Environment map[string]string `yaml:",omitempty"` Defaults Defaults `yaml:",omitempty"` Steps []Step `yaml:",omitempty"` TimeoutMinutes int `yaml:",omitempty"` Strategy Strategy `yaml:",omitempty"` ContinueOnError bool `yaml:"continue-on-error,omitempty"` Container Container `yaml:",omitempty"` Services map[string]Service `yaml:",omitempty"` }
The ordering of the struct fields is intentional for better YAML readability after the marshalling Read more: https://github.com/paketo-buildpacks/pipeline-builder/pull/399
type Step ¶
type Step struct { Name string `yaml:",omitempty"` If string `yaml:",omitempty"` Id string `yaml:",omitempty"` Uses string `yaml:",omitempty"` Run string `yaml:",omitempty"` WorkingDirectory string `yaml:"working-directory,omitempty"` Shell Shell `yaml:",omitempty"` With With `yaml:",omitempty"` Env map[string]string `yaml:",omitempty"` ContinueOnError bool `yaml:"continue-on-error,omitempty"` TimeoutMinutes int `yaml:",omitempty"` }
type VirtualEnvironment ¶
type VirtualEnvironment string
const ( WindowsLatest VirtualEnvironment = "windows-latest" Windows2019 VirtualEnvironment = "windows-2019" Ubuntu2004 VirtualEnvironment = "ubuntu-20.04" UbuntuLatest VirtualEnvironment = "ubuntu-latest" Ubuntu1804 VirtualEnvironment = "ubuntu-18.04" Ubuntu1604 VirtualEnvironment = "ubuntu-16.04" MacOSLatest VirtualEnvironment = "macos-latest" MacOS1015 VirtualEnvironment = "macos-10.15" SelfHosted VirtualEnvironment = "self-hosted" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.