Documentation ¶
Index ¶
- Constants
- type Condition
- type ConditionToClient
- type Extend
- type ExtendToClient
- type Handler
- type Impl
- type Match
- type MatchToClient
- type Origin
- type Policy
- type PolicyRule
- type PolicyRuleToClient
- type PolicySpec
- type PolicySpecToClient
- type PolicyToClient
- type Source
- type SourceToClient
- type Target
- type TargetToClient
- type ToClient
Constants ¶
View Source
const RuleType = "authorization/v1beta1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition struct { Key string `json:"key,omitempty"` Values []*Match `json:"values,omitempty"` NotValues []*Match `json:"notValues,omitempty"` }
func (*Condition) CopyToClient ¶
func (c *Condition) CopyToClient() *ConditionToClient
type ConditionToClient ¶
type ConditionToClient struct { Key string `json:"key,omitempty"` Values []*MatchToClient `json:"values,omitempty"` NotValues []*MatchToClient `json:"notValues,omitempty"` }
type Extend ¶
func (*Extend) CopyToClient ¶
func (e *Extend) CopyToClient() *ExtendToClient
type ExtendToClient ¶
type Impl ¶
type Impl struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(storage *connection.Storage) *Impl
type Match ¶
func (*Match) CopyToClient ¶
func (m *Match) CopyToClient() *MatchToClient
type MatchToClient ¶
type Policy ¶
type Policy struct { Name string `json:"name,omitempty"` Spec *PolicySpec `json:"spec"` }
func (*Policy) CopyToClient ¶
func (p *Policy) CopyToClient() *PolicyToClient
type PolicyRule ¶
type PolicyRule struct { From *Source `json:"from,omitempty"` To *Target `json:"to,omitempty"` When *Condition `json:"when,omitempty"` }
func (*PolicyRule) CopyToClient ¶
func (p *PolicyRule) CopyToClient() *PolicyRuleToClient
type PolicyRuleToClient ¶
type PolicyRuleToClient struct { From *SourceToClient `json:"from,omitempty"` When *ConditionToClient `json:"when,omitempty"` }
type PolicySpec ¶
type PolicySpec struct { Action string `json:"action,omitempty"` Rules []*PolicyRule `json:"rules,omitempty"` Samples float32 `json:"samples,omitempty"` Order float32 `json:"order,omitempty"` MatchType string `json:"matchType,omitempty"` }
func (*PolicySpec) CopyToClient ¶
func (p *PolicySpec) CopyToClient() *PolicySpecToClient
type PolicySpecToClient ¶
type PolicySpecToClient struct { Action string `json:"action,omitempty"` Rules []*PolicyRuleToClient `json:"rules,omitempty"` Samples float32 `json:"samples,omitempty"` Order float32 `json:"order,omitempty"` MatchType string `json:"matchType,omitempty"` }
type PolicyToClient ¶
type PolicyToClient struct { Name string `json:"name,omitempty"` Spec *PolicySpecToClient `json:"spec"` }
type Source ¶
type Source struct { Namespaces []string `json:"namespaces,omitempty"` NotNamespaces []string `json:"notNamespaces,omitempty"` IpBlocks []string `json:"ipBlocks,omitempty"` NotIpBlocks []string `json:"notIpBlocks,omitempty"` Principals []string `json:"principals,omitempty"` NotPrincipals []string `json:"notPrincipals,omitempty"` Extends []*Extend `json:"sourceExtends,omitempty"` NotExtends []*Extend `json:"sourceNotExtends,omitempty"` }
func (*Source) CopyToClient ¶
func (s *Source) CopyToClient() *SourceToClient
type SourceToClient ¶
type SourceToClient struct { Namespaces []string `json:"namespaces,omitempty"` NotNamespaces []string `json:"notNamespaces,omitempty"` IpBlocks []string `json:"ipBlocks,omitempty"` NotIpBlocks []string `json:"notIpBlocks,omitempty"` Principals []string `json:"principals,omitempty"` NotPrincipals []string `json:"notPrincipals,omitempty"` Extends []*ExtendToClient `json:"sourceExtends,omitempty"` NotExtends []*ExtendToClient `json:"sourceNotExtends,omitempty"` }
type Target ¶
type Target struct { Namespaces []string `json:"namespaces,omitempty"` NotNamespaces []string `json:"notNamespaces,omitempty"` IpBlocks []string `json:"ipBlocks,omitempty"` NotIpBlocks []string `json:"notIpBlocks,omitempty"` Principals []string `json:"principals,omitempty"` NotPrincipals []string `json:"notPrincipals,omitempty"` Extends []*Extend `json:"targetExtends,omitempty"` NotExtends []*Extend `json:"targetNotExtends,omitempty"` }
type TargetToClient ¶
type TargetToClient struct { Namespaces []string `json:"namespaces,omitempty"` NotNamespaces []string `json:"notNamespaces,omitempty"` IpBlocks []string `json:"ipBlocks,omitempty"` NotIpBlocks []string `json:"notIpBlocks,omitempty"` Principals []string `json:"principals,omitempty"` NotPrincipals []string `json:"notPrincipals,omitempty"` Extends []*ExtendToClient `json:"targetExtends,omitempty"` NotExtends []*ExtendToClient `json:"targetNotExtends,omitempty"` }
Click to show internal directories.
Click to hide internal directories.