paths

package
v0.1.1-rc.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ConfigPrefix is key prefix in etcd for config.
	ConfigPrefix = path.Join("/config")
	// DecisionsPrefix is key prefix in etcd for decisions.
	DecisionsPrefix = path.Join("/decisions")
	// Classifiers is config path in etcd for classifiers.
	Classifiers = path.Join(ConfigPrefix, "classifiers")
	// Policies is config path in etcd for policies.
	Policies = path.Join(ConfigPrefix, "policies")
	// LoadShedDecisionsPath is decision path in etcd for load shed decisions.
	LoadShedDecisionsPath = path.Join(DecisionsPrefix, "load_shed")
	// AutoTokenResultsPath is config path in etcd for query tokens.
	AutoTokenResultsPath = path.Join(ConfigPrefix, "tokens")
	// ConcurrencyLimiterConfigPath is config path in etcd for concurrency limiter.
	ConcurrencyLimiterConfigPath = path.Join(ConfigPrefix, "concurrency_limiter")
	// RateLimiterConfigPath is config path in etcd for concurrency limiter.
	RateLimiterConfigPath = path.Join(ConfigPrefix, "rate_limiter")
	// RateLimiterDecisionsPath is decision path in etcd for rate limiter decisions.
	RateLimiterDecisionsPath = path.Join(DecisionsPrefix, "rate_limiter")
	// FluxMeterConfigPath is config path in etcd for flux meters.
	FluxMeterConfigPath = path.Join(ConfigPrefix, "flux_meter")
)

Functions

func AgentGroupPrefix

func AgentGroupPrefix(agentGroupName string) string

AgentGroupPrefix returns the prefix for an agent group.

func ClassifierKey

func ClassifierKey(agentGroupName, classifierName string) string

ClassifierKey returns the identifier for a Classifier in etcd.

func DataplaneComponentKey

func DataplaneComponentKey(agentGroupName, policyName string, componentIndex int64) string

DataplaneComponentKey returns the identifier for a Component in etcd.

func FluxMeterKey

func FluxMeterKey(agentGroupName, policyName, fluxMeterName string) string

FluxMeterKey returns the identifier for FluxMeter in etcd.

func PolicyPrefix

func PolicyPrefix(agentGroupName, policyName string) string

PolicyPrefix returns the prefix for a policy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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