v1alpha1

package
v0.0.0-...-0807185 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the datasource v1 API group +kubebuilder:object:generate=true +groupName=datasource.sentinel.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "datasource.sentinel.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type CircuitBreakerRule

type CircuitBreakerRule struct {
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:MinLength=0
	// +kubebuilder:validation:MaxLength=32
	// +kubebuilder:validation:Optional
	Id string `json:"id,omitempty"`

	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=64
	// +kubebuilder:validation:Required
	Resource string `json:"resource"`

	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Enum=SlowRequestRatio;ErrorRatio;ErrorCount
	// +kubebuilder:validation:Required
	Strategy string `json:"strategy"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int32
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Optional
	RetryTimeoutMs int32 `json:"retryTimeoutMs"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int64
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Optional
	MinRequestAmount int64 `json:"minRequestAmount"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int32
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Optional
	StatIntervalMs int32 `json:"statIntervalMs"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int64
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Optional
	MaxAllowedRtMs int64 `json:"maxAllowedRtMs"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int64
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Required
	Threshold int64 `json:"threshold"`
}

func (*CircuitBreakerRule) DeepCopy

func (in *CircuitBreakerRule) DeepCopy() *CircuitBreakerRule

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

func (*CircuitBreakerRule) DeepCopyInto

func (in *CircuitBreakerRule) DeepCopyInto(out *CircuitBreakerRule)

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

type CircuitBreakerRules

type CircuitBreakerRules struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CircuitBreakerRulesSpec   `json:"spec,omitempty"`
	Status CircuitBreakerRulesStatus `json:"status,omitempty"`
}

CircuitBreakerRules is the Schema for the circuitbreakerrules API

func (*CircuitBreakerRules) DeepCopy

func (in *CircuitBreakerRules) DeepCopy() *CircuitBreakerRules

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

func (*CircuitBreakerRules) DeepCopyInto

func (in *CircuitBreakerRules) DeepCopyInto(out *CircuitBreakerRules)

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

func (*CircuitBreakerRules) DeepCopyObject

func (in *CircuitBreakerRules) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CircuitBreakerRulesList

type CircuitBreakerRulesList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []CircuitBreakerRules `json:"items"`
}

CircuitBreakerRulesList contains a list of CircuitBreakerRules

func (*CircuitBreakerRulesList) DeepCopy

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

func (*CircuitBreakerRulesList) DeepCopyInto

func (in *CircuitBreakerRulesList) DeepCopyInto(out *CircuitBreakerRulesList)

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

func (*CircuitBreakerRulesList) DeepCopyObject

func (in *CircuitBreakerRulesList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CircuitBreakerRulesSpec

type CircuitBreakerRulesSpec struct {

	// +kubebuilder:validation:Type=array
	// +kubebuilder:validation:Optional
	Rules []CircuitBreakerRule `json:"rules"`
}

CircuitBreakerRulesSpec defines the desired state of CircuitBreakerRules

func (*CircuitBreakerRulesSpec) DeepCopy

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

func (*CircuitBreakerRulesSpec) DeepCopyInto

func (in *CircuitBreakerRulesSpec) DeepCopyInto(out *CircuitBreakerRulesSpec)

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

type CircuitBreakerRulesStatus

type CircuitBreakerRulesStatus struct {
}

CircuitBreakerRulesStatus defines the observed state of CircuitBreakerRules

func (*CircuitBreakerRulesStatus) DeepCopy

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

func (*CircuitBreakerRulesStatus) DeepCopyInto

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

type FlowRule

type FlowRule struct {
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:MinLength=0
	// +kubebuilder:validation:MaxLength=32
	// +kubebuilder:validation:Optional
	Id string `json:"id,omitempty"`

	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=64
	// +kubebuilder:validation:Required
	Resource string `json:"resource"`

	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Enum=Direct;WarmUp
	// +kubebuilder:validation:Optional
	TokenCalculateStrategy string `json:"tokenCalculateStrategy"`

	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Enum=Reject;Throttling
	// +kubebuilder:validation:Optional
	ControlBehavior string `json:"controlBehavior"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int64
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Required
	Threshold int64 `json:"threshold"`

	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Enum=CurrentResource;AssociatedResource
	// +kubebuilder:validation:Optional
	RelationStrategy string `json:"relationStrategy"`

	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=64
	// +kubebuilder:validation:Optional
	RefResource string `json:"refResource"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int32
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Optional
	MaxQueueingTimeMs int32 `json:"maxQueueingTimeMs"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int32
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Optional
	WarmUpPeriodSec int32 `json:"warmUpPeriodSec"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int32
	// +kubebuilder:validation:Minimum=2
	// +kubebuilder:validation:Optional
	WarmUpColdFactor int32 `json:"warmUpColdFactor"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int32
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Optional
	StatIntervalInMs int32 `json:"statIntervalInMs"`
}

func (*FlowRule) DeepCopy

func (in *FlowRule) DeepCopy() *FlowRule

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

func (*FlowRule) DeepCopyInto

func (in *FlowRule) DeepCopyInto(out *FlowRule)

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

type FlowRules

type FlowRules struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   FlowRulesSpec   `json:"spec,omitempty"`
	Status FlowRulesStatus `json:"status,omitempty"`
}

FlowRules is the Schema for the flowrules API

func (*FlowRules) DeepCopy

func (in *FlowRules) DeepCopy() *FlowRules

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

func (*FlowRules) DeepCopyInto

func (in *FlowRules) DeepCopyInto(out *FlowRules)

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

func (*FlowRules) DeepCopyObject

func (in *FlowRules) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type FlowRulesList

type FlowRulesList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []FlowRules `json:"items"`
}

FlowRulesList contains a list of FlowRules

func (*FlowRulesList) DeepCopy

func (in *FlowRulesList) DeepCopy() *FlowRulesList

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

func (*FlowRulesList) DeepCopyInto

func (in *FlowRulesList) DeepCopyInto(out *FlowRulesList)

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

func (*FlowRulesList) DeepCopyObject

func (in *FlowRulesList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type FlowRulesSpec

type FlowRulesSpec struct {

	// +kubebuilder:validation:Type=array
	// +kubebuilder:validation:Optional
	Rules []FlowRule `json:"rules"`
}

FlowRulesSpec defines the desired state of FlowRules

func (*FlowRulesSpec) DeepCopy

func (in *FlowRulesSpec) DeepCopy() *FlowRulesSpec

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

func (*FlowRulesSpec) DeepCopyInto

func (in *FlowRulesSpec) DeepCopyInto(out *FlowRulesSpec)

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

type FlowRulesStatus

type FlowRulesStatus struct {
}

FlowRulesStatus defines the observed state of FlowRules

func (*FlowRulesStatus) DeepCopy

func (in *FlowRulesStatus) DeepCopy() *FlowRulesStatus

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

func (*FlowRulesStatus) DeepCopyInto

func (in *FlowRulesStatus) DeepCopyInto(out *FlowRulesStatus)

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

type HotspotRule

type HotspotRule struct {
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:MinLength=0
	// +kubebuilder:validation:MaxLength=32
	// +kubebuilder:validation:Optional
	Id string `json:"id,omitempty"`

	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=64
	// +kubebuilder:validation:Required
	Resource string `json:"resource"`

	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Enum=Concurrency;QPS
	// +kubebuilder:validation:Required
	MetricType string `json:"metricType"`

	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Enum=Reject;Throttling
	// +kubebuilder:validation:Optional
	ControlBehavior string `json:"controlBehavior"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int32
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Required
	ParamIndex int32 `json:"paramIndex"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int64
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Required
	Threshold int64 `json:"threshold"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int64
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Optional
	MaxQueueingTimeMs int64 `json:"maxQueueingTimeMs"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int64
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Optional
	BurstCount int64 `json:"burstCount"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int64
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Optional
	DurationInSec int64 `json:"durationInSec"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int64
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Optional
	ParamsMaxCapacity int64 `json:"paramsMaxCapacity"`

	// +kubebuilder:validation:Optional
	SpecificItems []SpecificValue `json:"specificItems"`
}

func (*HotspotRule) DeepCopy

func (in *HotspotRule) DeepCopy() *HotspotRule

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

func (*HotspotRule) DeepCopyInto

func (in *HotspotRule) DeepCopyInto(out *HotspotRule)

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

type HotspotRules

type HotspotRules struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   HotspotRulesSpec   `json:"spec,omitempty"`
	Status HotspotRulesStatus `json:"status,omitempty"`
}

HotspotRules is the Schema for the hotspotrules API

func (*HotspotRules) DeepCopy

func (in *HotspotRules) DeepCopy() *HotspotRules

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

func (*HotspotRules) DeepCopyInto

func (in *HotspotRules) DeepCopyInto(out *HotspotRules)

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

func (*HotspotRules) DeepCopyObject

func (in *HotspotRules) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type HotspotRulesList

type HotspotRulesList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []HotspotRules `json:"items"`
}

HotspotRulesList contains a list of HotspotRules

func (*HotspotRulesList) DeepCopy

func (in *HotspotRulesList) DeepCopy() *HotspotRulesList

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

func (*HotspotRulesList) DeepCopyInto

func (in *HotspotRulesList) DeepCopyInto(out *HotspotRulesList)

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

func (*HotspotRulesList) DeepCopyObject

func (in *HotspotRulesList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type HotspotRulesSpec

type HotspotRulesSpec struct {

	// +kubebuilder:validation:Type=array
	// +kubebuilder:validation:Optional
	Rules []HotspotRule `json:"rules"`
}

HotspotRulesSpec defines the desired state of HotspotRules

func (*HotspotRulesSpec) DeepCopy

func (in *HotspotRulesSpec) DeepCopy() *HotspotRulesSpec

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

func (*HotspotRulesSpec) DeepCopyInto

func (in *HotspotRulesSpec) DeepCopyInto(out *HotspotRulesSpec)

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

type HotspotRulesStatus

type HotspotRulesStatus struct {
}

HotspotRulesStatus defines the observed state of HotspotRules

func (*HotspotRulesStatus) DeepCopy

func (in *HotspotRulesStatus) DeepCopy() *HotspotRulesStatus

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

func (*HotspotRulesStatus) DeepCopyInto

func (in *HotspotRulesStatus) DeepCopyInto(out *HotspotRulesStatus)

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

type IsolationRule

type IsolationRule struct {
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:MinLength=0
	// +kubebuilder:validation:MaxLength=32
	// +kubebuilder:validation:Optional
	ID string `json:"id,omitempty"`

	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=64
	// +kubebuilder:validation:Required
	Resource string `json:"resource"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int32
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Required
	Threshold int32 `json:"threshold"`
}

func (*IsolationRule) DeepCopy

func (in *IsolationRule) DeepCopy() *IsolationRule

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

func (*IsolationRule) DeepCopyInto

func (in *IsolationRule) DeepCopyInto(out *IsolationRule)

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

type IsolationRules

type IsolationRules struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   IsolationRulesSpec   `json:"spec,omitempty"`
	Status IsolationRulesStatus `json:"status,omitempty"`
}

IsolationRules is the Schema for the isolationrules API

func (*IsolationRules) DeepCopy

func (in *IsolationRules) DeepCopy() *IsolationRules

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

func (*IsolationRules) DeepCopyInto

func (in *IsolationRules) DeepCopyInto(out *IsolationRules)

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

func (*IsolationRules) DeepCopyObject

func (in *IsolationRules) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type IsolationRulesList

type IsolationRulesList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []IsolationRules `json:"items"`
}

IsolationRulesList contains a list of IsolationRules

func (*IsolationRulesList) DeepCopy

func (in *IsolationRulesList) DeepCopy() *IsolationRulesList

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

func (*IsolationRulesList) DeepCopyInto

func (in *IsolationRulesList) DeepCopyInto(out *IsolationRulesList)

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

func (*IsolationRulesList) DeepCopyObject

func (in *IsolationRulesList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type IsolationRulesSpec

type IsolationRulesSpec struct {

	// +kubebuilder:validation:Type=array
	// +kubebuilder:validation:Optional
	Rules []IsolationRule `json:"rules"`
}

IsolationRulesSpec defines the desired state of IsolationRules

func (*IsolationRulesSpec) DeepCopy

func (in *IsolationRulesSpec) DeepCopy() *IsolationRulesSpec

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

func (*IsolationRulesSpec) DeepCopyInto

func (in *IsolationRulesSpec) DeepCopyInto(out *IsolationRulesSpec)

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

type IsolationRulesStatus

type IsolationRulesStatus struct {
}

IsolationRulesStatus defines the observed state of IsolationRules

func (*IsolationRulesStatus) DeepCopy

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

func (*IsolationRulesStatus) DeepCopyInto

func (in *IsolationRulesStatus) DeepCopyInto(out *IsolationRulesStatus)

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

type SpecificValue

type SpecificValue struct {
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Enum=KindInt;KindString;KindBool;KindFloat64
	// +kubebuilder:validation:Required
	ValKind string `json:"valKind"`

	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	ValStr string `json:"valStr"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int64
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Required
	Threshold int64 `json:"threshold"`
}

func (*SpecificValue) DeepCopy

func (in *SpecificValue) DeepCopy() *SpecificValue

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

func (*SpecificValue) DeepCopyInto

func (in *SpecificValue) DeepCopyInto(out *SpecificValue)

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

type SystemRule

type SystemRule struct {
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:MinLength=0
	// +kubebuilder:validation:MaxLength=32
	// +kubebuilder:validation:Optional
	Id string `json:"id,omitempty"`

	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Enum=Load;AvgRT;Concurrency;InboundQPS;CpuUsage
	// +kubebuilder:validation:Required
	MetricType string `json:"metricType"`

	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Enum=NoAdaptive;BBR
	// +kubebuilder:validation:Required
	Strategy string `json:"strategy"`

	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Format=int64
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Required
	TriggerCount int64 `json:"triggerCount"`
}

func (*SystemRule) DeepCopy

func (in *SystemRule) DeepCopy() *SystemRule

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

func (*SystemRule) DeepCopyInto

func (in *SystemRule) DeepCopyInto(out *SystemRule)

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

type SystemRules

type SystemRules struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   SystemRulesSpec   `json:"spec,omitempty"`
	Status SystemRulesStatus `json:"status,omitempty"`
}

SystemRules is the Schema for the systemrules API

func (*SystemRules) DeepCopy

func (in *SystemRules) DeepCopy() *SystemRules

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

func (*SystemRules) DeepCopyInto

func (in *SystemRules) DeepCopyInto(out *SystemRules)

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

func (*SystemRules) DeepCopyObject

func (in *SystemRules) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SystemRulesList

type SystemRulesList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SystemRules `json:"items"`
}

SystemRulesList contains a list of SystemRules

func (*SystemRulesList) DeepCopy

func (in *SystemRulesList) DeepCopy() *SystemRulesList

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

func (*SystemRulesList) DeepCopyInto

func (in *SystemRulesList) DeepCopyInto(out *SystemRulesList)

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

func (*SystemRulesList) DeepCopyObject

func (in *SystemRulesList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SystemRulesSpec

type SystemRulesSpec struct {

	// +kubebuilder:validation:Type=array
	// +kubebuilder:validation:Optional
	Rules []SystemRule `json:"rules"`
}

SystemRulesSpec defines the desired state of SystemRules

func (*SystemRulesSpec) DeepCopy

func (in *SystemRulesSpec) DeepCopy() *SystemRulesSpec

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

func (*SystemRulesSpec) DeepCopyInto

func (in *SystemRulesSpec) DeepCopyInto(out *SystemRulesSpec)

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

type SystemRulesStatus

type SystemRulesStatus struct {
}

SystemRulesStatus defines the observed state of SystemRules

func (*SystemRulesStatus) DeepCopy

func (in *SystemRulesStatus) DeepCopy() *SystemRulesStatus

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

func (*SystemRulesStatus) DeepCopyInto

func (in *SystemRulesStatus) DeepCopyInto(out *SystemRulesStatus)

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