Documentation
¶
Overview ¶
Package native provides the ability for Vela to reconstruct a yaml configuration into an executable pipeline.
Usage:
import "github.com/go-vela/server/compiler/native"
Index ¶
- func FromCLIContext(ctx *cli.Context) (*client, error)
- func ParseBytes(data []byte) (*yaml.Build, []byte, []string, error)
- func ParseFile(f *os.File) (*yaml.Build, []byte, []string, error)
- func ParseFileRaw(f *os.File) (string, error)
- func ParsePath(p string) (*yaml.Build, []byte, []string, error)
- func ParsePathRaw(p string) (string, error)
- func ParseReader(r io.Reader) (*yaml.Build, []byte, []string, error)
- func ParseReaderRaw(r io.Reader) (string, error)
- func ParseString(s string) (*yaml.Build, []byte, []string, error)
- type ModificationConfig
- type ModifyRequest
- type ModifyResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromCLIContext ¶ added in v0.24.0
func FromCLIContext(ctx *cli.Context) (*client, error)
FromCLIContext returns a Pipeline implementation that integrates with the supported registries.
func ParseBytes ¶
ParseBytes converts a byte slice to a yaml configuration.
func ParseFileRaw ¶
ParseFileRaw converts an os.File into a string.
func ParsePathRaw ¶
ParsePathRaw converts a file path into a yaml configuration.
func ParseReader ¶
ParseReader converts an io.Reader into a yaml configuration.
func ParseReaderRaw ¶
ParseReaderRaw converts an io.Reader into a yaml configuration.
Types ¶
type ModificationConfig ¶
type ModifyRequest ¶
type ModifyRequest struct { Pipeline string `json:"pipeline,omitempty"` Build int `json:"build,omitempty"` Repo string `json:"repo,omitempty"` Org string `json:"org,omitempty"` User string `json:"user,omitempty"` }
ModifyRequest contains the payload passed to the modification endpoint.
type ModifyResponse ¶
type ModifyResponse struct {
Pipeline string `json:"pipeline,omitempty"`
}
ModifyResponse contains the payload returned by the modification endpoint.