transform

package
v0.4.3-0...-2530f87 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeFilter

func ChangeFilter(conf *yaml.Config, prev string)

ChangeFilter is a transform function that alters status constraints set to change and replaces with the opposite of the prior status.

func Check

func Check(c *yaml.Config, trusted bool) error

func CheckEntrypoint

func CheckEntrypoint(c *yaml.Container) error

validate the plugin command and entrypoint and return an error the user attempts to set or override these values.

func CheckTrusted

func CheckTrusted(c *yaml.Container) error

validate the container configuration and return an error if restricted configurations are used.

func Clone

func Clone(c *yaml.Config, plugin string) error

Clone transforms the Yaml to include a clone step.

func CommandTransform

func CommandTransform(c *yaml.Config) error

CommandTransform transforms the custom shell commands in the Yaml pipeline into a container ENTRYPOINT and and CMD for execution.

func DefaultFilter

func DefaultFilter(conf *yaml.Config)

DefaultFilter is a transform function that applies default Filters to each step in the Yaml specification file.

func Environ

func Environ(c *yaml.Config, envs map[string]string) error

Environ transforms the steps in the Yaml pipeline to include runtime environment variables.

func Identifier

func Identifier(c *yaml.Config) error

Identifier transforms the container steps in the Yaml and assigns a unique container identifier.

func ImageEscalate

func ImageEscalate(conf *yaml.Config, patterns []string) error

ImageEscalate transforms the Yaml to automatically enable privileged mode for a subset of white-listed plugins matching the given patterns.

func ImageName

func ImageName(conf *yaml.Config) error

ImageName transforms the Yaml to replace underscores with dashes.

func ImageNamespace

func ImageNamespace(conf *yaml.Config, namespace string) error

ImageNamespace transforms the Yaml to use a default namepsace for plugins.

func ImagePull

func ImagePull(conf *yaml.Config, pull bool) error

ImagePull transforms the Yaml to automatically pull the latest image.

func ImageSecrets

func ImageSecrets(c *yaml.Config, secrets []*model.Secret, event string) error

func ImageTag

func ImageTag(conf *yaml.Config) error

ImageTag transforms the Yaml to use the :latest image tag when empty.

func ImageVolume

func ImageVolume(conf *yaml.Config, volumes []string) error

func PluginDisable

func PluginDisable(conf *yaml.Config, patterns []string) error

PluginDisable is a transform function that alters the Yaml configuration to disables plugins. This is intended for use when executing the pipeline locally on your own computer.

func PluginParams

func PluginParams(conf *yaml.Config) error

PluginParams is a transform function that alters the Yaml configuration to include plugin vargs parameters as environment variables.

func Pod

func Pod(c *yaml.Config) error

Pod transforms the containers in the Yaml to use Pod networking, where every container shares the localhost connection.

func WorkspaceTransform

func WorkspaceTransform(c *yaml.Config, base, path string) error

WorkspaceTransform transforms ...

Types

type TransformFunc

type TransformFunc func(*yaml.Config) error

TransformFunc defines an operation for transforming the Yaml file.

Jump to

Keyboard shortcuts

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