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 KustomizePattern ¶
type KustomizePattern struct { Match []*RequestPattern `json:"match,omitempty"` NamePrefix *RulePattern `json:"namePrefix,omitempty"` NameSuffix *RulePattern `json:"nameSuffix,omitempty"` }
func (*KustomizePattern) DeepCopy ¶
func (p *KustomizePattern) DeepCopy() *KustomizePattern
func (*KustomizePattern) DeepCopyInto ¶
func (p *KustomizePattern) DeepCopyInto(p2 *KustomizePattern)
func (*KustomizePattern) MatchWith ¶
func (self *KustomizePattern) MatchWith(reqFields map[string]string) bool
func (*KustomizePattern) OverrideName ¶
func (self *KustomizePattern) OverrideName(ref *common.ResourceRef) *common.ResourceRef
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"` }
func NewRequestFromReqContext ¶
func NewRequestFromReqContext(reqc *common.ReqContext) *Request
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 RequestPatternWithNamespace ¶
type RequestPatternWithNamespace struct { RequestPattern Namespace *RulePattern `json:"namespace,omitempty"` }
type Result ¶
type Result struct { Message string `json:"message,omitempty"` Timestamp string `json:"timestamp,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 ServiceAccountPattern ¶
type ServiceAccountPattern struct { Match *RequestPatternWithNamespace `json:"match,omitempty"` Except *RequestPatternWithNamespace `json:"except,omitempty"` ServiceAccountNames []string `json:"serviceAccountNames,omitempty"` }
func (*ServiceAccountPattern) DeepCopy ¶
func (p *ServiceAccountPattern) DeepCopy() *ServiceAccountPattern
func (*ServiceAccountPattern) DeepCopyInto ¶
func (p *ServiceAccountPattern) DeepCopyInto(p2 *ServiceAccountPattern)
Click to show internal directories.
Click to hide internal directories.