transform

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2017 License: Apache-2.0 Imports: 16 Imported by: ? modules, 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

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 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

ImageVolume mounts a default volume (used for drone exec)

func PluginDisable

func PluginDisable(conf *yaml.Config, local bool) 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, platform string) error

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

func RemoteTransform

func RemoteTransform(c *yaml.Config, url []string) error

RemoteTransform makes remote transform requests.

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