pub struct NamespaceConsulConfiguration {
pub default: String,
pub allowed: Vec<String>,
pub denied: Vec<String>,
}
Expand description
NamespaceConsulConfiguration stores configuration about permissions to Consul clusters for a namespace, for use with Nomad Enterprise.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§default: String
Default is the Consul cluster used by jobs in this namespace that don’t specify a cluster of their own.
allowed: Vec<String>
Allowed specifies the Consul clusters that are allowed to be used by jobs
in this namespace. By default, all clusters are allowed. If an empty list
is provided only the namespace’s default cluster is allowed. This field
supports wildcard globbing through the use of *
for multi-character
matching. This field cannot be used with Denied.
denied: Vec<String>
Denied specifies the Consul clusters that are not allowed to be used by
jobs in this namespace. This field supports wildcard globbing through the
use of *
for multi-character matching. If specified, any cluster is
allowed to be used, except for those that match any of these patterns.
This field cannot be used with Allowed.
Implementations§
Trait Implementations§
Source§impl Clone for NamespaceConsulConfiguration
impl Clone for NamespaceConsulConfiguration
Source§fn clone(&self) -> NamespaceConsulConfiguration
fn clone(&self) -> NamespaceConsulConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NamespaceConsulConfiguration
impl Debug for NamespaceConsulConfiguration
Source§impl<'de> Deserialize<'de> for NamespaceConsulConfiguration
impl<'de> Deserialize<'de> for NamespaceConsulConfiguration
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 PartialEq for NamespaceConsulConfiguration
impl PartialEq for NamespaceConsulConfiguration
Source§fn eq(&self, other: &NamespaceConsulConfiguration) -> bool
fn eq(&self, other: &NamespaceConsulConfiguration) -> bool
self
and other
values to be equal, and is used by ==
.