Skip to content
Français

ProviderDefinition

  • nameRequired
    string
    Identifier recorded in diagnostics and resource activity; a blank name fails with code configuration.
  • variablesOptional
    Readonly<Record<string, string>> | undefined
    Environment variables set for every command in the sandbox, as literal values; the factory copies and freezes them.
  • acquireRequired
    (context: SandboxContext) => Promise<SandboxLease>
    Allocates one environment and returns its lease; the factory adds the placement.
export interface ProviderDefinition {
  readonly name: string;
  readonly variables?: Variables;
  acquire(context: SandboxContext): Promise<SandboxLease>;
}