Expand description
Networking utilities for Rattler, specifically authenticating requests
Re-exports§
pub use authentication_middleware::AuthenticationMiddleware;pub use authentication_storage::authentication::Authentication;pub use authentication_storage::storage::AuthenticationStorage;pub use challenge_middleware::AuthChallengeMiddleware;pub use challenge_middleware::AuthFlow;pub use challenge_middleware::AuthFlowError;pub use challenge_middleware::BearerToken;pub use challenge_middleware::Challenge;pub use mirror_middleware::MirrorMiddleware;pub use oci_middleware::OciMiddleware;pub use offline_middleware::OfflineError;pub use offline_middleware::OfflineMiddleware;pub use gcs_middleware::GCSMiddleware;pub use s3_middleware::S3Middleware;
Modules§
- authentication_
middleware reqwestmiddleware that authenticates requests with data from theAuthenticationStorage- authentication_
storage - This module contains the authentication storage backend trait and implementations
- challenge_
middleware - Middleware that reacts to
WWW-Authenticatechallenges by acquiring a bearer token from one of its registeredAuthFlows and replaying the request once. Tokens are cached per origin (scheme, host, port). - gcs_
middleware - Middleware to handle
gcs://URLs to pull artifacts from an GCS - mirror_
middleware - Middleware to handle mirrors
- oci_
middleware - Middleware to handle
oci://URLs to pull artifacts from an OCI registry - offline_
middleware - Middleware that rejects network requests when offline mode is enabled.
- retry_
policies - Reexports the trait
RetryPolicyfrom theretry_policiescrate as well as all implementations. - s3_
middleware - Middleware to handle
s3://URLs to pull artifacts from an S3 bucket - trusted_
publishing - Trusted publishing (via OIDC).
Structs§
- Lazy
Client - Initialization of the reqwest client can be expensive, using this struct allows creating the client only when needed.