pub struct RemoteCacheConfig {
pub base_url: Url,
pub namespace: String,
pub token: Option<String>,
pub token_file: Option<PathBuf>,
pub oidc_audience: Option<String>,
pub connect_timeout: Duration,
pub read_timeout: Duration,
pub download_timeout: Duration,
pub retries: i64,
}Expand description
Connection, authentication, and retry settings for RemoteCacheClient.
Fields§
§base_url: UrlBase URL of the remote cache service.
namespace: StringServer-side namespace used to isolate cache objects.
token: Option<String>Static bearer token, if configured directly.
token_file: Option<PathBuf>File containing a bearer token that may be refreshed externally.
oidc_audience: Option<String>Audience used when obtaining an OIDC token from the CI environment.
connect_timeout: DurationMaximum time allowed to establish a connection.
read_timeout: DurationMaximum time without response progress for ordinary requests.
download_timeout: DurationDeadline for one blob download, spanning every retry attempt and the backoff between them rather than bounding a single attempt.
A single stalled attempt is already bounded by connect_timeout and
read_timeout, so this budget exists to cap the total wall-clock one
logical download may spend: exhausting it fails the download even when
retries remain. Size it for the largest artifact worth waiting on, not
for one attempt at it.
retries: i64Number of attempts after the initial request for retryable failures.