Skip to main content

Crate rattler_networking

Crate rattler_networking 

Source
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
reqwest middleware that authenticates requests with data from the AuthenticationStorage
authentication_storage
This module contains the authentication storage backend trait and implementations
challenge_middleware
Middleware that reacts to WWW-Authenticate challenges by acquiring a bearer token from one of its registered AuthFlows 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 RetryPolicy from the retry_policies crate 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§

LazyClient
Initialization of the reqwest client can be expensive, using this struct allows creating the client only when needed.