Documentation
¶
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type AuthenticationPolicy
- type AuthenticationPolicyExtend
- type AuthenticationPolicyList
- type AuthenticationPolicyPortLevel
- type AuthenticationPolicySelector
- type AuthenticationPolicySpec
- type AuthorizationPolicy
- type AuthorizationPolicyCondition
- type AuthorizationPolicyExtend
- type AuthorizationPolicyList
- type AuthorizationPolicyMatch
- type AuthorizationPolicyRule
- type AuthorizationPolicySource
- type AuthorizationPolicySpec
- type AuthorizationPolicyTarget
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: "dubbo.apache.org", Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type AuthenticationPolicy ¶
type AuthenticationPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Spec AuthenticationPolicySpec `json:"spec"` }
func (*AuthenticationPolicy) DeepCopy ¶
func (in *AuthenticationPolicy) DeepCopy() *AuthenticationPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthenticationPolicy.
func (*AuthenticationPolicy) DeepCopyInto ¶
func (in *AuthenticationPolicy) DeepCopyInto(out *AuthenticationPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AuthenticationPolicy) DeepCopyObject ¶
func (in *AuthenticationPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AuthenticationPolicyExtend ¶
type AuthenticationPolicyExtend struct { // The key of the extended identity. // +optional Key string `json:"key,omitempty"` // The value of the extended identity. // +optional Value string `json:"value,omitempty"` }
func (*AuthenticationPolicyExtend) DeepCopy ¶
func (in *AuthenticationPolicyExtend) DeepCopy() *AuthenticationPolicyExtend
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthenticationPolicyExtend.
func (*AuthenticationPolicyExtend) DeepCopyInto ¶
func (in *AuthenticationPolicyExtend) DeepCopyInto(out *AuthenticationPolicyExtend)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuthenticationPolicyList ¶
type AuthenticationPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []AuthenticationPolicy `json:"items"` }
func (*AuthenticationPolicyList) DeepCopy ¶
func (in *AuthenticationPolicyList) DeepCopy() *AuthenticationPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthenticationPolicyList.
func (*AuthenticationPolicyList) DeepCopyInto ¶
func (in *AuthenticationPolicyList) DeepCopyInto(out *AuthenticationPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AuthenticationPolicyList) DeepCopyObject ¶
func (in *AuthenticationPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AuthenticationPolicyPortLevel ¶
type AuthenticationPolicyPortLevel struct { // The key of the extended identity. // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=number // +kubebuilder:validation:Minimum=0 // +kubebuilder:validation:Maximum=65535 // +kubebuilder:default=0 Port int `json:"port,omitempty"` // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string // +kubebuilder:validation:Enum=NONE;DISABLED;PERMISSIVE;STRICT Action string `json:"action,omitempty"` }
func (*AuthenticationPolicyPortLevel) DeepCopy ¶
func (in *AuthenticationPolicyPortLevel) DeepCopy() *AuthenticationPolicyPortLevel
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthenticationPolicyPortLevel.
func (*AuthenticationPolicyPortLevel) DeepCopyInto ¶
func (in *AuthenticationPolicyPortLevel) DeepCopyInto(out *AuthenticationPolicyPortLevel)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuthenticationPolicySelector ¶
type AuthenticationPolicySelector struct { // The namespaces to match of the source workload. // +optional Namespaces []string `json:"namespaces,omitempty"` // The namespaces not to match of the source workload. // +optional NotNamespaces []string `json:"notNamespaces,omitempty"` // The IP addresses to match of the source workload. // +optional IpBlocks []string `json:"ipBlocks,omitempty"` // The IP addresses not to match of the source workload. // +optional NotIpBlocks []string `json:"notIpBlocks,omitempty"` // The identities(from spiffe) to match of the source workload. // +optional Principals []string `json:"principals,omitempty"` // The identities(from spiffe) not to match of the source workload. // +optional NotPrincipals []string `json:"notPrincipals,omitempty"` // The extended identities(from Dubbo Auth) to match of the source workload. // +optional Extends []AuthenticationPolicyExtend `json:"extends,omitempty"` // The extended identities(from Dubbo Auth) not to match of the source workload. // +optional NotExtends []AuthenticationPolicyExtend `json:"notExtends,omitempty"` }
func (*AuthenticationPolicySelector) DeepCopy ¶
func (in *AuthenticationPolicySelector) DeepCopy() *AuthenticationPolicySelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthenticationPolicySelector.
func (*AuthenticationPolicySelector) DeepCopyInto ¶
func (in *AuthenticationPolicySelector) DeepCopyInto(out *AuthenticationPolicySelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuthenticationPolicySpec ¶
type AuthenticationPolicySpec struct { // The action to take when a rule is matched. // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string // +kubebuilder:validation:Enum=NONE;DISABLED;PERMISSIVE;STRICT Action string `json:"action"` // +optional Selector []AuthenticationPolicySelector `json:"selector,omitempty"` // +optional PortLevel []AuthenticationPolicyPortLevel `json:"PortLevel,omitempty"` }
func (*AuthenticationPolicySpec) DeepCopy ¶
func (in *AuthenticationPolicySpec) DeepCopy() *AuthenticationPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthenticationPolicySpec.
func (*AuthenticationPolicySpec) DeepCopyInto ¶
func (in *AuthenticationPolicySpec) DeepCopyInto(out *AuthenticationPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuthorizationPolicy ¶
type AuthorizationPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Spec AuthorizationPolicySpec `json:"spec"` }
func (*AuthorizationPolicy) DeepCopy ¶
func (in *AuthorizationPolicy) DeepCopy() *AuthorizationPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthorizationPolicy.
func (*AuthorizationPolicy) DeepCopyInto ¶
func (in *AuthorizationPolicy) DeepCopyInto(out *AuthorizationPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AuthorizationPolicy) DeepCopyObject ¶
func (in *AuthorizationPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AuthorizationPolicyCondition ¶
type AuthorizationPolicyCondition struct { // +optional Key string `json:"key,omitempty"` // +optional Values []AuthorizationPolicyMatch `json:"values,omitempty"` // +optional NotValues []AuthorizationPolicyMatch `json:"notValues,omitempty"` }
func (*AuthorizationPolicyCondition) DeepCopy ¶
func (in *AuthorizationPolicyCondition) DeepCopy() *AuthorizationPolicyCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthorizationPolicyCondition.
func (*AuthorizationPolicyCondition) DeepCopyInto ¶
func (in *AuthorizationPolicyCondition) DeepCopyInto(out *AuthorizationPolicyCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuthorizationPolicyExtend ¶
type AuthorizationPolicyExtend struct { // The key of the extended identity. // +optional Key string `json:"key,omitempty"` // The value of the extended identity // +optional Value string `json:"value,omitempty"` }
func (*AuthorizationPolicyExtend) DeepCopy ¶
func (in *AuthorizationPolicyExtend) DeepCopy() *AuthorizationPolicyExtend
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthorizationPolicyExtend.
func (*AuthorizationPolicyExtend) DeepCopyInto ¶
func (in *AuthorizationPolicyExtend) DeepCopyInto(out *AuthorizationPolicyExtend)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuthorizationPolicyList ¶
type AuthorizationPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []AuthorizationPolicy `json:"items"` }
func (*AuthorizationPolicyList) DeepCopy ¶
func (in *AuthorizationPolicyList) DeepCopy() *AuthorizationPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthorizationPolicyList.
func (*AuthorizationPolicyList) DeepCopyInto ¶
func (in *AuthorizationPolicyList) DeepCopyInto(out *AuthorizationPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AuthorizationPolicyList) DeepCopyObject ¶
func (in *AuthorizationPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AuthorizationPolicyMatch ¶
type AuthorizationPolicyMatch struct { // +optional // +kubebuilder:validation:Type=string // +kubebuilder:validation:Enum=equals;regex;ognl // +kubebuilder:default=equals Type string `json:"type,omitempty"` // +optional Value string `json:"value,omitempty"` }
func (*AuthorizationPolicyMatch) DeepCopy ¶
func (in *AuthorizationPolicyMatch) DeepCopy() *AuthorizationPolicyMatch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthorizationPolicyMatch.
func (*AuthorizationPolicyMatch) DeepCopyInto ¶
func (in *AuthorizationPolicyMatch) DeepCopyInto(out *AuthorizationPolicyMatch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuthorizationPolicyRule ¶
type AuthorizationPolicyRule struct { // The source of the traffic to be matched. // +optional From AuthorizationPolicySource `json:"from,omitempty"` // The destination of the traffic to be matched. // +optional To AuthorizationPolicyTarget `json:"to,omitempty"` // +optional When AuthorizationPolicyCondition `json:"when,omitempty"` }
func (*AuthorizationPolicyRule) DeepCopy ¶
func (in *AuthorizationPolicyRule) DeepCopy() *AuthorizationPolicyRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthorizationPolicyRule.
func (*AuthorizationPolicyRule) DeepCopyInto ¶
func (in *AuthorizationPolicyRule) DeepCopyInto(out *AuthorizationPolicyRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuthorizationPolicySource ¶
type AuthorizationPolicySource struct { // The namespaces to match of the source workload. // +optional Namespaces []string `json:"namespaces,omitempty"` // The namespaces not to match of the source workload. // +optional NotNamespaces []string `json:"notNamespaces,omitempty"` // The IP addresses to match of the source workload. // +optional IpBlocks []string `json:"ipBlocks,omitempty"` // The IP addresses not to match of the source workload. // +optional NotIpBlocks []string `json:"notIpBlocks,omitempty"` // The identities(from spiffe) to match of the source workload. // +optional Principals []string `json:"principals,omitempty"` // The identities(from spiffe) not to match of the source workload // +optional NotPrincipals []string `json:"notPrincipals,omitempty"` // The extended identities(from Dubbo Auth) to match of the source workload. // +optional Extends []AuthorizationPolicyExtend `json:"extends,omitempty"` // The extended identities(from Dubbo Auth) not to match of the source workload. // +optional NotExtends []AuthorizationPolicyExtend `json:"notExtends,omitempty"` }
func (*AuthorizationPolicySource) DeepCopy ¶
func (in *AuthorizationPolicySource) DeepCopy() *AuthorizationPolicySource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthorizationPolicySource.
func (*AuthorizationPolicySource) DeepCopyInto ¶
func (in *AuthorizationPolicySource) DeepCopyInto(out *AuthorizationPolicySource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuthorizationPolicySpec ¶
type AuthorizationPolicySpec struct { // The action to take when a rule is matched // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string // +kubebuilder:validation:Enum=ALLOW;DENY;ADUIT Action string `json:"action"` // +optional Rules []AuthorizationPolicyRule `json:"rules,omitempty"` // The sample rate of the rule. The value is between 0 and 100. // +optional // +kubebuilder:validation:Type=number // +kubebuilder:validation:Minimum=0 // +kubebuilder:validation:Maximum=100 // +kubebuilder:default=100 Samples float32 `json:"samples,omitempty"` // The order of the rule. // +optional // +kubebuilder:validation:Type=number // +kubebuilder:validation:Minimum=-2147483648 // +kubebuilder:validation:Maximum=2147483647 // +kubebuilder:default=0 Order float32 `json:"order,omitempty"` // The match type of the rules. // +optional // +kubebuilder:validation:Type=string // +kubebuilder:validation:Enum=anyMatch;allMatch // +kubebuilder:default=anyMatch MatchType string `json:"matchType,omitempty"` }
func (*AuthorizationPolicySpec) DeepCopy ¶
func (in *AuthorizationPolicySpec) DeepCopy() *AuthorizationPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthorizationPolicySpec.
func (*AuthorizationPolicySpec) DeepCopyInto ¶
func (in *AuthorizationPolicySpec) DeepCopyInto(out *AuthorizationPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuthorizationPolicyTarget ¶
type AuthorizationPolicyTarget struct { // The namespaces to match of the source workload. // +optional Namespaces []string `json:"namespaces,omitempty"` // The namespaces not to match of the source workload. // +optional NotNamespaces []string `json:"notNamespaces,omitempty"` // The IP addresses to match of the destination workload. // +optional IpBlocks []string `json:"ipBlocks,omitempty"` // The IP addresses not to match of the destination workload. // +optional NotIpBlocks []string `json:"notIpBlocks,omitempty"` // The identities(from spiffe) to match of the destination workload. // +optional Principals []string `json:"principals,omitempty"` // The identities(from spiffe) not to match of the destination workload. // +optional NotPrincipals []string `json:"notPrincipals,omitempty"` // The extended identities(from Dubbo Auth) to match of the destination workload. // +optional Extends []AuthorizationPolicyExtend `json:"extends,omitempty"` // The extended identities(from Dubbo Auth) not to match of the destination workload. // +optional NotExtends []AuthorizationPolicyExtend `json:"notExtends,omitempty"` }
func (*AuthorizationPolicyTarget) DeepCopy ¶
func (in *AuthorizationPolicyTarget) DeepCopy() *AuthorizationPolicyTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthorizationPolicyTarget.
func (*AuthorizationPolicyTarget) DeepCopyInto ¶
func (in *AuthorizationPolicyTarget) DeepCopyInto(out *AuthorizationPolicyTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.