Documentation
¶
Overview ¶
Package native provides the ability for Vela to reconstruct a yaml configuration into an executable pipeline.
Usage:
import "github.com/go-vela/compiler/compiler/native"
Index ¶
- func ParseBytes(b []byte) (*types.Build, error)
- func ParseFile(f *os.File) (*types.Build, error)
- func ParsePath(p string) (*types.Build, error)
- func ParseReader(r io.Reader) (*types.Build, error)
- func ParseString(s string) (*types.Build, error)
- type Client
- func (c *Client) CloneStage(p *yaml.Build) (*yaml.Build, error)
- func (c *Client) CloneStep(p *yaml.Build) (*yaml.Build, error)
- func (c *Client) Compile(v interface{}) (*pipeline.Build, error)
- func (c *Client) EnvironmentStages(s yaml.StageSlice) (yaml.StageSlice, error)
- func (c *Client) EnvironmentSteps(s yaml.StepSlice) (yaml.StepSlice, error)
- func (c *Client) ExpandStages(s yaml.StageSlice, tmpls map[string]*yaml.Template) (yaml.StageSlice, error)
- func (c *Client) ExpandSteps(s yaml.StepSlice, tmpls map[string]*yaml.Template) (yaml.StepSlice, error)
- func (c *Client) Parse(v interface{}) (*types.Build, error)
- func (c *Client) ScriptStages(s yaml.StageSlice) (yaml.StageSlice, error)
- func (c *Client) ScriptSteps(s yaml.StepSlice) (yaml.StepSlice, error)
- func (c *Client) TransformStages(r *pipeline.RuleData, p *yaml.Build) (*pipeline.Build, error)
- func (c *Client) TransformSteps(r *pipeline.RuleData, p *yaml.Build) (*pipeline.Build, error)
- func (c *Client) Validate(p *yaml.Build) error
- func (c *Client) WithBuild(b *library.Build) compiler.Engine
- func (c *Client) WithFiles(f []string) compiler.Engine
- func (c *Client) WithRepo(r *library.Repo) compiler.Engine
- func (c *Client) WithUser(u *library.User) compiler.Engine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBytes ¶
ParseBytes converts a byte slice to a yaml configuration.
func ParseReader ¶
ParseReader converts an io.Reader into a yaml configuration.
Types ¶
type Client ¶
type Client struct {
Github registry.Service
PrivateGithub registry.Service
// contains filtered or unexported fields
}
func (*Client) CloneStage ¶
CloneStage injects the stage clone process into a yaml configuration.
func (*Client) EnvironmentStages ¶
func (c *Client) EnvironmentStages(s yaml.StageSlice) (yaml.StageSlice, error)
EnvironmentStages injects environment variables for each step in every stage in a yaml configuration.
func (*Client) EnvironmentSteps ¶
EnvironmentSteps injects environment variables for each step in a yaml configuration.
func (*Client) ExpandStages ¶
func (c *Client) ExpandStages(s yaml.StageSlice, tmpls map[string]*yaml.Template) (yaml.StageSlice, error)
ExpandStages injects the template for each templated step in every stage in a yaml configuration.
func (*Client) ExpandSteps ¶
func (c *Client) ExpandSteps(s yaml.StepSlice, tmpls map[string]*yaml.Template) (yaml.StepSlice, error)
ExpandSteps injects the template for each templated step in a yaml configuration.
func (*Client) ScriptStages ¶
func (c *Client) ScriptStages(s yaml.StageSlice) (yaml.StageSlice, error)
ScriptStages injects the script for each step in every stage in a yaml configuration.
func (*Client) ScriptSteps ¶
ScriptSteps injects the script for each step in a yaml configuration.
func (*Client) TransformStages ¶
TransformStages converts a yaml configuration with stages into an executable pipeline.
func (*Client) TransformSteps ¶
TransformSteps converts a yaml configuration with steps into an executable pipeline.