controllers

package
v0.0.0-...-437898f Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SlowRequestRatioStrategy string = "SlowRequestRatio"
	ErrorRatioStrategy       string = "ErrorRatio"
	ErrorCountStrategy       string = "ErrorCount"
)
View Source
const (
	CurrentResourceRelationStrategy    string = "CurrentResource"
	AssociatedResourceRelationStrategy string = "AssociatedResource"

	DirectTokenCalculateStrategy string = "Direct"
	WarmUpTokenCalculateStrategy string = "WarmUp"

	RejectControlBehavior     string = "Reject"
	ThrottlingControlBehavior string = "Throttling"
)
View Source
const (
	ConcurrencyMetricType string = "Concurrency"
	QPSMetricType         string = "QPS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CircuitBreakerRulesReconciler

type CircuitBreakerRulesReconciler struct {
	client.Client
	Logger         logr.Logger
	Scheme         *runtime.Scheme
	Namespace      string
	ExpectedCrName string
}

CircuitBreakerRulesReconciler reconciles a CircuitBreakerRules object

func (*CircuitBreakerRulesReconciler) Reconcile

func (*CircuitBreakerRulesReconciler) SetupWithManager

func (r *CircuitBreakerRulesReconciler) SetupWithManager(mgr ctrl.Manager) error

type FlowRulesReconciler

type FlowRulesReconciler struct {
	client.Client
	Logger         logr.Logger
	Scheme         *runtime.Scheme
	Namespace      string
	ExpectedCrName string
}

FlowRulesReconciler reconciles a FlowRules object

func (*FlowRulesReconciler) Reconcile

func (r *FlowRulesReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*FlowRulesReconciler) SetupWithManager

func (r *FlowRulesReconciler) SetupWithManager(mgr ctrl.Manager) error

type HotspotRulesReconciler

type HotspotRulesReconciler struct {
	client.Client
	Logger         logr.Logger
	Scheme         *runtime.Scheme
	Namespace      string
	ExpectedCrName string
}

HotspotRulesReconciler reconciles a HotspotRules object

func (*HotspotRulesReconciler) Reconcile

func (r *HotspotRulesReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

+kubebuilder:rbac:groups=datasource.sentinel.io,resources=hotspotrules,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=datasource.sentinel.io,resources=hotspotrules/status,verbs=get;update;patch

func (*HotspotRulesReconciler) SetupWithManager

func (r *HotspotRulesReconciler) SetupWithManager(mgr ctrl.Manager) error

type IsolationRulesReconciler

type IsolationRulesReconciler struct {
	client.Client
	Logger         logr.Logger
	Scheme         *runtime.Scheme
	Namespace      string
	ExpectedCrName string
}

IsolationRulesReconciler reconciles a IsolationRules object

func (*IsolationRulesReconciler) Reconcile

func (r *IsolationRulesReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*IsolationRulesReconciler) SetupWithManager

func (r *IsolationRulesReconciler) SetupWithManager(mgr ctrl.Manager) error

type SystemRulesReconciler

type SystemRulesReconciler struct {
	client.Client
	Logger         logr.Logger
	Scheme         *runtime.Scheme
	Namespace      string
	ExpectedCrName string
}

SystemRulesReconciler reconciles a SystemRules object

func (*SystemRulesReconciler) Reconcile

func (r *SystemRulesReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*SystemRulesReconciler) SetupWithManager

func (r *SystemRulesReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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