pub struct Runtime { /* private fields */ }Expand description
Client for the gestalt.provider.v1.Runtime service.
Implementations§
Source§impl Runtime
impl Runtime
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Sets a deadline applied to every unary call; calls that run past it fail with DEADLINE_EXCEEDED. Streaming calls are unaffected.
Sourcepub async fn get_support(&mut self) -> Result<RuntimeSupport, GestaltError>
pub async fn get_support(&mut self) -> Result<RuntimeSupport, GestaltError>
Calls gestalt.provider.v1.Runtime.GetSupport.
Sourcepub async fn start_session(
&mut self,
app_name: String,
template: String,
image: String,
image_pull_auth: Option<RuntimeImagePullAuth>,
) -> Result<RuntimeSession, GestaltError>
pub async fn start_session( &mut self, app_name: String, template: String, image: String, image_pull_auth: Option<RuntimeImagePullAuth>, ) -> Result<RuntimeSession, GestaltError>
Calls gestalt.provider.v1.Runtime.StartSession.
Sourcepub async fn start_session_raw(
&mut self,
request: StartRuntimeSessionRequest,
) -> Result<RuntimeSession, GestaltError>
pub async fn start_session_raw( &mut self, request: StartRuntimeSessionRequest, ) -> Result<RuntimeSession, GestaltError>
Calls gestalt.provider.v1.Runtime.StartSession with the full request and response messages.
Sourcepub async fn get_session(
&mut self,
session_id: String,
) -> Result<RuntimeSession, GestaltError>
pub async fn get_session( &mut self, session_id: String, ) -> Result<RuntimeSession, GestaltError>
Calls gestalt.provider.v1.Runtime.GetSession.
Sourcepub async fn get_session_raw(
&mut self,
request: GetRuntimeSessionRequest,
) -> Result<RuntimeSession, GestaltError>
pub async fn get_session_raw( &mut self, request: GetRuntimeSessionRequest, ) -> Result<RuntimeSession, GestaltError>
Calls gestalt.provider.v1.Runtime.GetSession with the full request and response messages.
Sourcepub async fn list_sessions(
&mut self,
request: ListRuntimeSessionsRequest,
) -> Result<ListRuntimeSessionsResponse, GestaltError>
pub async fn list_sessions( &mut self, request: ListRuntimeSessionsRequest, ) -> Result<ListRuntimeSessionsResponse, GestaltError>
Calls gestalt.provider.v1.Runtime.ListSessions.
Sourcepub async fn stop_session(
&mut self,
session_id: String,
) -> Result<(), GestaltError>
pub async fn stop_session( &mut self, session_id: String, ) -> Result<(), GestaltError>
Calls gestalt.provider.v1.Runtime.StopSession.
Sourcepub async fn stop_session_raw(
&mut self,
request: StopRuntimeSessionRequest,
) -> Result<(), GestaltError>
pub async fn stop_session_raw( &mut self, request: StopRuntimeSessionRequest, ) -> Result<(), GestaltError>
Calls gestalt.provider.v1.Runtime.StopSession with the full request and response messages.
Sourcepub async fn prepare_workspace(
&mut self,
session_id: String,
agent_session_id: String,
workspace: Option<AgentWorkspace>,
) -> Result<Option<PreparedAgentWorkspace>, GestaltError>
pub async fn prepare_workspace( &mut self, session_id: String, agent_session_id: String, workspace: Option<AgentWorkspace>, ) -> Result<Option<PreparedAgentWorkspace>, GestaltError>
Calls gestalt.provider.v1.Runtime.PrepareWorkspace.
Sourcepub async fn prepare_workspace_raw(
&mut self,
request: PrepareRuntimeWorkspaceRequest,
) -> Result<PrepareRuntimeWorkspaceResponse, GestaltError>
pub async fn prepare_workspace_raw( &mut self, request: PrepareRuntimeWorkspaceRequest, ) -> Result<PrepareRuntimeWorkspaceResponse, GestaltError>
Calls gestalt.provider.v1.Runtime.PrepareWorkspace with the full request and response messages.
Sourcepub async fn remove_workspace(
&mut self,
session_id: String,
agent_session_id: String,
) -> Result<(), GestaltError>
pub async fn remove_workspace( &mut self, session_id: String, agent_session_id: String, ) -> Result<(), GestaltError>
Calls gestalt.provider.v1.Runtime.RemoveWorkspace.
Sourcepub async fn remove_workspace_raw(
&mut self,
request: RemoveRuntimeWorkspaceRequest,
) -> Result<(), GestaltError>
pub async fn remove_workspace_raw( &mut self, request: RemoveRuntimeWorkspaceRequest, ) -> Result<(), GestaltError>
Calls gestalt.provider.v1.Runtime.RemoveWorkspace with the full request and response messages.
Sourcepub async fn start_app(
&mut self,
session_id: String,
app_name: String,
command: String,
args: Vec<String>,
allowed_hosts: Vec<String>,
default_action: String,
host_binary: String,
workdir: String,
) -> Result<HostedApp, GestaltError>
pub async fn start_app( &mut self, session_id: String, app_name: String, command: String, args: Vec<String>, allowed_hosts: Vec<String>, default_action: String, host_binary: String, workdir: String, ) -> Result<HostedApp, GestaltError>
Calls gestalt.provider.v1.Runtime.StartApp.
Sourcepub async fn start_app_raw(
&mut self,
request: StartHostedAppRequest,
) -> Result<HostedApp, GestaltError>
pub async fn start_app_raw( &mut self, request: StartHostedAppRequest, ) -> Result<HostedApp, GestaltError>
Calls gestalt.provider.v1.Runtime.StartApp with the full request and response messages.
Auto Trait Implementations§
impl !Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl !UnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request