parser

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Option added in v0.7.0

type Option func(*Parser)

func WithEnvironment added in v0.7.0

func WithEnvironment(environment map[string]string) Option

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func New added in v0.7.0

func New(opts ...Option) *Parser

func (*Parser) ContentHash added in v0.7.0

func (p *Parser) ContentHash(filePath string) string

func (*Parser) NextTaskID added in v0.7.0

func (p *Parser) NextTaskID() int64

func (*Parser) Parse

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

func (*Parser) ParseFromFile

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

func (*Parser) Schema added in v0.7.0

func (p *Parser) Schema() *schema.Schema

type Result

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

Directories

Path Synopsis
modifier

Jump to

Keyboard shortcuts

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