dataplane

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PolicyModule

func PolicyModule() fx.Option

PolicyModule returns the fx options for dataplane side pieces of policy.

func ProvideEngineAPI

func ProvideEngineAPI() iface.Engine

ProvideEngineAPI Main fx app.

func ProvideResponseMetricsAPI added in v0.3.0

func ProvideResponseMetricsAPI(registry *prometheus.Registry, lifecycle fx.Lifecycle) iface.ResponseMetricsAPI

ProvideResponseMetricsAPI returns API for getting metrics observers.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine APIs to (1) Get schedulers given a service, control point and set of labels (2) Get flux meter histogram given a metric id.

func (*Engine) GetFluxMeter added in v0.1.3

func (e *Engine) GetFluxMeter(fluxMeterName string) iface.FluxMeter

GetFluxMeter Lookup function for getting flux meter.

func (*Engine) ProcessRequest

func (e *Engine) ProcessRequest(controlPoint selectors.ControlPoint, serviceIDs []string, labels map[string]string) (response *flowcontrolv1.CheckResponse)

ProcessRequest .

func (*Engine) RegisterConcurrencyLimiter

func (e *Engine) RegisterConcurrencyLimiter(cl iface.Limiter) error

RegisterConcurrencyLimiter adds concurrency limiter to multimatcher.

func (*Engine) RegisterFluxMeter

func (e *Engine) RegisterFluxMeter(fm iface.FluxMeter) error

RegisterFluxMeter adds fluxmeter to histogram map and multimatcher.

func (*Engine) RegisterRateLimiter

func (e *Engine) RegisterRateLimiter(rl iface.RateLimiter) error

RegisterRateLimiter adds limiter actuator to multimatcher.

func (*Engine) UnregisterConcurrencyLimiter

func (e *Engine) UnregisterConcurrencyLimiter(cl iface.Limiter) error

UnregisterConcurrencyLimiter removes concurrency limiter from multimatcher.

func (*Engine) UnregisterFluxMeter

func (e *Engine) UnregisterFluxMeter(fm iface.FluxMeter) error

UnregisterFluxMeter removes fluxmeter from histogram map and multimatcher.

func (*Engine) UnregisterRateLimiter

func (e *Engine) UnregisterRateLimiter(rl iface.RateLimiter) error

UnregisterRateLimiter removes limiter actuator from multimatcher.

Directories

Path Synopsis
resources
Companion package for github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/language/v1 containing conversions of proto-generated struct into golang ones and other helpers.
Companion package for github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/language/v1 containing conversions of proto-generated struct into golang ones and other helpers.

Jump to

Keyboard shortcuts

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