pub struct AuthenticatedApiClient { /* private fields */ }Implementations§
Source§impl AuthenticatedApiClient
impl AuthenticatedApiClient
pub fn load(api_base_override: Option<&str>) -> Result<Self>
pub fn from_access_token( api_base: impl Into<String>, access_token: String, ) -> Result<Self>
pub fn claims(&mut self) -> Result<AccessClaims>
pub fn issue_agent_token(&mut self, host_id: &HostId) -> Result<String>
pub fn issue_agent_token_response( &mut self, host_id: &HostId, ) -> Result<AgentTokenIssueResponse>
pub fn revoke_agent_token(&mut self, refresh_token: &str) -> Result<()>
pub fn require_user_admin(&mut self, context: &str) -> Result<()>
pub fn namespace_context(&mut self) -> Result<NamespaceContext>
pub fn api_base(&self) -> &str
pub fn get_hosts(&mut self) -> Result<AegisHostListResponse>
pub fn create_enrollment( &mut self, request: &AegisEnrollmentCreateRequest, ) -> Result<AegisEnrollment>
pub fn get_enrollments(&mut self) -> Result<AegisEnrollmentListResponse>
pub fn get_enrollment(&mut self, host_id: &HostId) -> Result<AegisEnrollment>
pub fn issue_enrollment_credential( &mut self, host_id: &HostId, ) -> Result<AegisEnrollmentCredentialResponse>
pub fn delete_enrollment(&mut self, host_id: &HostId) -> Result<()>
pub fn get_alias(&mut self, alias: &HostAlias) -> Result<AegisAliasResponse>
pub fn resolve_host_id(&mut self, host: &str) -> Result<HostId>
pub fn add_host_alias( &mut self, host_id: &HostId, alias: &HostAlias, ) -> Result<AegisHost>
pub fn promote_host_alias( &mut self, host_id: &HostId, alias: &HostAlias, ) -> Result<AegisHost>
pub fn remove_host_alias( &mut self, host_id: &HostId, alias: &HostAlias, ) -> Result<AegisHost>
pub fn get_networks(&mut self) -> Result<AegisNetworkListResponse>
pub fn get_network_members( &mut self, network: &str, ) -> Result<AegisNetworkMemberListResponse>
pub fn sync_dns( &mut self, request: &AegisDnsSyncRequest, ) -> Result<AegisDnsSyncResponse>
pub fn sync_tls( &mut self, request: &AegisTlsSyncRequest, ) -> Result<AegisTlsSyncResponse>
pub fn request_network_member_client_cert( &mut self, network: &str, host_id: &HostId, ed25519_public_key: &str, ) -> Result<SshIssueCertResponse>
pub fn put_satellite( &mut self, slug: &str, request: &AegisSatelliteCreateRequest, ) -> Result<AegisSatelliteProvisionResponse>
pub fn get_satellites(&mut self) -> Result<AegisSatelliteListResponse>
pub fn get_satellite( &mut self, slug: &str, ) -> Result<AegisSatelliteDetailsResponse>
pub fn delete_satellite(&mut self, slug: &str) -> Result<()>
pub fn request_network_member_server_cert( &mut self, network: &str, host_id: &HostId, ) -> Result<SshIssueCertResponse>
pub fn delete_host(&mut self, host_id: &HostId) -> Result<()>
pub fn get_server_ca_public_key(&self) -> Result<SshCaPublicKeyResponse>
pub fn get_client_ca_public_key(&self) -> Result<SshCaPublicKeyResponse>
Auto Trait Implementations§
impl !RefUnwindSafe for AuthenticatedApiClient
impl !UnwindSafe for AuthenticatedApiClient
impl Freeze for AuthenticatedApiClient
impl Send for AuthenticatedApiClient
impl Sync for AuthenticatedApiClient
impl Unpin for AuthenticatedApiClient
impl UnsafeUnpin for AuthenticatedApiClient
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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