pub struct EnvironmentDns {
pub private: bool,
pub domain: Option<String>,
}Expand description
The environment’s names in a private DNS zone (see super::Spec::dns).
Fields§
§private: boolServe every machine’s name and aliases under domain (web.<domain>) from the
platform’s own private DNS: a Route 53 private hosted zone on AWS, an Azure private DNS
zone, a Cloud DNS private zone on Google Cloud, a private view on Oracle Cloud, Docker’s
DNS on the Docker targets. Where the platform has none (Vagrant, Proxmox, DigitalOcean,
Linode), the hosts file every VM gets carries the same names. Off by default: a cloud
zone is billed, and the short names already resolve through the hosts file everywhere.
domain: Option<String>The private zone’s domain (lab.internal). By default <name>.internal, after the
environment’s name. Needs private: true.
Implementations§
Source§impl EnvironmentDns
impl EnvironmentDns
Sourcepub fn private_domain(&self, name: &str) -> Option<String>
pub fn private_domain(&self, name: &str) -> Option<String>
The private zone’s domain for environment name, when private DNS is on.
Trait Implementations§
Source§impl Clone for EnvironmentDns
impl Clone for EnvironmentDns
Source§impl Debug for EnvironmentDns
impl Debug for EnvironmentDns
Source§impl Default for EnvironmentDns
impl Default for EnvironmentDns
Source§impl<'de> Deserialize<'de> for EnvironmentDns
impl<'de> Deserialize<'de> for EnvironmentDns
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>,
impl Eq for EnvironmentDns
Source§impl JsonSchema for EnvironmentDns
impl JsonSchema for EnvironmentDns
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 moreSource§impl PartialEq for EnvironmentDns
impl PartialEq for EnvironmentDns
Source§impl Serialize for EnvironmentDns
impl Serialize for EnvironmentDns
impl StructuralPartialEq for EnvironmentDns
Auto Trait Implementations§
impl Freeze for EnvironmentDns
impl RefUnwindSafe for EnvironmentDns
impl Send for EnvironmentDns
impl Sync for EnvironmentDns
impl Unpin for EnvironmentDns
impl UnsafeUnpin for EnvironmentDns
impl UnwindSafe for EnvironmentDns
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.