binfotypes

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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