Documentation ¶
Index ¶
Constants ¶
View Source
const ImageConfigField = "moby.buildkit.buildinfo.v1"
ImageConfigField defines the key of build dependencies.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶
type BuildInfo struct { // Frontend defines the frontend used to build. Frontend string `json:"frontend,omitempty"` // Attrs defines build request attributes. Attrs map[string]*string `json:"attrs,omitempty"` // Sources defines build dependencies. Sources []Source `json:"sources,omitempty"` // Deps defines context dependencies. Deps map[string]BuildInfo `json:"deps,omitempty"` }
BuildInfo defines the main structure added to image config as ImageConfigField key and returned in solver ExporterResponse as exptypes.ExporterBuildInfo key.
type ImageConfig ¶
type ImageConfig struct {
BuildInfo string `json:"moby.buildkit.buildinfo.v1,omitempty"`
}
ImageConfig defines the structure of build dependencies inside image config.
type Source ¶
type Source struct { // Type defines the SourceType source type (docker-image, git, http). Type SourceType `json:"type,omitempty"` // Ref is the reference of the source. Ref string `json:"ref,omitempty"` // Alias is a special field used to match with the actual source ref // because frontend might have already transformed a string user typed // before generating LLB. Alias string `json:"alias,omitempty"` // Pin is the source digest. Pin string `json:"pin,omitempty"` }
Source defines a build dependency.
type SourceType ¶
type SourceType string
SourceType contains source type.
const ( SourceTypeDockerImage SourceType = srctypes.DockerImageScheme SourceTypeGit SourceType = srctypes.GitScheme SourceTypeHTTP SourceType = srctypes.HTTPScheme )
List of source types.
Click to show internal directories.
Click to hide internal directories.