Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct { Stage string `yaml:",omitempty"` Name string `yaml:",omitempty"` Commands []string `yaml:",omitempty"` Artifacts runner.Passthrough `yaml:",omitempty"` }
Job is the type that represents a single job to be executed in a build.
type Manifest ¶
type Manifest struct { Namespace string `yaml:",omitempty"` Driver Driver `yaml:",omitempty"` Env []string `yaml:",omitempty"` Objects runner.Passthrough `yaml:",omitempty"` Sources []Source `yaml:",omitempty"` Stages []string `yaml:",omitempty"` AllowFailures []string `yaml:"allow_failures,omitempty"` Jobs []Job `yaml:",omitempty"` }
Manifest is the type that represents a manifest for a build. This details the driver to use, variables to set, objects to place, VCS repositories to clone and the actual commands to run and in what order.
func (*Manifest) UnmarshalJSON ¶
func (*Manifest) UnmarshalText ¶
type Source ¶
Source is the type that represents a VCS repository in a manifest.
func (Source) MarshalYAML ¶
func (*Source) UnmarshalYAML ¶
UnmarshalYAML unmarshals the YAML for a source URL. Source URLs can be in the format of:
[url] [ref] => [dir]
This will correctly unmarshal the given string, and parse it accordingly. The ref, and dir parts of the string are optional. If not specified the ref will be master, and the dir will be the base of the url.