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: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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