Documentation
¶
Index ¶
- type BuildTask
- type Config
- type ECRRegistry
- type ExportFileList
- type GCRRegistry
- type Healthcheck
- type ImportFileList
- type Options
- type Override
- type Plan
- type PlanTask
- type PushTask
- type Registry
- type RemoveTask
- type RunMode
- type RunTask
- type ServerRegistry
- type Stage
- type StageTask
- type Task
- type TaskExtendsResolver
- type TaskMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildTask ¶
type BuildTask struct { TaskMeta Dockerfile string `json:"dockerfile,omitempty"` Target string `json:"target,omitempty"` Tags []string `json:"tags,omitempty"` Labels []string `json:"labels,omitempty"` }
func (*BuildTask) MarshalJSON ¶
type Config ¶
type Config struct { Extends []string `json:"extends,omitempty"` Options *Options `json:"options,omitempty"` Registries []Registry `json:"registries,omitempty"` Workspace string `json:"workspace,omitempty"` Environment []string `json:"environment,omitempty"` EnvironmentFiles []string `json:"env-file,omitempty"` Import *ImportFileList `json:"import,omitempty"` Export *ExportFileList `json:"export,omitempty"` Tasks map[string]Task `json:"tasks,omitempty"` Plans map[string]*Plan `json:"plans,omitempty"` Metaplans map[string][]string `json:"metaplans,omitempty"` }
func (*Config) ApplyOverride ¶
func (*Config) IsPlanDefined ¶
type ECRRegistry ¶
type ECRRegistry struct { AccessKeyID string `json:"access-key-id,omitempty"` SecretAccessKey string `json:"secret-access-key,omitempty"` AccountID string `json:"account-id,omitempty"` Region string `json:"region,omitempty"` Role string `json:"role,omitempty"` }
func (*ECRRegistry) GetType ¶
func (r *ECRRegistry) GetType() string
type ExportFileList ¶
type ExportFileList struct { Files []string `json:"files,omitempty"` Excludes []string `json:"excludes,omitempty"` CleanExcludes []string `json:"clean-excludes,omitempty"` }
func (*ExportFileList) Merge ¶
func (f *ExportFileList) Merge(child *ExportFileList)
type GCRRegistry ¶
type GCRRegistry struct { Hostname string `json:"hostname,omitempty"` Key string `json:"key,omitempty"` KeyFile string `json:"key-file,omitempty"` }
func (*GCRRegistry) GetType ¶
func (r *GCRRegistry) GetType() string
type Healthcheck ¶
type Healthcheck struct { Command string Interval time.Duration Retries int StartPeriod time.Duration Timeout time.Duration }
func (*Healthcheck) Extend ¶
func (h *Healthcheck) Extend(parent *Healthcheck) error
func (*Healthcheck) MarshalJSON ¶
func (h *Healthcheck) MarshalJSON() ([]byte, error)
type ImportFileList ¶
type ImportFileList struct { Files []string `json:"files,omitempty"` Excludes []string `json:"excludes,omitempty"` }
func (*ImportFileList) Merge ¶
func (f *ImportFileList) Merge(child *ImportFileList)
type Options ¶
type Options struct { SSHIdentities []string ForceSequential bool HealthcheckInterval time.Duration PathSubstitutions map[string]string }
func (*Options) MarshalJSON ¶
type Plan ¶
type Plan struct { Name string `json:"-"` Disabled string `json:"disabled,omitempty"` Extends string `json:"extends,omitempty"` Stages []*Stage `json:"stages,omitempty"` Environment []string `json:"environment,omitempty"` }
func (*Plan) InsertStage ¶
func (*Plan) StageIndex ¶
type PlanTask ¶
func (*PlanTask) MarshalJSON ¶
type PushTask ¶
type PushTask struct { TaskMeta Images []string `json:"images,omitempty"` IncludeBuilt bool `json:"include-built,omitempty"` }
func (*PushTask) MarshalJSON ¶
type RemoveTask ¶
type RemoveTask struct { TaskMeta Images []string `json:"images,omitempty"` IncludeBuilt bool `json:"include-built,omitempty"` }
func (*RemoveTask) Extend ¶
func (t *RemoveTask) Extend(task Task) error
func (*RemoveTask) GetType ¶
func (t *RemoveTask) GetType() string
func (*RemoveTask) MarshalJSON ¶
func (t *RemoveTask) MarshalJSON() ([]byte, error)
type RunMode ¶
type RunMode int
const ( RunModeOnSuccess RunMode RunModeOnFailure RunModeAlways )
func (RunMode) MarshalJSON ¶
type RunTask ¶
type RunTask struct { TaskMeta Image string `json:"image,omitempty"` Command string `json:"command,omitempty"` Shell string `json:"shell,omitempty"` Script string `json:"script,omitempty"` Entrypoint string `json:"entrypoint,omitempty"` User string `json:"user,omitempty"` Workspace string `json:"workspace,omitempty"` Hostname string `json:"hostname,omitempty"` Detach bool `json:"detach,omitempty"` Healthcheck *Healthcheck `json:"healthcheck,omitempty"` ExportEnvironmentFiles []string `json:"export-environment-files,omitempty"` }
func (*RunTask) MarshalJSON ¶
type ServerRegistry ¶
type ServerRegistry struct { Server string `json:"server,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` PasswordFile string `json:"password-file,omitempty"` }
func (*ServerRegistry) GetType ¶
func (r *ServerRegistry) GetType() string
type Stage ¶
type Stage struct { Name string `json:"name,omitempty"` Disabled string `json:"disabled,omitempty"` BeforeStage string `json:"before-stage,omitempty"` AfterStage string `json:"after-stage,omitempty"` RunMode RunMode `json:"run-mode,omitempty"` Parallel bool `json:"parallel,omitempty"` Environment []string `json:"environment,omitempty"` Tasks []*StageTask `json:"tasks,omitempty"` }
type TaskExtendsResolver ¶
type TaskExtendsResolver struct {
// contains filtered or unexported fields
}
func NewTaskExtendsResolver ¶
func NewTaskExtendsResolver(config *Config) *TaskExtendsResolver
func (*TaskExtendsResolver) Add ¶
func (r *TaskExtendsResolver) Add(task Task)
func (*TaskExtendsResolver) Resolve ¶
func (r *TaskExtendsResolver) Resolve() error
type TaskMeta ¶
type TaskMeta struct { Name string `json:"-"` Extends string `json:"extends,omitempty"` Environment []string `json:"environment,omitempty"` RequiredEnvironment []string `json:"required-environment,omitempty"` }
func (*TaskMeta) GetEnvironment ¶
func (*TaskMeta) GetExtends ¶
func (*TaskMeta) GetRequiredEnvironment ¶
Click to show internal directories.
Click to hide internal directories.