package gateway

import "github.com/moby/buildkit/frontend/gateway"

Index

Functions

func NewContainer

func NewGatewayFrontend

func NewGatewayFrontend(w worker.Infos) frontend.Frontend

Types

type LLBBridgeForwarder

type LLBBridgeForwarder interface {
	pb.LLBBridgeServer
	Done() <-chan struct{}
	Result() (*frontend.Result, error)
	Discard()
}

func NewBridgeForwarder

func NewBridgeForwarder(ctx context.Context, llbBridge frontend.FrontendLLBBridge, workers worker.Infos, inputs map[string]*opspb.Definition, sid string, sm *session.Manager) LLBBridgeForwarder

type MakeMutable

type MakeMutable func(m *opspb.Mount, ref cache.ImmutableRef) (cache.MutableRef, error)

type Mount

type Mount struct {
	*opspb.Mount
	WorkerRef *worker.WorkerRef
}

Mount used for the gateway.Container is nearly identical to the client.Mount except is has a RefProxy instead of Ref to allow for a common abstraction between gateway clients.

type MountMutableRef

type MountMutableRef struct {
	Ref        cache.MutableRef
	MountIndex int
}

type MountRef

type MountRef struct {
	Ref        cache.Ref
	MountIndex int
}

type NewContainerRequest

type NewContainerRequest struct {
	ContainerID string
	NetMode     opspb.NetMode
	Mounts      []Mount
	Platform    *opspb.Platform
	Constraints *opspb.WorkerConstraints
}

type PreparedMounts

type PreparedMounts struct {
	Root           executor.Mount
	ReadonlyRootFS bool
	Mounts         []executor.Mount
	OutputRefs     []MountRef
	Actives        []MountMutableRef
}

func PrepareMounts

func PrepareMounts(ctx context.Context, mm *mounts.MountManager, cm cache.Manager, g session.Group, mnts []*opspb.Mount, refs []*worker.WorkerRef, makeMutable MakeMutable) (p PreparedMounts, err error)

Source Files

container.go gateway.go

Directories

PathSynopsis
frontend/gateway/client
frontend/gateway/forwarder
frontend/gateway/grpcclient
frontend/gateway/pb
Version
v0.8.0-rc2
Published
Nov 19, 2020
Platform
js/wasm
Imports
52 packages
Last checked
7 minutes ago

Tools for package owners.