rpcparser

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRPCEndpoint = "grpc.cirrus-ci.com:443"
)

Variables

View Source
var (
	ErrRPC           = errors.New("RPC error")
	ErrFilesContents = errors.New("failed to retrieve files contents")
)

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// RPCEndpoint specifies an alternative RPC endpoint to use. If empty, DefaultRPCEndpoint is used.
	RPCEndpoint string

	// Environment to take into account when expanding variables.
	Environment map[string]string

	// Paths and contents of the files that might influence the parser.
	FilesContents map[string]string
}

func (*Parser) Parse

func (p *Parser) Parse(config string) (*Result, error)

func (*Parser) ParseFromFile

func (p *Parser) ParseFromFile(path string) (*Result, error)

type Result

type Result struct {
	Errors []string
	Tasks  []*api.Task
}

Jump to

Keyboard shortcuts

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