gateway

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 52 Imported by: 152

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContainer added in v0.8.0

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 added in v0.8.0

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

type Mount added in v0.8.0

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 added in v0.8.0

type MountMutableRef struct {
	Ref        cache.MutableRef
	MountIndex int
	NoCommit   bool
}

type MountRef added in v0.8.0

type MountRef struct {
	Ref        cache.Ref
	MountIndex int
}

type NewContainerRequest added in v0.8.0

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

type PreparedMounts added in v0.8.0

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

func PrepareMounts added in v0.8.0

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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