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 }
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"`
}
type VDiffBaseImage ¶
type VDiffBuildStage ¶
type VDiffBuildStage struct { StageName string `json:"stageName"` BaseImage VDiffBaseImage `json:"baseImage"` Packages []VDiffPackageInfo `json:"packages"` }
Click to show internal directories.
Click to hide internal directories.