builds

package
Version: v0.0.0-...-6e5da2a Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Guid string `json:"guid"`

	Privileged bool `json:"privileged"`

	Config Config `json:"config"`

	Inputs  []Input  `json:"inputs"`
	Outputs []Output `json:"outputs"`

	EventsCallback string `json:"events_callback"`
	StatusCallback string `json:"status_callback"`

	AbortURL  string `json:"abort_url"`
	HijackURL string `json:"hijack_url"`

	Status Status `json:"status"`
}

type Config

type Config struct {
	Image  string            `json:"image"   yaml:"image"`
	Params map[string]string `json:"params"  yaml:"params"`
	Run    RunConfig         `json:"run"     yaml:"run"`
	Paths  map[string]string `json:"paths"   yaml:"paths"`
}

func (Config) Merge

func (a Config) Merge(b Config) Config

type Input

type Input struct {
	Name string `json:"name"`

	Type string `json:"type"`

	// e.g. sha
	Version Version `json:"version,omitempty"`

	// e.g. git url, branch, private_key
	Source Source `json:"source"`

	// arbitrary config for input
	Params Params `json:"params,omitempty"`

	// e.g. commit_author, commit_date
	Metadata []MetadataField `json:"metadata,omitempty"`

	ConfigPath string `json:"config_path"`
}

type MetadataField

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

type Output

type Output struct {
	Name string `json:"name"`

	Type string `json:"type"`

	// e.g. sha
	Version Version `json:"version"`

	// e.g. git url, branch, private_key
	Source Source `json:"source"`

	// arbitrary config for output
	Params Params `json:"params,omitempty"`

	// e.g. commit_author, commit_date, commit_sha
	Metadata []MetadataField `json:"metadata,omitempty"`

	SourcePath string `json:"sourcePath"`
}

type Params

type Params map[string]interface{}

type RunConfig

type RunConfig struct {
	Path string   `json:"path" yaml:"path"`
	Args []string `json:"args" yaml:"args"`
}

type Source

type Source map[string]interface{}

type Status

type Status string
const (
	StatusStarted   Status = "started"
	StatusSucceeded Status = "succeeded"
	StatusFailed    Status = "failed"
	StatusErrored   Status = "errored"
)

type Version

type Version map[string]interface{}

Source Files

Jump to

Keyboard shortcuts

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