Table of Contents

Class SandboxSpec

Namespace
OpenShell
Assembly
OpenShell.Sdk.dll

Desired state of a sandbox.

public sealed record SandboxSpec : IEquatable<SandboxSpec>
Inheritance
SandboxSpec
Implements
Inherited Members

Properties

Command

Main-process command; empty uses the image default.

public IReadOnlyList<string>? Command { get; init; }

Property Value

IReadOnlyList<string>

Environment

Sandbox-wide environment.

public IReadOnlyDictionary<string, string>? Environment { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Image

Shorthand for Template.Image.

public string? Image { get; init; }

Property Value

string

LogLevel

Log level for the sandbox supervisor.

public string? LogLevel { get; init; }

Property Value

string

Policy

Create-time safety boundary (filesystem, landlock, process and initial network policy). This is the generated wire type (Openshell.Sandbox.V1.SandboxPolicy); build it directly, as the SDK has no policy builder.

public SandboxPolicy? Policy { get; init; }

Property Value

SandboxPolicy

Providers

Attached provider names.

public IReadOnlyList<string>? Providers { get; init; }

Property Value

IReadOnlyList<string>

RawSpec

Adjusts the assembled wire spec for fields the curated shape does not surface.

public Action<SandboxSpec>? RawSpec { get; init; }

Property Value

Action<SandboxSpec>

RestartPolicy

Restart behaviour.

public SandboxRestartPolicy RestartPolicy { get; init; }

Property Value

SandboxRestartPolicy

ServiceExposures

Services to expose at creation.

public IReadOnlyList<ServiceExposure>? ServiceExposures { get; init; }

Property Value

IReadOnlyList<ServiceExposure>

Template

Full workload template.

public SandboxTemplateSpec? Template { get; init; }

Property Value

SandboxTemplateSpec

Tty

Allocate a TTY for the main process.

public bool Tty { get; init; }

Property Value

bool