pipelines

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: Apache-2.0 Imports: 16 Imported by: 4

Documentation

Index

Constants

View Source
const (
	StatementSymbolicLink = "link"
	StatementFile         = "file"
	StatementEnv          = "env"
	StatementScript       = "script"
	StatementDir          = "dir"
)

Variables

This section is empty.

Functions

func ExpandList added in v0.1.5

func ExpandList(vs []string) func(s string) string

func SetOrAppend added in v0.1.5

func SetOrAppend(vars []string, k, v string) []string

Types

type BuildContext

type BuildContext struct {
	Context          context.Context
	WorkingDirectory string
	FS               fs.FullFS
	ConfigFile       *v1.ConfigFile
}

type Dir added in v0.1.5

type Dir struct {
	// contains filtered or unexported fields
}

Dir recursively copies a directory into the container. Accepts the following parameters:

1. "src": where to retrieve the directory from

2. "dst": where to place the directory in the container

func (*Dir) Name added in v0.1.5

func (*Dir) Name() string

func (*Dir) Run added in v0.1.5

func (s *Dir) Run(ctx *BuildContext, runtimeOptions ...cbev1.Options) (cbev1.Options, error)

func (*Dir) SetOptions added in v0.1.5

func (s *Dir) SetOptions(options cbev1.Options)

type Env

type Env struct {
	// contains filtered or unexported fields
}

Env exports one or more environment variables. Options should be a key-value map where key is the name and the value is the value to set.

func (*Env) Name

func (*Env) Name() string

func (*Env) Run

func (s *Env) Run(ctx *BuildContext, _ ...cbev1.Options) (cbev1.Options, error)

func (*Env) SetOptions added in v0.1.2

func (s *Env) SetOptions(options cbev1.Options)

type File

type File struct {
	// contains filtered or unexported fields
}

File downloads or adds a file. Accepts the following parameters:

1. "path": where to place the file in the container

2. "uri": URI indicating where to get the file from. Supports https:// and file:// schemes and will default to file:// if none is provided.

3. "executable": make the file executable

4. "sub-path": if the file is an archive, extract a file from it

5. "checksum": hash of the file for checksum validation

func (*File) Name

func (*File) Name() string

func (*File) Run

func (s *File) Run(ctx *BuildContext, _ ...cbev1.Options) (cbev1.Options, error)

func (*File) SetOptions added in v0.1.2

func (s *File) SetOptions(options cbev1.Options)

type OrderedPipelineStatement added in v0.1.2

type OrderedPipelineStatement struct {
	ID        string
	Options   cbev1.Options
	Statement PipelineStatement
	DependsOn []string
}

type PipelineStatement

type PipelineStatement interface {
	Run(ctx *BuildContext, runtimeOptions ...cbev1.Options) (cbev1.Options, error)
	Name() string
	SetOptions(options cbev1.Options)
}

func Find

func Find(name string, options cbev1.Options) PipelineStatement

type Script added in v0.1.7

type Script struct {
	// contains filtered or unexported fields
}

Script executes an arbitrary script. Accepts the following parameters:

1. "command": command to execute

2. "args": additional arguments to pass to the command.

func (*Script) Name added in v0.1.7

func (*Script) Name() string

func (*Script) Run added in v0.1.7

func (s *Script) Run(ctx *BuildContext, _ ...cbev1.Options) (cbev1.Options, error)

func (*Script) SetOptions added in v0.1.7

func (s *Script) SetOptions(options cbev1.Options)

type StatementFinder

type StatementFinder = func(name string, options cbev1.Options) PipelineStatement
type SymbolicLink struct {
	// contains filtered or unexported fields
}

SymbolicLink creates one or more symbolic links. Options should be a key-value map where key is the source and the value is the name of the link.

func (*SymbolicLink) Name

func (*SymbolicLink) Name() string

func (*SymbolicLink) Run

func (s *SymbolicLink) Run(ctx *BuildContext, _ ...cbev1.Options) (cbev1.Options, error)

func (*SymbolicLink) SetOptions added in v0.1.2

func (s *SymbolicLink) SetOptions(options cbev1.Options)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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