Documentation ¶
Index ¶
- Constants
- Variables
- func BuildDefinitionToImage(env cfg.Context, conf build.BuildTarget, def *llb.Definition) compute.Computable[oci.Image]
- func BuildFilesystem(ctx context.Context, conf cfg.Configuration, target build.BuildTarget, ...) (compute.Computable[fs.FS], error)
- func BuildImage(ctx context.Context, env cfg.Context, conf build.BuildTarget, state llb.State, ...) (compute.Computable[oci.Image], error)
- func DockerfileBuild(rel, dockerfile string, isFocus bool) (build.Spec, error)
- func HostPlatform() specs.Platform
- func MakeLocalExcludes(src LocalContents) []string
- func MakeLocalState(src LocalContents) llb.State
- func Prune(ctx context.Context, cfg cfg.Configuration, targetPlatform specs.Platform) error
- func RemoveBuildkitd(ctx context.Context) error
- func Version() (string, error)
- type BuildkitAwareRegistry
- type ExportToRegistryRequest
- type GatewayClient
- type Instance
- type LocalContents
- type Overrides
- func (*Overrides) Descriptor() ([]byte, []int)deprecated
- func (x *Overrides) GetBuildkitAddr() string
- func (x *Overrides) GetContainerName() string
- func (*Overrides) ProtoMessage()
- func (x *Overrides) ProtoReflect() protoreflect.Message
- func (x *Overrides) Reset()
- func (x *Overrides) String() string
Constants ¶
View Source
const DefaultContainerName = "fn-buildkitd"
View Source
const SSHAgentProviderID = "default"
Variables ¶
View Source
var ( BuildkitSecrets string ForwardKeychain = false )
View Source
var ( ImportCacheVar = &cacheVar{} ExportCacheVar = &cacheVar{} )
View Source
var File_internal_build_buildkit_devhost_proto protoreflect.FileDescriptor
View Source
var OverridesConfigType = cfg.DefineConfigType[*Overrides]()
View Source
var PreDigestLocalInputs = environment.IsRunningInCI()
XXX make this a flag instead. The assumption here is that in CI the filesystem is readonly.
View Source
var SkipExpectedMaxWorkspaceSizeCheck = false
View Source
var TaskOutputBuildkitJsonLog = tasks.Output("buildkit.json", "application/json+fn.buildkit")
View Source
var UsePlaintextLogging = false
Functions ¶
func BuildDefinitionToImage ¶
func BuildDefinitionToImage(env cfg.Context, conf build.BuildTarget, def *llb.Definition) compute.Computable[oci.Image]
func BuildFilesystem ¶
func BuildFilesystem(ctx context.Context, conf cfg.Configuration, target build.BuildTarget, state llb.State, localDirs ...LocalContents) (compute.Computable[fs.FS], error)
func BuildImage ¶
func BuildImage(ctx context.Context, env cfg.Context, conf build.BuildTarget, state llb.State, localDirs ...LocalContents) (compute.Computable[oci.Image], error)
func DockerfileBuild ¶
A Dockerfile build is always relative to the module it lives in. Within that module, what's the relative path to the context, and within that context, what's the relative path to the Dockerfile.
func HostPlatform ¶
func MakeLocalExcludes ¶
func MakeLocalExcludes(src LocalContents) []string
func MakeLocalState ¶
func MakeLocalState(src LocalContents) llb.State
func RemoveBuildkitd ¶
Types ¶
type BuildkitAwareRegistry ¶
type BuildkitAwareRegistry interface {
CheckExportRequest(*GatewayClient, oci.AllocatedRepository) (*ExportToRegistryRequest, *ExportToRegistryRequest)
}
type ExportToRegistryRequest ¶
type GatewayClient ¶
func (*GatewayClient) UsesDocker ¶
func (cli *GatewayClient) UsesDocker() bool
type Instance ¶
type Instance struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` // contains filtered or unexported fields }
Used by the runtime.
func EnsureBuildkitd ¶
func (*Instance) Descriptor
deprecated
func (*Instance) ProtoMessage ¶
func (*Instance) ProtoMessage()
func (*Instance) ProtoReflect ¶
func (x *Instance) ProtoReflect() protoreflect.Message
type LocalContents ¶
type LocalContents struct { Module build.Workspace Path string ObserveChanges bool // For Web we apply special handling temporarily: not including the root tsconfig.json as it belongs to Node.js TemporaryIsWeb bool // If set, only files matching these patterns will be included in the state. IncludePatterns []string // Added to the base exclude patterns. Override include patterns: if a file matches both, it is not included. ExcludePatterns []string }
func Unwrap ¶
func Unwrap(c compute.Computable[oci.Image]) (llb.State, []LocalContents, bool)
func (LocalContents) Abs ¶
func (l LocalContents) Abs() string
type Overrides ¶
type Overrides struct { ContainerName string `protobuf:"bytes,1,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"` BuildkitAddr string `protobuf:"bytes,2,opt,name=buildkit_addr,json=buildkitAddr,proto3" json:"buildkit_addr,omitempty"` // contains filtered or unexported fields }
Used for configuration purposes.
func (*Overrides) Descriptor
deprecated
func (*Overrides) GetBuildkitAddr ¶
func (*Overrides) GetContainerName ¶
func (*Overrides) ProtoMessage ¶
func (*Overrides) ProtoMessage()
func (*Overrides) ProtoReflect ¶
func (x *Overrides) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.