parser

package
v0.71.2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v0.68.0

type Option func(p *Parser)

func WithStrict added in v0.68.0

func WithStrict() Option

WithStrict returns a Parser option that enables strict parsing mode. By default, the Parser runs in non-strict mode, where unknown flags are ignored. Calling this option ensures that unknown flags cause an error.

type Parser

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

func NewParser added in v0.68.0

func NewParser(opts ...Option) *Parser

func (*Parser) Parse added in v0.68.0

func (p *Parser) Parse(_ context.Context, r io.Reader, path string) ([]*dockerfile.Dockerfile, error)

Jump to

Keyboard shortcuts

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