Skip to main content

AuthClient

Struct AuthClient 

Source
pub struct AuthClient<'a> { /* private fields */ }
Expand description

Typed API wrapper for the trellis.auth@v1 contract.

Implementations§

Source§

impl<'a> AuthClient<'a>

Source

pub fn new(inner: &'a TrellisClient) -> Self

Wrap an already connected low-level Trellis client.

Source

pub async fn auth_activate_workload( &self, input: &AuthActivateWorkloadRequest, ) -> Result<AuthActivateWorkloadResponse, TrellisClientError>

Call Auth.ActivateWorkload.

Source

pub async fn auth_clear_login_portal_selection( &self, input: &AuthClearLoginPortalSelectionRequest, ) -> Result<AuthClearLoginPortalSelectionResponse, TrellisClientError>

Call Auth.ClearLoginPortalSelection.

Source

pub async fn auth_clear_workload_portal_selection( &self, input: &AuthClearWorkloadPortalSelectionRequest, ) -> Result<AuthClearWorkloadPortalSelectionResponse, TrellisClientError>

Call Auth.ClearWorkloadPortalSelection.

Source

pub async fn auth_create_portal( &self, input: &AuthCreatePortalRequest, ) -> Result<AuthCreatePortalResponse, TrellisClientError>

Call Auth.CreatePortal.

Source

pub async fn auth_create_workload_profile( &self, input: &AuthCreateWorkloadProfileRequest, ) -> Result<AuthCreateWorkloadProfileResponse, TrellisClientError>

Call Auth.CreateWorkloadProfile.

Source

pub async fn auth_decide_workload_activation_review( &self, input: &AuthDecideWorkloadActivationReviewRequest, ) -> Result<AuthDecideWorkloadActivationReviewResponse, TrellisClientError>

Call Auth.DecideWorkloadActivationReview.

Source

pub async fn auth_disable_portal( &self, input: &AuthDisablePortalRequest, ) -> Result<AuthDisablePortalResponse, TrellisClientError>

Call Auth.DisablePortal.

Source

pub async fn auth_disable_workload_instance( &self, input: &AuthDisableWorkloadInstanceRequest, ) -> Result<AuthDisableWorkloadInstanceResponse, TrellisClientError>

Call Auth.DisableWorkloadInstance.

Source

pub async fn auth_disable_workload_profile( &self, input: &AuthDisableWorkloadProfileRequest, ) -> Result<AuthDisableWorkloadProfileResponse, TrellisClientError>

Call Auth.DisableWorkloadProfile.

Source

pub async fn auth_get_installed_contract( &self, input: &AuthGetInstalledContractRequest, ) -> Result<AuthGetInstalledContractResponse, TrellisClientError>

Call Auth.GetInstalledContract.

Source

pub async fn auth_get_login_portal_default( &self, ) -> Result<AuthGetLoginPortalDefaultResponse, TrellisClientError>

Call Auth.GetLoginPortalDefault.

Source

pub async fn auth_get_workload_activation_status( &self, input: &AuthGetWorkloadActivationStatusRequest, ) -> Result<AuthGetWorkloadActivationStatusResponse, TrellisClientError>

Call Auth.GetWorkloadActivationStatus.

Source

pub async fn auth_get_workload_connect_info( &self, input: &AuthGetWorkloadConnectInfoRequest, ) -> Result<AuthGetWorkloadConnectInfoResponse, TrellisClientError>

Call Auth.GetWorkloadConnectInfo.

Source

pub async fn auth_get_workload_portal_default( &self, ) -> Result<AuthGetWorkloadPortalDefaultResponse, TrellisClientError>

Call Auth.GetWorkloadPortalDefault.

Source

pub async fn auth_health( &self, ) -> Result<AuthHealthResponse, TrellisClientError>

Call Auth.Health.

Source

pub async fn auth_install_service( &self, input: &AuthInstallServiceRequest, ) -> Result<AuthInstallServiceResponse, TrellisClientError>

Call Auth.InstallService.

Source

pub async fn auth_kick_connection( &self, input: &AuthKickConnectionRequest, ) -> Result<AuthKickConnectionResponse, TrellisClientError>

Call Auth.KickConnection.

Source

pub async fn auth_list_approvals( &self, input: &AuthListApprovalsRequest, ) -> Result<AuthListApprovalsResponse, TrellisClientError>

Call Auth.ListApprovals.

Source

pub async fn auth_list_connections( &self, input: &AuthListConnectionsRequest, ) -> Result<AuthListConnectionsResponse, TrellisClientError>

Call Auth.ListConnections.

Source

pub async fn auth_list_installed_contracts( &self, input: &AuthListInstalledContractsRequest, ) -> Result<AuthListInstalledContractsResponse, TrellisClientError>

Call Auth.ListInstalledContracts.

Source

pub async fn auth_list_login_portal_selections( &self, ) -> Result<AuthListLoginPortalSelectionsResponse, TrellisClientError>

Call Auth.ListLoginPortalSelections.

Source

pub async fn auth_list_portals( &self, ) -> Result<AuthListPortalsResponse, TrellisClientError>

Call Auth.ListPortals.

Source

pub async fn auth_list_services( &self, ) -> Result<AuthListServicesResponse, TrellisClientError>

Call Auth.ListServices.

Source

pub async fn auth_list_sessions( &self, input: &AuthListSessionsRequest, ) -> Result<AuthListSessionsResponse, TrellisClientError>

Call Auth.ListSessions.

Source

pub async fn auth_list_users( &self, ) -> Result<AuthListUsersResponse, TrellisClientError>

Call Auth.ListUsers.

Source

pub async fn auth_list_workload_activation_reviews( &self, input: &AuthListWorkloadActivationReviewsRequest, ) -> Result<AuthListWorkloadActivationReviewsResponse, TrellisClientError>

Call Auth.ListWorkloadActivationReviews.

Source

pub async fn auth_list_workload_activations( &self, input: &AuthListWorkloadActivationsRequest, ) -> Result<AuthListWorkloadActivationsResponse, TrellisClientError>

Call Auth.ListWorkloadActivations.

Source

pub async fn auth_list_workload_instances( &self, input: &AuthListWorkloadInstancesRequest, ) -> Result<AuthListWorkloadInstancesResponse, TrellisClientError>

Call Auth.ListWorkloadInstances.

Source

pub async fn auth_list_workload_portal_selections( &self, ) -> Result<AuthListWorkloadPortalSelectionsResponse, TrellisClientError>

Call Auth.ListWorkloadPortalSelections.

Source

pub async fn auth_list_workload_profiles( &self, input: &AuthListWorkloadProfilesRequest, ) -> Result<AuthListWorkloadProfilesResponse, TrellisClientError>

Call Auth.ListWorkloadProfiles.

Source

pub async fn auth_logout( &self, ) -> Result<AuthLogoutResponse, TrellisClientError>

Call Auth.Logout.

Source

pub async fn auth_me(&self) -> Result<AuthMeResponse, TrellisClientError>

Call Auth.Me.

Source

pub async fn auth_provision_workload_instance( &self, input: &AuthProvisionWorkloadInstanceRequest, ) -> Result<AuthProvisionWorkloadInstanceResponse, TrellisClientError>

Call Auth.ProvisionWorkloadInstance.

Source

pub async fn auth_renew_binding_token( &self, ) -> Result<AuthRenewBindingTokenResponse, TrellisClientError>

Call Auth.RenewBindingToken.

Source

pub async fn auth_revoke_approval( &self, input: &AuthRevokeApprovalRequest, ) -> Result<AuthRevokeApprovalResponse, TrellisClientError>

Call Auth.RevokeApproval.

Source

pub async fn auth_revoke_session( &self, input: &AuthRevokeSessionRequest, ) -> Result<AuthRevokeSessionResponse, TrellisClientError>

Call Auth.RevokeSession.

Source

pub async fn auth_revoke_workload_activation( &self, input: &AuthRevokeWorkloadActivationRequest, ) -> Result<AuthRevokeWorkloadActivationResponse, TrellisClientError>

Call Auth.RevokeWorkloadActivation.

Source

pub async fn auth_set_login_portal_default( &self, input: &AuthSetLoginPortalDefaultRequest, ) -> Result<AuthSetLoginPortalDefaultResponse, TrellisClientError>

Call Auth.SetLoginPortalDefault.

Source

pub async fn auth_set_login_portal_selection( &self, input: &AuthSetLoginPortalSelectionRequest, ) -> Result<AuthSetLoginPortalSelectionResponse, TrellisClientError>

Call Auth.SetLoginPortalSelection.

Source

pub async fn auth_set_workload_portal_default( &self, input: &AuthSetWorkloadPortalDefaultRequest, ) -> Result<AuthSetWorkloadPortalDefaultResponse, TrellisClientError>

Call Auth.SetWorkloadPortalDefault.

Source

pub async fn auth_set_workload_portal_selection( &self, input: &AuthSetWorkloadPortalSelectionRequest, ) -> Result<AuthSetWorkloadPortalSelectionResponse, TrellisClientError>

Call Auth.SetWorkloadPortalSelection.

Source

pub async fn auth_update_user( &self, input: &AuthUpdateUserRequest, ) -> Result<AuthUpdateUserResponse, TrellisClientError>

Call Auth.UpdateUser.

Source

pub async fn auth_upgrade_service_contract( &self, input: &AuthUpgradeServiceContractRequest, ) -> Result<AuthUpgradeServiceContractResponse, TrellisClientError>

Call Auth.UpgradeServiceContract.

Source

pub async fn auth_validate_request( &self, input: &AuthValidateRequestRequest, ) -> Result<AuthValidateRequestResponse, TrellisClientError>

Call Auth.ValidateRequest.

Source

pub async fn publish_auth_connect( &self, event: &AuthConnectEvent, ) -> Result<(), TrellisClientError>

Publish Auth.Connect.

Source

pub async fn publish_auth_connection_kicked( &self, event: &AuthConnectionKickedEvent, ) -> Result<(), TrellisClientError>

Publish Auth.ConnectionKicked.

Source

pub async fn publish_auth_disconnect( &self, event: &AuthDisconnectEvent, ) -> Result<(), TrellisClientError>

Publish Auth.Disconnect.

Source

pub async fn publish_auth_session_revoked( &self, event: &AuthSessionRevokedEvent, ) -> Result<(), TrellisClientError>

Publish Auth.SessionRevoked.

Source

pub async fn publish_auth_workload_activation_review_requested( &self, event: &AuthWorkloadActivationReviewRequestedEvent, ) -> Result<(), TrellisClientError>

Publish Auth.WorkloadActivationReviewRequested.

Auto Trait Implementations§

§

impl<'a> Freeze for AuthClient<'a>

§

impl<'a> !RefUnwindSafe for AuthClient<'a>

§

impl<'a> Send for AuthClient<'a>

§

impl<'a> Sync for AuthClient<'a>

§

impl<'a> Unpin for AuthClient<'a>

§

impl<'a> UnsafeUnpin for AuthClient<'a>

§

impl<'a> !UnwindSafe for AuthClient<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more