v1beta1

package
v0.0.0-...-97dd610 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "dubbo.apache.org", Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthenticationPolicyExtend.

func (*AuthenticationPolicyExtend) DeepCopyInto

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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthenticationPolicyPortLevel.

func (*AuthenticationPolicyPortLevel) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthenticationPolicySelector.

func (*AuthenticationPolicySelector) DeepCopyInto

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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthorizationPolicyCondition.

func (*AuthorizationPolicyCondition) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthorizationPolicyExtend.

func (*AuthorizationPolicyExtend) DeepCopyInto

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

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

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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthorizationPolicySource.

func (*AuthorizationPolicySource) DeepCopyInto

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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthorizationPolicyTarget.

func (*AuthorizationPolicyTarget) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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