#[non_exhaustive]pub struct RegistryHostConfig {
pub server: String,
pub hosts: Vec<HostConfig>,
/* private fields */
}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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.server: StringDefines the host name of the registry server, which will be used to create configuration file as /etc/containerd/hosts.d/<server>/hosts.toml. It supports fully qualified domain names (FQDN) and IP addresses: Specifying port is supported, while scheme and path are NOT supported. Wildcards are NOT supported. Examples:
my.customdomain.com10.0.1.2:5000
hosts: Vec<HostConfig>HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations.
Implementations§
Source§impl RegistryHostConfig
impl RegistryHostConfig
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 (const: unstable) · 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 Message for RegistryHostConfig
impl Message for RegistryHostConfig
Source§impl PartialEq for RegistryHostConfig
impl PartialEq for RegistryHostConfig
impl StructuralPartialEq 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 UnsafeUnpin 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