binary

package
v0.0.124 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const LLBGenBinaryName = "llbgen"

Variables

View Source
var BuildGo func(loc pkggraph.Location, _ *schema.ImageBuildPlan_GoBuild, unsafeCacheable bool) (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 EnsureImage(ctx context.Context, env pkggraph.SealedContext, registry registry.Manager, prepared *Prepared) (oci.ImageID, error)

func PrebuiltImageID

func PrebuiltImageID(ctx context.Context, loc pkggraph.Location, cfg cfg.Configuration) (*oci.ImageID, 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 {
	Name       string
	Plan       build.Plan
	Command    []string
	Args       []string
	Env        []*schema.BinaryConfig_EnvEntry
	WorkingDir string
	Labels     []*schema.Label
}

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