package container

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

Index

Functions

func MountWithSession

func MountWithSession(m cache.Mountable, g session.Group) executor.Mount

func NewContainer

func ParseExtraHosts

func ParseExtraHosts(ips []*pb.HostIP) ([]executor.HostIP, error)

Types

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
	NoCommit   bool
}

type MountRef

type MountRef struct {
	Ref        cache.Ref
	MountIndex int
}

type NewContainerRequest

type NewContainerRequest struct {
	ContainerID string
	NetMode     opspb.NetMode
	Hostname    string
	ExtraHosts  []executor.HostIP
	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, cwd string, mnts []*opspb.Mount, refs []*worker.WorkerRef, makeMutable MakeMutable, platform string) (p PreparedMounts, err error)

Source Files

container.go util.go

Version
v0.17.3
Published
Dec 4, 2024
Platform
js/wasm
Imports
23 packages
Last checked
12 hours ago

Tools for package owners.