native

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 29 Imported by: 2

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

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: revive // ignore returning unexported client

func ParseBytes

func ParseBytes(b []byte) (*types.Build, error)

ParseBytes converts a byte slice to a yaml configuration.

func ParseFile

func ParseFile(f *os.File) (*types.Build, error)

ParseFile converts an os.File into a yaml configuration.

func ParseFileRaw added in v0.9.0

func ParseFileRaw(f *os.File) (string, error)

ParseFileRaw converts an os.File into a string.

func ParsePath

func ParsePath(p string) (*types.Build, error)

ParsePath converts a file path into a yaml configuration.

func ParsePathRaw added in v0.9.0

func ParsePathRaw(p string) (string, error)

ParsePathRaw converts a file path into a yaml configuration.

func ParseReader

func ParseReader(r io.Reader) (*types.Build, error)

ParseReader converts an io.Reader into a yaml configuration.

func ParseReaderRaw added in v0.9.0

func ParseReaderRaw(r io.Reader) (string, error)

ParseReaderRaw converts an io.Reader into a yaml configuration.

func ParseString

func ParseString(s string) (*types.Build, error)

ParseString converts a string into a yaml configuration.

Types

type ModificationConfig added in v0.6.0

type ModificationConfig struct {
	Timeout  time.Duration
	Retries  int
	Endpoint string
	Secret   string
}

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"`
	Org      string `json:"org,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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL