transform

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Combine

func Combine(fns ...func(*engine.Spec)) func(*engine.Spec)

Combine is a transform function that combines one or many transform functions.

func Exclude

func Exclude(names []string) func(*engine.Spec)

Exclude is a transform function that limits the pipeline execution to a whitelist of named steps.

func Include

func Include(names []string) func(*engine.Spec)

Include is a transform function that limits the pipeline execution to a whitelist of named steps.

func ResumeAt

func ResumeAt(name string) func(*engine.Spec)

ResumeAt is a transform function that modifies the exuction to resume at a named step.

func WithAuths

func WithAuths(auths []*engine.DockerAuth) func(*engine.Spec)

WithAuths is a transform function that adds a set of global registry credentials to the container.

func WithAuthsFunc

func WithAuthsFunc(f AuthsFunc) func(*engine.Spec)

WithAuthsFunc is a transform function that provides the sepcification with registry authentication credentials via a callback function.

func WithEnviron

func WithEnviron(envs map[string]string) func(*engine.Spec)

WithEnviron is a transform function that adds a set of environment variables to each container.

func WithLables

func WithLables(labels map[string]string) func(*engine.Spec)

WithLables is a transform function that adds a set of labels to each resource.

func WithLimits

func WithLimits(memlimit, cpulimit int64) func(*engine.Spec)

WithLimits is a transform function that applies resource limits to the container processes.

func WithNetrc

func WithNetrc(machine, username, password string) func(*engine.Spec)

WithNetrc is a helper function that creates a netrc file and mounts the file to all container steps.

func WithNetworks

func WithNetworks(networks []string) func(*engine.Spec)

WithNetworks is a transform function that attaches a list of user-defined Docker networks to each step.

func WithProxy

func WithProxy() func(*engine.Spec)

WithProxy is a transform function that adds the http_proxy environment variables to every container.

func WithSecretFunc

func WithSecretFunc(f SecretFunc) func(*engine.Spec)

WithSecretFunc is a transform function that resolves all named secrets through a callback function, and adds the secrets to the specification.

func WithSecrets

func WithSecrets(secrets map[string]string) func(*engine.Spec)

WithSecrets is a transform function that adds a set of global secrets to the container.

func WithVolumeSlice

func WithVolumeSlice(volumes []string) func(*engine.Spec)

WithVolumeSlice is a transform function that adds a set of global volumes to the container that are defined in --volume=host:container format.

func WithVolumes

func WithVolumes(volumes map[string]string) func(*engine.Spec)

WithVolumes is a transform function that adds a set of global volumes to the container.

Types

type AuthsFunc

type AuthsFunc func() []*engine.DockerAuth

AuthsFunc is a callback function used to request registry credentials to pull private images.

type SecretFunc

type SecretFunc func(string) *engine.Secret

SecretFunc is a callback function used to request named secret, required by a pipeline step.

Jump to

Keyboard shortcuts

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