parser

package
v0.37.2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type From

type From struct {
	BaseImage   string // e.g., "golang:1.23-alpine"
	BaseVersion string // e.g., "1.23"
	StageName   string // e.g., "builder" (empty if no AS clause)
	Original    string // Original instruction line
	Line        int    // Line number in the Dockerfile
}

From represents a FROM instruction in a Dockerfile

type Parser

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

func New

func New(dockerfile []byte) *Parser

func (*Parser) ParseFrom

func (p *Parser) ParseFrom() ([]From, error)

ParseFrom parses a Dockerfile and returns all FROM instructions

Jump to

Keyboard shortcuts

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