Struct etcd_client::AuthClient [−][src]
#[repr(transparent)]pub struct AuthClient { /* fields omitted */ }
Expand description
Client for Auth operations.
Implementations
Enables authentication.
Disables authentication.
Processes an authenticate request.
Adds role
pub async fn role_delete(
&mut self,
name: impl Into<String>
) -> Result<RoleDeleteResponse, Error>
pub async fn role_delete(
&mut self,
name: impl Into<String>
) -> Result<RoleDeleteResponse, Error>
Deletes role
Gets role
Lists role
pub async fn role_grant_permission(
&mut self,
name: impl Into<String>,
perm: Permission
) -> Result<RoleGrantPermissionResponse, Error>
pub async fn role_grant_permission(
&mut self,
name: impl Into<String>,
perm: Permission
) -> Result<RoleGrantPermissionResponse, Error>
Grants role permission
pub async fn role_revoke_permission(
&mut self,
name: impl Into<String>,
key: impl Into<Vec<u8>>,
options: Option<RoleRevokePermissionOptions>
) -> Result<RoleRevokePermissionResponse, Error>
pub async fn role_revoke_permission(
&mut self,
name: impl Into<String>,
key: impl Into<Vec<u8>>,
options: Option<RoleRevokePermissionOptions>
) -> Result<RoleRevokePermissionResponse, Error>
Revokes role permission
Adds user
Gets user
Lists user
pub async fn user_delete(
&mut self,
name: impl Into<String>
) -> Result<UserDeleteResponse, Error>
pub async fn user_delete(
&mut self,
name: impl Into<String>
) -> Result<UserDeleteResponse, Error>
Deletes user
pub async fn user_change_password(
&mut self,
name: impl Into<String>,
password: impl Into<String>
) -> Result<UserChangePasswordResponse, Error>
pub async fn user_change_password(
&mut self,
name: impl Into<String>,
password: impl Into<String>
) -> Result<UserChangePasswordResponse, Error>
Change user’s password
pub async fn user_grant_role(
&mut self,
name: impl Into<String>,
role: impl Into<String>
) -> Result<UserGrantRoleResponse, Error>
pub async fn user_grant_role(
&mut self,
name: impl Into<String>,
role: impl Into<String>
) -> Result<UserGrantRoleResponse, Error>
Grant role for an user
pub async fn user_revoke_role(
&mut self,
name: impl Into<String>,
role: impl Into<String>
) -> Result<UserRevokeRoleResponse, Error>
pub async fn user_revoke_role(
&mut self,
name: impl Into<String>,
role: impl Into<String>
) -> Result<UserRevokeRoleResponse, Error>
Revoke role for an user
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AuthClient
impl Send for AuthClient
impl Sync for AuthClient
impl Unpin for AuthClient
impl !UnwindSafe for AuthClient
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more