Documentation ¶
Index ¶
- Constants
- func BuildOp(node parse.Node) error
- type Visitor
- func NewAliasOp(prefix string) Visitor
- func NewArgsOp() Visitor
- func NewCacheOp(plugin, mount string, enable bool) Visitor
- func NewCloneOp(plugin string, enable bool) Visitor
- func NewEnvOp(envs map[string]string) Visitor
- func NewEscalateOp(plugins []string) Visitor
- func NewFilterOp(status, branch, event, env string, matrix map[string]string) Visitor
- func NewNormalizeOp(namespace string) Visitor
- func NewPodOp(name string) Visitor
- func NewPullOp(pull bool) Visitor
- func NewSecretOp(event string, secrets []*model.Secret) Visitor
- func NewShellOp(platform string) Visitor
- func NewValidateOp(trusted bool, plugins []string) Visitor
- func NewWorkspaceOp(base, path string) Visitor
Constants ¶
const ( Freebsd_amd64 = "freebsd_amd64" Linux_adm64 = "linux_amd64" Windows_amd64 = "windows_amd64" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Visitor ¶
type Visitor interface { VisitRoot(*parse.RootNode) error VisitVolume(*parse.VolumeNode) error VisitNetwork(*parse.NetworkNode) error VisitBuild(*parse.BuildNode) error VisitContainer(*parse.ContainerNode) error }
Visitor interface for walking the Yaml file.
func NewAliasOp ¶
func NewArgsOp ¶
func NewArgsOp() Visitor
NewArgsOp returns a transformer that provides the plugin node with the custom arguments from the Yaml file.
func NewCacheOp ¶
NewCacheOp returns a transformer that configures the default cache plugin.
func NewCloneOp ¶
NewCloneOp returns a transformer that configures the default clone plugin.
func NewEnvOp ¶
NewEnvOp returns a transformer that sets default environment variables for each container, service and plugin.
func NewEscalateOp ¶
NewEscalateOp returns a transformer that configures plugins to automatically execute in privileged mode. This is intended for plugins running dind.
func NewFilterOp ¶
NewFilterOp returns a transformer that filters (ie removes) steps from the process based on conditional logic in the yaml.
func NewNormalizeOp ¶
NewNormalizeOp returns a transformer that normalizes the container image names and plugin names to their fully qualified values.
func NewPodOp ¶
NewPodOp returns a transformer that configures an ambassador container providing shared networking and container volumes.
func NewPullOp ¶
NewPullOp returns a transformer that configures plugins to automatically pull the latest images at runtime.
func NewSecretOp ¶
NewSecretOp returns a transformer that configures plugin secrets.
func NewShellOp ¶
NewShellOp returns a transformer that converts the shell node to a runnable container.
func NewValidateOp ¶
NewValidateOp returns a linter that checks container configuration.
func NewWorkspaceOp ¶
NewWorkspaceOp returns a transformer that provides a default workspace paths, including the base path (mounted as a volume) and absolute path where the code is cloned.