pub struct SignedClient {
pub base: String,
pub http: Client,
pub endpoint_id: String,
pub signing_key: SigningKey,
}Fields§
§base: String§http: Client§endpoint_id: String§signing_key: SigningKeyImplementations§
Source§impl SignedClient
impl SignedClient
pub fn new( base: String, endpoint_id: String, signing_key: SigningKey, ) -> Result<Self>
pub async fn get_device_labels(&self) -> Result<HashMap<String, String>>
pub async fn patch_device_labels( &self, patch: &HashMap<String, Option<String>>, ) -> Result<HashMap<String, String>>
pub async fn patch_device_expiry(&self, expires_in: Option<&str>) -> Result<()>
pub async fn register( &self, hostname: &str, agent_version: &str, metadata: Option<Value>, ) -> Result<EndpointSnapshot>
pub async fn poll(&self, known_version: u64) -> Result<EndpointSnapshot>
pub async fn create_tunnel( &self, local_port: u16, protocol: &str, subdomain: Option<&str>, relay: Option<&str>, ) -> Result<CreateTunnelResponse>
pub async fn tunnel_ready(&self, tunnel_id: &str) -> Result<()>
pub async fn tunnel_stopped(&self, tunnel_id: &str) -> Result<()>
pub async fn tunnel_failed(&self, tunnel_id: &str, error: &str) -> Result<()>
pub async fn create_subnet_route( &self, cidr: &str, description: Option<&str>, ) -> Result<String>
pub async fn upload_ssh_recording( &self, session_id: &str, cast_text: &str, content_sha256: &str, ) -> Result<()>
pub async fn list_ssh_sessions( &self, limit: u32, status: Option<&str>, ) -> Result<Value>
pub async fn list_ssh_recordings(&self, limit: u32) -> Result<Value>
pub async fn get_ssh_recording_cast(&self, session_id: &str) -> Result<Value>
pub async fn evaluate_ssh_auth( &self, peer_endpoint_id: &str, check_period_secs: u64, ) -> Result<Value>
pub async fn poll_ssh_auth(&self, challenge_token: &str) -> Result<Value>
pub async fn verify_ssh_auth( &self, peer_endpoint_id: &str, check_period_secs: u64, auth_token: Option<&str>, ) -> Result<Value>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SignedClient
impl !UnwindSafe for SignedClient
impl Freeze for SignedClient
impl Send for SignedClient
impl Sync for SignedClient
impl Unpin for SignedClient
impl UnsafeUnpin for SignedClient
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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