Documentation
¶
Index ¶
- func ChangeFilter(conf *yaml.Config, prev string)
- func Check(c *yaml.Config, trusted bool) error
- func CheckEntrypoint(c *yaml.Container) error
- func CheckTrusted(c *yaml.Container) error
- func Clone(c *yaml.Config, plugin string) error
- func CommandTransform(c *yaml.Config) error
- func DefaultFilter(conf *yaml.Config)
- func Environ(c *yaml.Config, envs map[string]string) error
- func Identifier(c *yaml.Config) error
- func ImageEscalate(conf *yaml.Config, patterns []string) error
- func ImagePull(conf *yaml.Config, pull bool) error
- func ImageSecrets(c *yaml.Config, secrets []*model.Secret, event string) error
- func ImageTag(conf *yaml.Config) error
- func ImageVolume(conf *yaml.Config, volumes []string) error
- func PluginDisable(conf *yaml.Config, local bool) error
- func PluginParams(conf *yaml.Config) error
- func Pod(c *yaml.Config, platform string) error
- func RemoteTransform(c *yaml.Config, url []string) error
- func WorkspaceTransform(c *yaml.Config, base, path string) error
- type TransformFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeFilter ¶
ChangeFilter is a transform function that alters status constraints set to change and replaces with the opposite of the prior status.
func CheckEntrypoint ¶
validate the plugin command and entrypoint and return an error the user attempts to set or override these values.
func CheckTrusted ¶
validate the container configuration and return an error if restricted configurations are used.
func CommandTransform ¶
CommandTransform transforms the custom shell commands in the Yaml pipeline into a container ENTRYPOINT and and CMD for execution.
func DefaultFilter ¶
DefaultFilter is a transform function that applies default Filters to each step in the Yaml specification file.
func Environ ¶
Environ transforms the steps in the Yaml pipeline to include runtime environment variables.
func Identifier ¶
Identifier transforms the container steps in the Yaml and assigns a unique container identifier.
func ImageEscalate ¶
ImageEscalate transforms the Yaml to automatically enable privileged mode for a subset of white-listed plugins matching the given patterns.
func ImageVolume ¶
ImageVolume mounts a default volume (used for drone exec)
func PluginDisable ¶
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 ¶
PluginParams is a transform function that alters the Yaml configuration to include plugin vargs parameters as environment variables.
func Pod ¶
Pod transforms the containers in the Yaml to use Pod networking, where every container shares the localhost connection.
func RemoteTransform ¶
RemoteTransform makes remote transform requests.
Types ¶
type TransformFunc ¶
TransformFunc defines an operation for transforming the Yaml file.