pub struct Constraints {
pub proxy: Option<Proxy>,
pub registries: IndexMap<String, String>,
pub mirrors: Option<Mirrors>,
pub ntp: Vec<String>,
}Expand description
What the network an environment runs in imposes, applied on every target: images pulled through the customer’s registry, packages through their mirrors, outbound HTTP through their proxy, time from their servers.
Fields§
§proxy: Option<Proxy>The HTTP proxy outbound traffic goes through: set for the machines’ containers (and their builds) and on every Linux VM (shell, apt, dnf, Docker), never for Isoloom’s own checks.
registries: IndexMap<String, String>Registry mirrors, by the registry they stand for: docker.io: registry.corp/dockerhub
pulls redis:7 as registry.corp/dockerhub/library/redis:7. Every image of the
environment is rewritten, Isoloom’s own included; images built from the project aren’t
pulled, so they stay as they are (their FROM lines are the Dockerfile’s business).
mirrors: Option<Mirrors>Package mirrors the machines install from instead of the public archives: apt’s for Debian and Ubuntu VMs, and a Python package index.
ntp: Vec<String>The time servers (names or addresses) the Linux VMs synchronise their clocks with, where the place forbids the public pools.
Trait Implementations§
Source§impl Clone for Constraints
impl Clone for Constraints
Source§impl Debug for Constraints
impl Debug for Constraints
Source§impl Default for Constraints
impl Default for Constraints
Source§impl<'de> Deserialize<'de> for Constraints
impl<'de> Deserialize<'de> for Constraints
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 JsonSchema for Constraints
impl JsonSchema for Constraints
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more