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 New(ctx *cli.Context) (*client, error)
- 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 ModificationConfig
- type ModifyRequest
- type ModifyResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ctx *cli.Context) (*client, error)
New returns a Pipeline implementation that integrates with the supported registries.
nolint: golint // ignore returning unexported client
func ParseBytes ¶
ParseBytes converts a byte slice to a yaml configuration.
func ParseReader ¶
ParseReader converts an io.Reader into a yaml configuration.
Types ¶
type ModificationConfig ¶ added in v0.6.0
type ModifyRequest ¶ added in v0.6.0
type ModifyRequest struct { Pipeline string `json:"pipeline,omitempty"` Build int `json:"build,omitempty"` Repo string `json:"repo,omitempty"` User string `json:"user,omitempty"` }
ModifyRequest contains the payload passed to the modification endpoint.
type ModifyResponse ¶ added in v0.7.2
type ModifyResponse struct {
Pipeline string `json:"pipeline,omitempty"`
}
ModifyResponse contains the payload returned by the modification endpoint.
Click to show internal directories.
Click to hide internal directories.