pub struct RegistryHostConfig {
pub hosts: Option<Vec<HostConfig>>,
pub server: Option<String>,
}Expand description
RegistryHostConfig configures the top-level structure for a single containerd registry server’s configuration, which represents one hosts.toml file on the node. It will override the same fqdns in PrivateRegistryAccessConfig.
This type is not used in any activity, and only used as part of another schema.
Fields§
§hosts: Option<Vec<HostConfig>>HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
server: Option<String>Defines the host name of the registry server, which will be used to create configuration file as /etc/containerd/hosts.d//hosts.toml. 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
Trait Implementations§
Source§impl Clone for RegistryHostConfig
impl Clone for RegistryHostConfig
Source§fn clone(&self) -> RegistryHostConfig
fn clone(&self) -> RegistryHostConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegistryHostConfig
impl Debug for RegistryHostConfig
Source§impl Default for RegistryHostConfig
impl Default for RegistryHostConfig
Source§fn default() -> RegistryHostConfig
fn default() -> RegistryHostConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RegistryHostConfig
impl<'de> Deserialize<'de> for RegistryHostConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RegistryHostConfig
impl Serialize for RegistryHostConfig
impl Part for RegistryHostConfig
Auto Trait Implementations§
impl Freeze for RegistryHostConfig
impl RefUnwindSafe for RegistryHostConfig
impl Send for RegistryHostConfig
impl Sync for RegistryHostConfig
impl Unpin for RegistryHostConfig
impl UnwindSafe for RegistryHostConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more