package container
import "github.com/moby/buildkit/frontend/gateway/container"
Index ¶
- func MountWithSession(m cache.Mountable, g session.Group) executor.Mount
- func NewContainer(ctx context.Context, cm cache.Manager, exec executor.Executor, sm *session.Manager, g session.Group, req NewContainerRequest) (client.Container, error)
- func ParseExtraHosts(ips []*pb.HostIP) ([]executor.HostIP, error)
- type MakeMutable
- type Mount
- type MountMutableRef
- type MountRef
- type NewContainerRequest
- type PreparedMounts
Functions ¶
func MountWithSession ¶
func NewContainer ¶
func NewContainer(ctx context.Context, cm cache.Manager, exec executor.Executor, sm *session.Manager, g session.Group, req NewContainerRequest) (client.Container, error)
func ParseExtraHosts ¶
Types ¶
type MakeMutable ¶
type MakeMutable func(m *opspb.Mount, ref cache.ImmutableRef) (cache.MutableRef, error)
type Mount ¶
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 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 ¶
- Version
- v0.16.0-rc2
- Published
- Sep 9, 2024
- Platform
- js/wasm
- Imports
- 23 packages
- Last checked
- 6 seconds ago –
Tools for package owners.