Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigFile ¶
type ConfigFile struct {
Key string // Key in ConfigMap
Filename string // Filename when mounted
Content string // File content
}
ConfigFile represents a file to be mounted from ConfigMap
type ConfigFileMount ¶
type ConfigFileMount struct {
Path string // Mount path directory
Keys []string // Keys to mount as files
}
ConfigFileMount represents a mounted ConfigMap as files
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
Variables []*Variable
ConfigFiles []*ConfigFile // Files to add to ConfigMap
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
Variables []*VariableEnv
ConfigFileMounts []*ConfigFileMount // ConfigMap file mounts
Privileged bool
RestartPolicy RestartPolicy
//housekeeping
Liveness *Liveness
}
func (*Step) AddScriptCmd ¶
func (*Step) AddStripCmds ¶
func (*Step) AppendArgs ¶
func (*Step) GenerateShellScript ¶
type VariableEnv ¶
type VariableEnv struct {
Key string
}
type VolumeMount ¶
Click to show internal directories.
Click to hide internal directories.