pub struct AclBindingRule {
pub create_time: DateTime<Utc>,
pub modify_time: DateTime<Utc>,
pub modify_index: u64,
pub bind_type: String,
pub bind_name: String,
pub auth_method: String,
pub selector: String,
pub create_index: u64,
pub id: String,
pub description: 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.
Fields§
§create_time: DateTime<Utc>
§modify_time: DateTime<Utc>
§modify_index: u64
§bind_type: String
BindType adjusts how this binding rule is applied at login time. The valid values are ACLBindingRuleBindTypeRole, ACLBindingRuleBindTypePolicy, and ACLBindingRuleBindTypeManagement.
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.
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.
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.
create_index: u64
§id: String
ID is an internally generated UUID for this rule and is controlled by Nomad.
description: String
Description is a human-readable, operator set description that can provide additional context about the binding rule. This is an operational field.
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