Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttrsPattern ¶
type AttrsPattern struct { Match *RequestPattern `json:"match,omitempty"` Attrs []string `json:"attrs,omitempty"` }
func (*AttrsPattern) DeepCopy ¶
func (p *AttrsPattern) DeepCopy() *AttrsPattern
func (*AttrsPattern) DeepCopyInto ¶
func (p *AttrsPattern) DeepCopyInto(p2 *AttrsPattern)
type ProtectionProfile ¶
type Request ¶
type Request struct { // Scope string `json:"scope,omitempty"` Operation string `json:"operation,omitempty"` Namespace string `json:"namespace,omitempty"` ApiGroup string `json:"apiGroup,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Kind string `json:"kind,omitempty"` Name string `json:"name,omitempty"` UserName string `json:"userName,omitempty"` }
type RequestPattern ¶
type RequestPattern struct { Scope *RulePattern `json:"scope,omitempty"` Namespace *RulePattern `json:"namespace,omitempty"` ApiGroup *RulePattern `json:"apiGroup,omitempty"` ApiVersion *RulePattern `json:"apiVersion,omitempty"` Kind *RulePattern `json:"kind,omitempty"` Name *RulePattern `json:"name,omitempty"` Operation *RulePattern `json:"operation,omitempty"` UserName *RulePattern `json:"username,omitempty"` UserGroup *RulePattern `json:"usergroup,omitempty"` }
func (*RequestPattern) DeepCopy ¶
func (p *RequestPattern) DeepCopy() *RequestPattern
func (*RequestPattern) DeepCopyInto ¶
func (p *RequestPattern) DeepCopyInto(p2 *RequestPattern)
type Result ¶
type Result struct { Request string `json:"request,omitempty"` Reason string `json:"reason,omitempty"` MatchedRule string `json:"matchedRule,omitempty"` }
func (*Result) DeepCopyInto ¶
type Rule ¶
type Rule struct { Match []*RequestPattern `json:"match,omitempty"` Exclude []*RequestPattern `json:"exclude,omitempty"` }
func (*Rule) DeepCopyInto ¶
func (*Rule) MatchWithRequest ¶
type RulePattern ¶
type RulePattern string
type ServieAccountPattern ¶
type ServieAccountPattern struct { Match *RequestPattern `json:"match,omitempty"` ServiceAccountName []string `json:"serviceAccountName,omitempty"` }
func (*ServieAccountPattern) DeepCopy ¶
func (p *ServieAccountPattern) DeepCopy() *ServieAccountPattern
func (*ServieAccountPattern) DeepCopyInto ¶
func (p *ServieAccountPattern) DeepCopyInto(p2 *ServieAccountPattern)
Click to show internal directories.
Click to hide internal directories.