parser

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: GPL-2.0, GPL-3.0 Imports: 9 Imported by: 0 modules, 0 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

Provides a parser for pipeline yaml files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	RecursivelyAddImports func(paths []string) ([]string, error)
	// contains filtered or unexported fields
}

func NewParser

func NewParser(options ...ParserOption) *Parser

func (*Parser) BuiltInPipelineFilePaths

func (parser *Parser) BuiltInPipelineFilePaths(projectPath string) ([]string, error)

func (*Parser) ParsePipelineFiles

func (parser *Parser) ParsePipelineFiles(allPipelineFilePaths []string, builtIn bool) (
	defaults pipeline.DefaultSettings,
	definitions pipeline.PipelineDefinitionsLookup,
	files []pipeline.File,
	returnErr error,
)

func (*Parser) ProcessPipelineFile

func (parser *Parser) ProcessPipelineFile(
	pipelineFile pipeline.File,
	builtIn bool,
) pipeline.PipelineDefinitionsLookup

func (*Parser) UserPipelineFilePaths

func (parser *Parser) UserPipelineFilePaths(args []string) ([]string, error)

type ParserOption

type ParserOption func(parser *Parser)

func WithFindByGlobImplementation

func WithFindByGlobImplementation(findByGlob func(pattern string) ([]string, error)) ParserOption

func WithReadFileImplementation

func WithReadFileImplementation(readFile func(filename string) ([]byte, error)) ParserOption

func WithRecursivelyAddImportsImplementation

func WithRecursivelyAddImportsImplementation(recursivelyAddImports func(paths []string) ([]string, error)) ParserOption

Jump to

Keyboard shortcuts

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