Documentation
¶
Index ¶
- Constants
- type Backend
- func (b *Backend) CheckReady(ctx context.Context) error
- func (b *Backend) Close() error
- func (b *Backend) RunIsolated(ctx context.Context, request executor.ContainerRequest, input []byte) (executor.Result, error)
- func (b *Backend) RunIsolatedOnDevices(ctx context.Context, request executor.ContainerRequest, input []byte, ...) (executor.Result, error)
- type Config
Constants ¶
View Source
const ( DefaultOperationTimeout = 10 * time.Second DefaultCleanupTimeout = 30 * time.Second MaxOperationTimeout = time.Minute MaxCleanupTimeout = 5 * time.Minute MaxInputBytesHard = 16 << 20 MaxOutputBytesHard = 16 << 20 MaxArgumentsHard = 64 MaxEnvironmentHard = 64 MaxStringBytesHard = 4096 MaxMemoryBytesHard = uint64(1 << 40) MaxDiskBytesHard = uint64(16 << 40) MaxPIDsHard = uint32(1 << 20) MaxExecutionTimeHard = time.Hour MaxCPUMillisHard = uint64(24 * time.Hour / time.Millisecond) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend is a bounded lifecycle boundary around one private containerd namespace. It owns no queue and starts no goroutine of its own.
func (*Backend) RunIsolated ¶
func (*Backend) RunIsolatedOnDevices ¶
func (b *Backend) RunIsolatedOnDevices( ctx context.Context, request executor.ContainerRequest, input []byte, aliases []string, ) (executor.Result, error)
RunIsolatedOnDevices is the narrow operator-alias to CDI boundary used by gpuisolation. It accepts only aliases fixed when the backend was opened and never treats a remote request value as a CDI identifier.
type Config ¶
type Config struct {
SocketPath string
Namespace string
Snapshotter string
Runtime string
FIFODir string
MaxActive int
OperationTimeout time.Duration
CleanupTimeout time.Duration
PermitGPU bool
PermitNetwork bool
GPUDevices map[string]string
CDISpecDirs []string
PolicyLimits executor.Limits
ImageReference string
ImageDigest string
ImagePlatform string
}
Click to show internal directories.
Click to hide internal directories.