parser

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct{}

func New

func New() *Parser

New creates a new Dockerfile parser

func (*Parser) Parse

func (p *Parser) Parse(path string, r io.Reader) (*dockerfile.Dockerfile, error)

Parse parses Dockerfile content from the provided reader. The path is provided purely for metadata, it does not have to exist.

func (*Parser) ParseFile

func (p *Parser) ParseFile(path string) (*dockerfile.Dockerfile, error)

ParseFile parses a Dockerfile from the given path

Jump to

Keyboard shortcuts

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