pub struct CreateSandboxOptions {
pub image: Option<String>,
pub vcpus: Option<u32>,
pub memory_mb: Option<u64>,
pub profile: Option<SecurityProfile>,
pub source_url: Option<String>,
pub source_ref: Option<String>,
pub volumes: Vec<String>,
pub secrets: Vec<String>,
pub secret_files: Vec<String>,
}Expand description
Options for creating a sandbox with a git source.
Fields§
§image: Option<String>Docker image to use.
vcpus: Option<u32>§memory_mb: Option<u64>§profile: Option<SecurityProfile>§source_url: Option<String>Git repository URL to clone into the sandbox.
source_ref: Option<String>Git ref to checkout after cloning.
volumes: Vec<String>Volume mounts (slug:/path or slug:/path:ro). Create volumes via CLI first.
secrets: Vec<String>Secret bindings for proxy-based injection (Gondolin pattern).
Secrets are injected as HTTP headers by the host proxy — they never enter the VM.
Formats: "KEY=value:host", "KEY:host", "KEY:host:header".
secret_files: Vec<String>Secret keys to inject as files at /run/agentkernel/secrets/KEY.
Values are resolved from the secret vault.
Trait Implementations§
Source§impl Debug for CreateSandboxOptions
impl Debug for CreateSandboxOptions
Source§impl Default for CreateSandboxOptions
impl Default for CreateSandboxOptions
Source§fn default() -> CreateSandboxOptions
fn default() -> CreateSandboxOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateSandboxOptions
impl RefUnwindSafe for CreateSandboxOptions
impl Send for CreateSandboxOptions
impl Sync for CreateSandboxOptions
impl Unpin for CreateSandboxOptions
impl UnwindSafe for CreateSandboxOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more