parser

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildStage

type BuildStage interface {
	ToString() string
	GetFromInstruction() (FromInstruction, error)
	UpdatePackageInfos(reference packageVersions)
	// contains filtered or unexported methods
}

type FromInstruction

type FromInstruction interface {
	ToString() string
	ImageInfoString() string
	UpdateImageInfo(digest string)
	// contains filtered or unexported methods
}

func ParseFromInstruction

func ParseFromInstruction(r reader) (FromInstruction, error)

type MoldFile

type MoldFile interface {
	ToString() string

	BuildStageCount() int
	GetBuildStage(index int) (BuildStage, error)
	// contains filtered or unexported methods
}

func ParseMoldFile

func ParseMoldFile(ior io.Reader) (MoldFile, error)

ParseMoldFile parses a MoldFile format file (includes Dockerfile)

type OtherInstruction

type OtherInstruction interface {
	ToString() string
	// contains filtered or unexported methods
}

OtherInstruction holds all instructions exclude `FROM` and `RUN`. It also holds a comment line and a blank line.

TODO: Consider to separate to other interface for holding a comment and a blank line.

func ParseOtherInstruction

func ParseOtherInstruction(r reader, enableMultiline bool) (OtherInstruction, error)

type RunInstruction

type RunInstruction interface {
	ToString() string
	UpdatePackageInfos(reference packageVersions)
	// contains filtered or unexported methods
}

func ParseRunInstruction

func ParseRunInstruction(r reader) (RunInstruction, error)

type VDiff

type VDiff struct {
	BuildStages []VDiffBuildStage `json:"buildStages"`
}

func VDiffMoldfiles

func VDiffMoldfiles(moldfile1 MoldFile, moldfile2 MoldFile) (VDiff, error)

type VDiffBaseImage

type VDiffBaseImage struct {
	Name      string `json:"name"`
	Moldfile1 string `json:"moldfile1"`
	Moldfile2 string `json:"moldfile2"`
}

type VDiffBuildStage

type VDiffBuildStage struct {
	StageName string             `json:"stageName"`
	BaseImage VDiffBaseImage     `json:"baseImage"`
	Packages  []VDiffPackageInfo `json:"packages"`
}

type VDiffPackageInfo

type VDiffPackageInfo struct {
	PackageManager string `json:"packageManager"`
	Name           string `json:"name"`
	Moldfile1      string `json:"moldfile1"`
	Moldfile2      string `json:"moldfile2"`
}

Jump to

Keyboard shortcuts

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