pub struct RegistryConfig {Show 13 fields
pub scheme: String,
pub host: String,
pub repo: String,
pub auth: Option<String>,
pub skip_verify: bool,
pub timeout: u32,
pub connect_timeout: u32,
pub retry_limit: u8,
pub registry_token: Option<String>,
pub blob_url_scheme: String,
pub blob_redirected_host: String,
pub proxy: ProxyConfig,
pub mirrors: Vec<MirrorConfig>,
}Expand description
Container registry configuration information to access blobs.
Fields§
§scheme: StringRegistry http scheme, either ‘http’ or ‘https’
host: StringRegistry url host
repo: StringRegistry image name, like ‘library/ubuntu’
auth: Option<String>Base64_encoded(username:password), the field should be sent to registry auth server to get a bearer token.
skip_verify: boolSkip SSL certificate validation for HTTPS scheme.
timeout: u32Drop the read request once http request timeout, in seconds.
connect_timeout: u32Drop the read request once http connection timeout, in seconds.
retry_limit: u8Retry count when read request failed.
registry_token: Option<String>The field is a bearer token to be sent to registry to authorize registry requests.
blob_url_scheme: StringThe http scheme to access blobs. It is used to workaround some P2P subsystem that requires a different scheme than the registry.
blob_redirected_host: StringRedirect blob access to a different host regardless of the one specified in ‘host’.
proxy: ProxyConfigEnable HTTP proxy for the read request.
mirrors: Vec<MirrorConfig>Enable mirrors for the read request.
Trait Implementations§
Source§impl Clone for RegistryConfig
impl Clone for RegistryConfig
Source§fn clone(&self) -> RegistryConfig
fn clone(&self) -> RegistryConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more