Documentation ¶
Index ¶
Constants ¶
View Source
const RuleType = "authentication/v1beta1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(storage *connection.Storage) *Impl
type Policy ¶
type Policy struct { Name string `json:"name,omitempty"` Spec *PolicySpec `json:"spec"` }
func (*Policy) CopyToClient ¶
func (p *Policy) CopyToClient() *PolicyToClient
type PolicySpec ¶
type PolicySpec struct { Action string `json:"action"` Selector []*Selector `json:"selector,omitempty"` PortLevel []*PortLevel `json:"PortLevel,omitempty"` }
func (*PolicySpec) CopyToClient ¶
func (p *PolicySpec) CopyToClient() *PolicySpecToClient
type PolicySpecToClient ¶
type PolicySpecToClient struct { Action string `json:"action"` PortLevel []*PortLevelToClient `json:"PortLevel,omitempty"` }
type PolicyToClient ¶
type PolicyToClient struct { Name string `json:"name,omitempty"` Spec *PolicySpecToClient `json:"spec"` }
type PortLevel ¶
func (*PortLevel) CopyToClient ¶
func (p *PortLevel) CopyToClient() *PortLevelToClient
type PortLevelToClient ¶
type Selector ¶
type Selector 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:"extends,omitempty"` NotExtends []*Extend `json:"notExtends,omitempty"` }
Click to show internal directories.
Click to hide internal directories.