{"modulePath":"github.com/mintoolkit/mint","version":"v0.0.0-20261102071007-1bc8c79add0d","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package spec\n\nPackage spec describes the Dockerfile data model.\n\n## Types\n\n```go\ntype BuildStage struct {\n\tIndex     int         `json:\"index\"`\n\tStartLine int         `json:\"start_line\"`\n\tEndLine   int         `json:\"end_line\"`\n\tName      string      `json:\"name,omitempty\"`\n\tParent    ParentImage `json:\"parent\"`\n\n\tAllInstructions           []*instruction.Field            `json:\"-\"`\n\tCurrentInstructions       []*instruction.Field            `json:\"-\"`\n\tOnBuildInstructions       []*instruction.Field            `json:\"-\"`\n\tUnknownInstructions       []*instruction.Field            `json:\"-\"`\n\tInvalidInstructions       []*instruction.Field            `json:\"-\"` //not including unknown instructions\n\tCurrentInstructionsByType map[string][]*instruction.Field `json:\"-\"`\n\tFromInstruction           *instruction.Field              `json:\"-\"`\n\tArgInstructions           []*instruction.Field            `json:\"-\"`\n\tEnvInstructions           []*instruction.Field            `json:\"-\"`\n\n\tEnvVars            map[string]string      `json:\"-\"`\n\tBuildArgs          map[string]string      `json:\"-\"`\n\tFromArgs           map[string]string      `json:\"-\"` //\"FROM\" ARGs used by the stage\n\tUnknownFromArgs    map[string]struct{}    `json:\"-\"`\n\tIsUsed             bool                   `json:\"-\"`\n\tStageReferences    map[string]*BuildStage `json:\"-\"`\n\tExternalReferences map[string]struct{}    `json:\"-\"`\n}\n```\n\n```go\nfunc NewBuildStage() *BuildStage\n```\n\n```go\ntype Dockerfile struct {\n\tName                  string\n\tLocation              string\n\tLines                 []string\n\tFromArgs              map[string]string //all \"FROM\" ARGs\n\tStages                []*BuildStage\n\tStagesByName          map[string]*BuildStage\n\tLastStage             *BuildStage\n\tStagelessInstructions []*instruction.Field\n\tArgInstructions       []*instruction.Field\n\tAllInstructions       []*instruction.Field\n\tInstructionsByType    map[string][]*instruction.Field\n\tUnknownInstructions   []*instruction.Field\n\tInvalidInstructions   []*instruction.Field //not including unknown instructions\n\tWarnings              []string\n}\n```\n\n```go\nfunc NewDockerfile() *Dockerfile\n```\n\n```go\ntype ParentImage struct {\n\tName           string      `json:\"name,omitempty\"`\n\tTag            string      `json:\"tag,omitempty\"`\n\tDigest         string      `json:\"digest,omitempty\"`\n\tBuildArgAll    string      `json:\"-\"`\n\tBuildArgName   string      `json:\"-\"`\n\tBuildArgTag    string      `json:\"-\"`\n\tBuildArgDigest string      `json:\"-\"`\n\tHasEmptyName   bool        `json:\"-\"`\n\tHasEmptyTag    bool        `json:\"-\"`\n\tHasEmptyDigest bool        `json:\"-\"`\n\tParentStage    *BuildStage `json:\"-\"`\n}\n```\n\n","path":"github.com/mintoolkit/mint/pkg/docker/dockerfile/spec","name":"spec","synopsis":"Package spec describes the Dockerfile data model.","isRedistributable":true}
