Class OpenShellClient
- Namespace
- OpenShell
- Assembly
- OpenShell.Sdk.dll
A connected client for one OpenShell gateway. Thread safe; create one and reuse it.
public sealed class OpenShellClient : IOpenShellClient, IDisposable
- Inheritance
-
OpenShellClient
- Implements
- Inherited Members
Constructors
OpenShellClient(OpenShellClientOptions)
Connects lazily; no network I/O happens until the first call.
public OpenShellClient(OpenShellClientOptions options)
Parameters
optionsOpenShellClientOptions
Properties
Config
Sandbox and gateway configuration.
public IConfigClient Config { get; }
Property Value
Exec
Command execution.
public IExecClient Exec { get; }
Property Value
Files
File transfer.
public IFileClient Files { get; }
Property Value
Health
Health and identity.
public IHealthClient Health { get; }
Property Value
Policy
Draft policy review and policy revisions.
public IPolicyClient Policy { get; }
Property Value
Providers
Providers, profiles and credential refresh.
public IProviderClient Providers { get; }
Property Value
Raw
The generated gRPC client, for RPCs the curated surface does not cover yet.
public OpenShell.OpenShellClient Raw { get; }
Property Value
RawSandboxUpdates
The generated gRPC client for the separate openshell.v1.SandboxUpdates service, on the same connection,
authentication, retry, and telemetry pipeline as Raw. The gateway serves it only when sandbox
updates are enabled ([openshell.gateway] enable_sandbox_updates = true).
public SandboxUpdates.SandboxUpdatesClient RawSandboxUpdates { get; }
Property Value
Rootfs
Local rootfs tar staging for drivers that boot from an archive.
public IRootfsClient Rootfs { get; }
Property Value
SandboxProviders
Provider attachment and readiness for sandboxes.
public ISandboxProviderClient SandboxProviders { get; }
Property Value
Sandboxes
Sandbox lifecycle.
public ISandboxClient Sandboxes { get; }
Property Value
Services
Service exposure.
public IServiceClient Services { get; }
Property Value
Ssh
SSH relay sessions and tunnels.
public ISshClient Ssh { get; }
Property Value
Tcp
TCP forwarding to sandbox ports.
public ITcpClient Tcp { get; }
Property Value
Templates
Reusable sandbox workload templates.
public ISandboxTemplateClient Templates { get; }
Property Value
Watch
Watch streams and logs.
public ISandboxWatchClient Watch { get; }
Property Value
Workspace
The workspace this view operates in.
public string Workspace { get; }
Property Value
Workspaces
Workspace and membership management.
public IWorkspaceClient Workspaces { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
InWorkspace(string)
Returns a view of this client bound to another workspace; the connection is shared.
public IOpenShellClient InWorkspace(string workspace)
Parameters
workspacestring