Struct nydus_api::config::RegistryConfig
source · 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 moresource§impl Debug for RegistryConfig
impl Debug for RegistryConfig
source§impl Default for RegistryConfig
impl Default for RegistryConfig
source§fn default() -> RegistryConfig
fn default() -> RegistryConfig
source§impl<'de> Deserialize<'de> for RegistryConfig
impl<'de> Deserialize<'de> for RegistryConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl PartialEq<RegistryConfig> for RegistryConfig
impl PartialEq<RegistryConfig> for RegistryConfig
source§fn eq(&self, other: &RegistryConfig) -> bool
fn eq(&self, other: &RegistryConfig) -> bool
self and other values to be equal, and is used
by ==.