Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatePending = "Pending" StateRunning = "Running" StateSucceeded = "Succeeded" StateCancelled = "Cancelled" StateFailed = "Failed" )
TODO Caution: Final states are not confirmed yet. The different states that a runner can be in.
Variables ¶
View Source
var ( Kind = "imagerunner" APIVersion = "v1alpha" )
View Source
var DoneStates = []string{StateSucceeded, StateCancelled, StateFailed}
DoneStates represents states that a runner doesn't transition out of, i.e. once the runner is in one of these states, it's done.
Functions ¶
Types ¶
type ImagePullAuth ¶
type Project ¶
type Project struct { config.TypeDef `yaml:",inline" mapstructure:",squash"` ConfigFilePath string `yaml:"-" json:"-"` Defaults Defaults `yaml:"defaults" json:"defaults"` Sauce config.SauceConfig `yaml:"sauce,omitempty" json:"sauce"` // The only field that's used within 'sauce' is region. Suites []Suite `yaml:"suites,omitempty" json:"suites"` }
type Runner ¶
type Runner struct { ID string `json:"id,omitempty"` Status string `json:"status,omitempty"` Image string `json:"image,omitempty"` CreationTime int64 `json:"creation_time,omitempty"` TerminationTime int64 `json:"termination_time,omitempty"` TerminationReason string `json:"termination_reason,omitempty"` }
type RunnerSpec ¶
type RunnerSpec struct { Container Container `json:"container,omitempty"` EntryPoint string `json:"entrypoint,omitempty"` Env []EnvItem `json:"env,omitempty"` Files []FileData `json:"files,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` Artifacts []string `json:"artifacts,omitempty"` }
type Suite ¶
type Suite struct { Name string `yaml:"name,omitempty" json:"name"` Image string `yaml:"image,omitempty" json:"image"` ImagePullAuth ImagePullAuth `yaml:"imagePullAuth,omitempty" json:"imagePullAuth"` EntryPoint string `yaml:"entrypoint,omitempty" json:"entrypoint"` Files []File `yaml:"files,omitempty" json:"files"` Artifacts []string `yaml:"artifacts,omitempty" json:"artifacts"` Env map[string]string `yaml:"env,omitempty" json:"env"` Timeout time.Duration `yaml:"timeout,omitempty" json:"timeout"` }
Click to show internal directories.
Click to hide internal directories.