controllers

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RateLimitServiceReconciler

type RateLimitServiceReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

RateLimitService reconciles a RateLimitService object

func (*RateLimitServiceReconciler) Reconcile

Reconcile RateLimitServices

func (*RateLimitServiceReconciler) SetupWithManager

SetupWithManager adding controllers

type RateLimitServiceReconcilerOptions

type RateLimitServiceReconcilerOptions struct {
	MaxConcurrentReconciles int
}

type YamlDescriptor

type YamlDescriptor struct {
	Key            string
	Value          string            `yaml:"value,omitempty"`
	RateLimit      *YamlRateLimit    `yaml:"rate_limit,omitempty"`
	Descriptors    []*YamlDescriptor `yaml:"descriptors,omitempty"`
	ShadowMode     bool              `yaml:"shadow_mode,omitempty"`
	DetailedMetric bool              `yaml:"detailed_metric,omitempty"`
}

type YamlRateLimit

type YamlRateLimit struct {
	RequestsPerUnit uint32 `yaml:"requests_per_unit"`
	Unit            string
	Unlimited       bool `yaml:"unlimited,omitempty"`
	Name            string
	Replaces        []yamlReplaces `yaml:"replaces,omitempty"`
}

type YamlRoot

type YamlRoot struct {
	Domain      string
	Descriptors []*YamlDescriptor
}

Jump to

Keyboard shortcuts

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