Documentation ¶
Index ¶
- Constants
- Variables
- func EnsureImage(ctx context.Context, env pkggraph.SealedContext, registry registry.Manager, ...) (oci.ImageID, error)
- func PrebuiltImageID(ctx context.Context, loc pkggraph.Location, cfg cfg.Configuration) (*oci.ImageID, error)
- type BuildImageOpts
- type MergeSpecs
- type Prebuilts
- type Prepared
- type PreparedImage
Constants ¶
View Source
const LLBGenBinaryName = "llbgen"
Variables ¶
View Source
var BuildAlpine func(pkggraph.Location, *schema.ImageBuildPlan_AlpineBuild) build.Spec
View Source
var BuildGo func(loc pkggraph.Location, _ *schema.ImageBuildPlan_GoBuild, unsafeCacheable bool) (build.Spec, error)
View Source
var BuildLLBGen func(schema.PackageName, *pkggraph.Module, build.Spec) build.Spec
View Source
var BuildNix func(schema.PackageName, *pkggraph.Module, fs.FS) build.Spec
View Source
var BuildNodejs func(cfg.Context, pkggraph.Location, *schema.NodejsBuild, assets.AvailableBuildAssets, bool) (build.Spec, error)
View Source
var BuildStaticFilesServer func(*schema.ImageBuildPlan_StaticFilesServer) build.Spec
View Source
var BuildWeb func(pkggraph.Location) build.Spec
View Source
var File_internal_build_binary_prebuilt_proto protoreflect.FileDescriptor
View Source
var (
UsePrebuilts = true // XXX make these a scoped configuration instead.
)
Functions ¶
func EnsureImage ¶
Types ¶
type BuildImageOpts ¶
type MergeSpecs ¶ added in v0.0.82
type MergeSpecs struct { Specs []build.Spec Descriptions []string // Same indexing as specs. // contains filtered or unexported fields }
func (MergeSpecs) BuildImage ¶ added in v0.0.82
func (m MergeSpecs) BuildImage(ctx context.Context, env pkggraph.SealedContext, conf build.Configuration) (compute.Computable[oci.Image], error)
func (MergeSpecs) PlatformIndependent ¶ added in v0.0.82
func (m MergeSpecs) PlatformIndependent() bool
type Prebuilts ¶
type Prebuilts struct { PrebuiltBinary []*schema.Workspace_BinaryDigest `protobuf:"bytes,1,rep,name=prebuilt_binary,json=prebuiltBinary,proto3" json:"prebuilt_binary,omitempty"` // contains filtered or unexported fields }
func (*Prebuilts) Descriptor
deprecated
func (*Prebuilts) GetPrebuiltBinary ¶
func (x *Prebuilts) GetPrebuiltBinary() []*schema.Workspace_BinaryDigest
func (*Prebuilts) ProtoMessage ¶
func (*Prebuilts) ProtoMessage()
func (*Prebuilts) ProtoReflect ¶
func (x *Prebuilts) ProtoReflect() protoreflect.Message
type Prepared ¶
type Prepared struct { Name string Plan build.Plan Command []string Args []string Env []*schema.BinaryConfig_EnvEntry WorkingDir string }
func Plan ¶
func Plan(ctx context.Context, pkg *pkggraph.Package, binName string, env pkggraph.SealedContext, assets assets.AvailableBuildAssets, opts BuildImageOpts) (*Prepared, error)
Returns a Prepared.
func PlanBinary ¶
func PlanBinary(ctx context.Context, pl pkggraph.PackageLoader, env cfg.Context, loc pkggraph.Location, binary *schema.Binary, assets assets.AvailableBuildAssets, opts BuildImageOpts) (*Prepared, error)
func (Prepared) Image ¶
func (p Prepared) Image(ctx context.Context, env pkggraph.SealedContext) (compute.Computable[oci.ResolvableImage], error)
type PreparedImage ¶
Click to show internal directories.
Click to hide internal directories.