Skip to main content

GithubAuthOperations

Trait GithubAuthOperations 

Source
pub trait GithubAuthOperations: Send + Sync {
    // Required methods
    fn login(
        &self,
        token: &SecretString,
    ) -> impl Future<Output = Result<AuthInfo, VaultError>> + Send;
    fn configure(
        &self,
        config: &GithubConfigRequest,
    ) -> impl Future<Output = Result<(), VaultError>> + Send;
    fn read_config(
        &self,
    ) -> impl Future<Output = Result<GithubConfig, VaultError>> + Send;
    fn map_team(
        &self,
        team: &str,
        params: &GithubTeamMapping,
    ) -> impl Future<Output = Result<(), VaultError>> + Send;
    fn read_team_mapping(
        &self,
        team: &str,
    ) -> impl Future<Output = Result<GithubTeamInfo, VaultError>> + Send;
    fn list_teams(
        &self,
    ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send;
}

Required Methods§

Source

fn login( &self, token: &SecretString, ) -> impl Future<Output = Result<AuthInfo, VaultError>> + Send

Source

fn configure( &self, config: &GithubConfigRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

fn read_config( &self, ) -> impl Future<Output = Result<GithubConfig, VaultError>> + Send

Source

fn map_team( &self, team: &str, params: &GithubTeamMapping, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

fn read_team_mapping( &self, team: &str, ) -> impl Future<Output = Result<GithubTeamInfo, VaultError>> + Send

Source

fn list_teams( &self, ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§