Crate rattler_networking
source ·Expand description
Networking utilities for Rattler, specifically authenticating requests
Re-exports
pub use authentication_storage::authentication::Authentication;
pub use authentication_storage::storage::AuthenticationStorage;
Modules
- This module contains the authentication storage backend trait and implementations
- Reexports the trait
RetryPolicy
from theretry_policies
crate as well as all implementations.
Structs
- A client that can be used to make authenticated requests, based on the
reqwest::Client
. By default it uses the fallback storage in the defaultdefault_auth_store_fallback_directory
. - A blocking client that can be used to make authenticated requests, based on the
reqwest::blocking::Client
By default it uses the fallback storage in the defaultdefault_auth_store_fallback_directory
.
Constants
- A default string to use for redaction.
Functions
- Returns the default auth storage directory used by rattler. Would be placed in $HOME/.rattler, except when there is no home then it will be put in ‘/rattler/’
- Redacts known secrets from a
reqwest::Error
. - Anaconda channels are not always publicly available. This function checks if a URL contains a secret by identifying whether it contains certain patterns. If it does, the function returns a modified URL where any secret has been masked.