Documentation ¶
Index ¶
- Variables
- type BaseStep
- type CloneStep
- type Config
- type ConfigFormat
- type Container
- type Depend
- type DependCondition
- type Depends
- type DockerRegistryAuth
- type DockerRegistryAuthType
- type RestoreCacheStep
- type RestoreWorkspaceStep
- type Run
- type RunStep
- type Runtime
- type RuntimeType
- type SaveCacheStep
- type SaveContent
- type SaveToWorkspaceStep
- type Step
- type Steps
- type Task
- type Value
- type ValueType
- type Volume
- type VolumeTmpFS
- type When
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{}
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Runs []*Run `json:"runs"` DockerRegistriesAuth map[string]*DockerRegistryAuth `json:"docker_registries_auth"` }
func ParseConfig ¶
func ParseConfig(configData []byte, format ConfigFormat) (*Config, error)
type ConfigFormat ¶
type ConfigFormat int
const ( // ConfigFormatJSON handles both json or yaml format (since json is a subset of yaml) ConfigFormatJSON ConfigFormat = iota ConfigFormatJsonnet )
type Depend ¶
type Depend struct { TaskName string `json:"task"` Conditions []DependCondition `json:"conditions"` }
type DependCondition ¶
type DependCondition string
const ( DependConditionOnSuccess DependCondition = "on_success" DependConditionOnFailure DependCondition = "on_failure" DependConditionOnSkipped DependCondition = "on_skipped" )
type DockerRegistryAuth ¶
type DockerRegistryAuth struct { Type DockerRegistryAuthType `json:"type"` // basic auth Username Value `json:"username"` Password Value `json:"password"` // encoded auth string Auth string `json:"auth"` }
type DockerRegistryAuthType ¶
type DockerRegistryAuthType string
const ( DockerRegistryAuthTypeBasic DockerRegistryAuthType = "basic" DockerRegistryAuthTypeEncodedAuth DockerRegistryAuthType = "encodedauth" )
type RestoreCacheStep ¶
type RestoreWorkspaceStep ¶
type Run ¶
type Run struct { Name string `json:"name"` Tasks []*Task `json:"tasks"` When *When `json:"when"` DockerRegistriesAuth map[string]*DockerRegistryAuth `json:"docker_registries_auth"` }
type Runtime ¶
type Runtime struct { Type RuntimeType `json:"type,omitempty"` Arch types.Arch `json:"arch,omitempty"` Containers []*Container `json:"containers,omitempty"` }
type SaveCacheStep ¶
type SaveCacheStep struct { BaseStep `json:",inline"` Key string `json:"key"` Contents []*SaveContent `json:"contents"` }
type SaveContent ¶
type SaveToWorkspaceStep ¶
type SaveToWorkspaceStep struct { BaseStep `json:",inline"` Contents []*SaveContent `json:"contents"` }
type Task ¶
type Task struct { Name string `json:"name"` Runtime *Runtime `json:"runtime"` Environment map[string]Value `json:"environment,omitempty"` WorkingDir string `json:"working_dir"` Shell string `json:"shell"` User string `json:"user"` Steps Steps `json:"steps"` Depends Depends `json:"depends"` IgnoreFailure bool `json:"ignore_failure"` Approval bool `json:"approval"` When *When `json:"when"` DockerRegistriesAuth map[string]*DockerRegistryAuth `json:"docker_registries_auth"` }
type Value ¶
func (*Value) UnmarshalJSON ¶
type Volume ¶ added in v0.3.0
type Volume struct { Path string `json:"path"` TmpFS *VolumeTmpFS `json:"tmpfs"` }
type VolumeTmpFS ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.