profile

package
v0.0.0-...-9b5a78d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

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)

func (*AttrsPattern) MatchWith

func (self *AttrsPattern) MatchWith(reqFields map[string]string) bool

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

func (*Request) Equal

func (self *Request) Equal(req *Request) bool

func (*Request) String

func (self *Request) String() string

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)

func (*RequestPattern) Match

func (self *RequestPattern) Match(reqFields map[string]string) bool

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) DeepCopy

func (p *Result) DeepCopy() *Result

func (*Result) DeepCopyInto

func (p *Result) DeepCopyInto(p2 *Result)

type Rule

type Rule struct {
	Match   []*RequestPattern `json:"match,omitempty"`
	Exclude []*RequestPattern `json:"exclude,omitempty"`
}

func (*Rule) DeepCopy

func (p *Rule) DeepCopy() *Rule

func (*Rule) DeepCopyInto

func (p *Rule) DeepCopyInto(p2 *Rule)

func (*Rule) MatchWithRequest

func (self *Rule) MatchWithRequest(reqFields map[string]string) bool

func (*Rule) String

func (self *Rule) String() string

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 (*ServiceAccountPattern) DeepCopyInto

func (p *ServiceAccountPattern) DeepCopyInto(p2 *ServiceAccountPattern)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL