parser

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 38 Imported by: ? 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

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBfuncNoArguments         = errors.New("no arguments provided")
	ErrBfuncArgumentIsNotString = errors.New("argument should be a string")
)
View Source
var (
	ErrFailedToRetrieve = errors.New("failed to retrieve")
	ErrFailedToAnalyze  = errors.New("failed to analyze")
)

Functions

func CountMatchingAffectedFiles added in v0.61.0

func CountMatchingAffectedFiles(affectedFiles []string, patterns []string) (int, error)

Types

type Option added in v0.7.0

type Option func(*Parser)

func WithAdditionalInstances added in v0.9.0

func WithAdditionalInstances(additionalInstances map[string]protoreflect.MessageDescriptor) Option

func WithAdditionalTaskProperties added in v0.29.0

func WithAdditionalTaskProperties(additionalTaskProperties []*descriptor.FieldDescriptorProto) Option

func WithAffectedFiles added in v0.11.0

func WithAffectedFiles(affectedFiles []string) Option

func WithEnvironment added in v0.7.0

func WithEnvironment(environment map[string]string) Option

func WithFileSystem added in v0.9.0

func WithFileSystem(fs fs.FileSystem) Option

func WithMissingInstancesAllowed added in v0.35.0

func WithMissingInstancesAllowed() 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) NextTaskID added in v0.7.0

func (p *Parser) NextTaskID() int64

func (*Parser) NextTaskLocalIndex added in v0.15.0

func (p *Parser) NextTaskLocalIndex() int64

func (*Parser) Parse

func (p *Parser) Parse(ctx context.Context, config string) (result *Result, err error)

func (*Parser) ParseFromFile

func (p *Parser) ParseFromFile(ctx context.Context, path string) (*Result, error)

func (*Parser) Schema added in v0.7.0

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

type Result

type Result struct {
	Tasks  []*api.Task
	Issues []*api.Issue

	// A helper field that lets some external post-processor
	// to inject new tasks correctly (e.g. Dockerfile build tasks)
	TasksCountBeforeFiltering int64
}

Jump to

Keyboard shortcuts

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