binary

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 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 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

func EnsureImage(ctx context.Context, env pkggraph.SealedContext, 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
	// Whether the server build is triggered explicitly, e.g. as a parameter of `ns dev` and not as a dependant server.
	// Builders may use this flag to listen to the FS changes and do hot restart, for example.
	IsFocus   bool
	Platforms []specs.Platform
}

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
	WorkingDir string
}

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