pub struct PolicyRule {
pub api_groups: Vec<String>,
pub attribute_restrictions: Option<RawExtension>,
pub non_resource_urls: Option<Vec<String>>,
pub resource_names: Option<Vec<String>>,
pub resources: Vec<String>,
pub verbs: Vec<String>,
}
Expand description
PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.
Fields§
§api_groups: Vec<String>
APIGroups is the name of the APIGroup that contains the resources. If this field is empty, then both kubernetes and origin API groups are assumed. That means that if an action is requested against one of the enumerated resources in either the kubernetes or the origin API group, the request will be allowed
attribute_restrictions: Option<RawExtension>
AttributeRestrictions will vary depending on what the Authorizer/AuthorizationAttributeBuilder pair supports. If the Authorizer does not recognize how to handle the AttributeRestrictions, the Authorizer should report an error.
non_resource_urls: Option<Vec<String>>
NonResourceURLsSlice is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different.
resource_names: Option<Vec<String>>
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
resources: Vec<String>
Resources is a list of resources this rule applies to. ResourceAll represents all resources.
verbs: Vec<String>
Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.
Trait Implementations§
Source§impl Clone for PolicyRule
impl Clone for PolicyRule
Source§fn clone(&self) -> PolicyRule
fn clone(&self) -> PolicyRule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more