pub struct HostConfig {
pub ca: Option<Vec<CertificateConfig>>,
pub capabilities: Option<Vec<String>>,
pub client: Option<Vec<CertificateConfigPair>>,
pub dial_timeout: Option<Duration>,
pub header: Option<Vec<RegistryHeader>>,
pub host: Option<String>,
pub override_path: Option<bool>,
}Expand description
HostConfig configures the registry host under a given Server.
This type is not used in any activity, and only used as part of another schema.
Fields§
§ca: Option<Vec<CertificateConfig>>CA configures the registry host certificate.
capabilities: Option<Vec<String>>Capabilities represent the capabilities of the registry host, specifying what operations a host is capable of performing. If not set, containerd enables all capabilities by default.
client: Option<Vec<CertificateConfigPair>>Client configures the registry host client certificate and key.
dial_timeout: Option<Duration>Specifies the maximum duration allowed for a connection attempt to complete. A shorter timeout helps reduce delays when falling back to the original registry if the mirror is unreachable. Maximum allowed value is 180s. If not set, containerd sets default 30s. The value should be a decimal number of seconds with an s suffix.
header: Option<Vec<RegistryHeader>>Header configures the registry host headers.
host: Option<String>Host configures the registry host/mirror. It supports fully qualified domain names (FQDN) and IP addresses: Specifying port is supported. Wildcards are NOT supported. Examples: - my.customdomain.com - 10.0.1.2:5000
override_path: Option<bool>OverridePath is used to indicate the host’s API root endpoint is defined in the URL path rather than by the API specification. This may be used with non-compliant OCI registries which are missing the /v2 prefix. If not set, containerd sets default false.
Trait Implementations§
Source§impl Clone for HostConfig
impl Clone for HostConfig
Source§fn clone(&self) -> HostConfig
fn clone(&self) -> HostConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more