binary

package
v0.0.365 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const LLBGenBinaryName = "llbgen"

Variables

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 EnsureImage(ctx context.Context, env pkggraph.SealedContext, registry registry.Manager, prepared *Prepared) (oci.ImageID, error)

func MakeDisk added in v0.0.351

func MakeDisk(inner compute.Computable[oci.Image], target string, size int64, raw bool) compute.Computable[oci.Image]

func MakeExt4Image added in v0.0.141

func MakeExt4Image(ctx context.Context, image oci.Image, tmpdir, target string, size int64) error

func PrebuiltImageID

func PrebuiltImageID(ctx context.Context, loc pkggraph.Location, cfg cfg.Configuration) (*oci.ImageID, error)

func ToLocalSquashFS added in v0.0.140

func ToLocalSquashFS(ctx context.Context, image oci.Image, target string) error

Types

type BuildImageOpts

type BuildImageOpts struct {
	UsePrebuilts bool
	Platforms    []specs.Platform
}

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 (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) Descriptor() ([]byte, []int)

Deprecated: Use Prebuilts.ProtoReflect.Descriptor instead.

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

func (*Prebuilts) Reset

func (x *Prebuilts) Reset()

func (*Prebuilts) String

func (x *Prebuilts) String() string

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 Plan

Returns a Prepared.

type PreparedImage

type PreparedImage struct {
	Name    string
	Image   compute.Computable[oci.Image]
	Command []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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