pipeline

package
v0.0.2-alpha.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Liveness

type Liveness struct {
	Exec *LivenessExec
}

Liveness

type LivenessExec

type LivenessExec struct {
	Command []string
}

type ResourcesLimit

type ResourcesLimit struct {
	Memory float64
	CPU    float64
}

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 Secret

type Secret struct {
	Name string
	Data string
	Mask bool
}

type SecretEnv

type SecretEnv struct {
	Key string
}

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 (s *Step) AddScriptCmd(cmd string)

func (*Step) AddStripCmds

func (s *Step) AddStripCmds(cmds ...string)

func (*Step) AppendArgs

func (s *Step) AppendArgs(args []string)

func (*Step) GenerateShellScript

func (s *Step) GenerateShellScript() string

type Variable

type Variable struct {
	Name  string
	Value string
}

type VariableEnv

type VariableEnv struct {
	Key string
}

type Volume

type Volume struct {
	ID   string
	Size int64
}

type VolumeMount

type VolumeMount struct {
	ID       string
	Path     string
	Readonly bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL