Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LivenessExec ¶
type LivenessExec struct {
Command []string
}
type ResourcesLimit ¶
type RestartPolicy ¶
type RestartPolicy string
const ( RestartPolicyNever RestartPolicy = "Never" RestartPolicyAlways RestartPolicy = "Always" )
type RunnerContext ¶
type RunnerContext struct {
RunnerName string
Deployment *types.Deployment
ApplicationUID int64
Domain string
Workspaces []*Volume
Steps []*Step
InitSteps []*Step
Secrets []*Secret
ResourcesLimit *ResourcesLimit
}
RunnerContext holds the information required for runner to execute a deployment.
type RunnerContextInput ¶
type RunnerContextInput struct {
Application *types.Application
Variables map[string]*types.Variable
Volumes []*types.Volume
Deployment *types.Deployment
PreviousDeployment *types.Deployment
Netrc *types.Netrc
Config *config.PipelineConfig
ServerRestctions *types.ServerRestrictions
}
RunnerContextInput contains the input params to generate runner context.
type Step ¶
type Step struct {
Name string
Image string
Command []string
Args []string
ScriptCommands []string
WorkingDir string
Envs map[string]string
VolumeMounts []*VolumeMount
Secrets []*SecretEnv
Privileged bool
RestartPolicy RestartPolicy
//housekeeping
Liveness *Liveness
}
func (*Step) AddScriptCmd ¶
func (*Step) AddStripCmds ¶
func (*Step) AppendArgs ¶
func (*Step) GenerateShellScript ¶
type VolumeMount ¶
Click to show internal directories.
Click to hide internal directories.