container

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 23 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MountWithSession

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

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)

Jump to

Keyboard shortcuts

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