pub struct PodManager {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl PodManager
impl PodManager
pub async fn new() -> Result<Self, String>
pub async fn create_ssh_pod( &self, _config: &SidecarConfig, namespace: &str, pod_name: &str, pod_npub: &str, pod_nsec: &str, image: &str, ssh_port: u16, username: &str, password: &str, duration_seconds: u64, memory_mb: u64, cpu_millicores: u64, user_pubkey: &str, ) -> Result<u16, String>
pub async fn extend_pod_deadline( &self, namespace: &str, pod_name: &str, additional_duration_seconds: u64, ) -> Result<(), String>
Auto Trait Implementations§
impl Freeze for PodManager
impl !RefUnwindSafe for PodManager
impl Send for PodManager
impl Sync for PodManager
impl Unpin for PodManager
impl UnsafeUnpin for PodManager
impl !UnwindSafe for PodManager
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more