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
Environment
Sandbox-wide environment.
public IReadOnlyDictionary<string, string>? Environment { get; init; }
Property Value
Image
public string? Image { get; init; }
Property Value
LogLevel
Log level for the sandbox supervisor.
public string? LogLevel { get; init; }
Property Value
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
Providers
Attached provider names.
public IReadOnlyList<string>? Providers { get; init; }
Property Value
RawSpec
Adjusts the assembled wire spec for fields the curated shape does not surface.
public Action<SandboxSpec>? RawSpec { get; init; }
Property Value
RestartPolicy
Restart behaviour.
public SandboxRestartPolicy RestartPolicy { get; init; }
Property Value
ServiceExposures
Services to expose at creation.
public IReadOnlyList<ServiceExposure>? ServiceExposures { get; init; }
Property Value
Template
Full workload template.
public SandboxTemplateSpec? Template { get; init; }
Property Value
Tty
Allocate a TTY for the main process.
public bool Tty { get; init; }