Documentation
¶
Index ¶
- func ContainerClean(id string, ctx context.Context, cli *client.Client)
- func Engine(cli *client.Client, ctx context.Context, w Workflow, sID string, ...)
- func FindVolume(name string, ctx context.Context, cli *client.Client) (volume *types.Volume, err error)
- func GenEnv(e []Env) []string
- func ImageExists(image string, ctx context.Context, cli *client.Client) bool
- func PullImage(image string, ctx context.Context, cli *client.Client)
- func RemoveVolume(name string, ctx context.Context, cli *client.Client) (removed bool, err error)
- func RunStage(s Stage, ctx context.Context, cli *client.Client, envs []Env, ...)
- func ToGraph(w Workflow)
- type Env
- type Input
- type Stage
- type Workflow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindVolume ¶
func RemoveVolume ¶
Types ¶
type Env ¶
type Env struct {
Name string `mapstructure:"name" validate:"nonzero,nowhitespace"`
Value string `mapstructure:"value" validate:"nonzero"`
}
func GenEnvFromArgs ¶
func ReadPropertiesFile ¶
type Stage ¶
type Stage struct {
Stage string `mapstructure:"stage" validate:"nonzero"`
ID string `mapstructure:"id,omitempty" validate:"nonzero,nowhitespace"`
Script []string `mapstructure:"script" validate:"nonzero"`
If string `mapstructure:"if,omitempty"`
Clean bool `mapstructure:"clean,omitempty"`
Env []Env `mapstructure:"env,omitempty"`
Artifacts []string `mapstructure:"artifacts,omitempty"`
Image string `mapstructure:"image,omitempty"`
Needs string `mapstructure:"needs,omitempty" validate:"nowhitespace"`
}
type Workflow ¶
type Workflow struct {
ID string `mapstructure:"id" validate:"nonzero,nowhitespace"`
Image string `mapstructure:"image" validate:"nonzero,nowhitespace"`
Description string `mapstructure:"description"`
Env []Env `mapstructure:"env"`
Input []Input `mapstructure:"input"`
Mount bool `mapstructure:"mount"`
Stages []Stage `mapstructure:"stages" validate:"nonzero"`
Repo string `mapstructure:"repository,omitempty"` // To be filled automatically. Not part of YAML.
}
Click to show internal directories.
Click to hide internal directories.