pub struct AclBindingRule {
pub bind_name: String,
pub create_time: DateTime<Utc>,
pub modify_time: DateTime<Utc>,
pub create_index: u64,
pub description: String,
pub bind_type: String,
pub selector: String,
pub modify_index: u64,
pub id: String,
pub auth_method: String,
}
Expand description
ACLBindingRule contains a direct relation to an ACLAuthMethod and represents a rule to apply when logging in via the named AuthMethod. This allows the transformation of OIDC provider claims, to Nomad based ACL concepts such as ACL Roles and Policies.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§bind_name: String
BindName is the target of the binding. Can be lightly templated using HIL ${foo} syntax from available field names. How it is used depends upon the BindType.
create_time: DateTime<Utc>
§modify_time: DateTime<Utc>
§create_index: u64
§description: String
Description is a human-readable, operator set description that can provide additional context about the binding rule. This is an operational field.
bind_type: String
BindType adjusts how this binding rule is applied at login time. The valid values are ACLBindingRuleBindTypeRole, ACLBindingRuleBindTypePolicy, and ACLBindingRuleBindTypeManagement.
selector: String
Selector is an expression that matches against verified identity attributes returned from the auth method during login. This is optional and when not set, provides a catch-all rule.
modify_index: u64
§id: String
ID is an internally generated UUID for this rule and is controlled by Nomad.
auth_method: String
AuthMethod is the name of the auth method for which this rule applies to. This is required and the method must exist within state before the cluster administrator can create the rule.
Implementations§
Source§impl AclBindingRule
impl AclBindingRule
pub fn builder() -> AclBindingRuleBuilder
Trait Implementations§
Source§impl Clone for AclBindingRule
impl Clone for AclBindingRule
Source§fn clone(&self) -> AclBindingRule
fn clone(&self) -> AclBindingRule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more