Documentation ¶
Index ¶
- Constants
- Variables
- func EnsureImage(ctx context.Context, env pkggraph.SealedContext, registry registry.Manager, ...) (oci.ImageID, error)
- func MakeExt4Image(ctx context.Context, image oci.Image, tmpdir, target string, size int64) error
- func PrebuiltImageID(ctx context.Context, loc pkggraph.Location, cfg cfg.Configuration) (*oci.ImageID, error)
- func ToLocalSquashFS(ctx context.Context, image oci.Image, target string) 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(ctx context.Context, pl pkggraph.PackageLoader, 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(context.Context, pkggraph.PackageLoader, schema.PackageName, *pkggraph.Module, fs.FS) (build.Spec, error)
View Source
var BuildNodejs func(cfg.Context, pkggraph.Location, *schema.NodejsBuild, assets.AvailableBuildAssets) (build.Spec, error)
View Source
var BuildStaticFilesServer func(*schema.ImageBuildPlan_StaticFilesServer) 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 ¶
func MakeExt4Image ¶ added in v0.0.141
func PrebuiltImageID ¶
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 { Location pkggraph.Location Name string Plan build.Plan Command []string Args []string Env []*schema.BinaryConfig_EnvEntry WorkingDir string Labels []*schema.Label }
func Load ¶ added in v0.0.165
func Load(ctx context.Context, pl pkggraph.PackageLoader, env cfg.Context, ref *schema.PackageRef, opts BuildImageOpts) (*Prepared, error)
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 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.