paths

package
v2.34.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.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")
	// StatusPrefix is key prefix in etcd for status.
	StatusPrefix = path.Join("/status")
	// PoliciesAPIConfigPath is config path in etcd for policies via API.
	PoliciesAPIConfigPath = path.Join(ConfigPrefix, "api", "policies")
	// PoliciesAPIDynamicConfigPath is config path in etcd for  dynamic configuration of policies via API.
	PoliciesAPIDynamicConfigPath = path.Join(ConfigPrefix, "api", "dynamic-config-policies")
	// PoliciesConfigPath is config path in etcd for policies.
	PoliciesConfigPath = path.Join(ConfigPrefix, "policies")
	// PoliciesDynamicConfigPath is config path in etcd for dynamic configuration of policies.
	PoliciesDynamicConfigPath = path.Join(ConfigPrefix, "dynamic-config-policies")
	// ClassifiersPath is config path in etcd for classifiers.
	ClassifiersPath = path.Join(ConfigPrefix, "classifiers")
	// LoadSchedulerConfigPath is config path in etcd for load scheduler.
	LoadSchedulerConfigPath = path.Join(ConfigPrefix, "load_scheduler")
	// LoadSchedulerDecisionsPath is decision path in etcd for load decisions.
	LoadSchedulerDecisionsPath = path.Join(DecisionsPrefix, "load_scheduler")
	// RateLimiterConfigPath is config path in etcd for rate limiter.
	RateLimiterConfigPath = path.Join(ConfigPrefix, "rate_limiter")
	// RateLimiterDecisionsPath is decision path in etcd for rate limiter decisions.
	RateLimiterDecisionsPath = path.Join(DecisionsPrefix, "rate_limiter")
	// QuotaSchedulerConfigPath is config path in etcd for quota scheduler.
	QuotaSchedulerConfigPath = path.Join(ConfigPrefix, "quota_scheduler")
	// QuotaSchedulerDecisionsPath is decision path in etcd for quota scheduler decisions.
	QuotaSchedulerDecisionsPath = path.Join(DecisionsPrefix, "quota_scheduler")
	// ConcurrencyLimiterConfigPath is config path in etcd for concurrency limiter.
	ConcurrencyLimiterConfigPath = path.Join(ConfigPrefix, "concurrency_limiter")
	// ConcurrencyLimiterDecisionsPath is decision path in etcd for concurrency limiter decisions.
	ConcurrencyLimiterDecisionsPath = path.Join(DecisionsPrefix, "concurrency_limiter")
	// ConcurrencySchedulerConfigPath is config path in etcd for concurrency scheduler.
	ConcurrencySchedulerConfigPath = path.Join(ConfigPrefix, "concurrency_scheduler")
	// ConcurrencySchedulerDecisionsPath is decision path in etcd for concurrency scheduler decisions.
	ConcurrencySchedulerDecisionsPath = path.Join(DecisionsPrefix, "concurrency_scheduler")
	// FluxMeterConfigPath is config path in etcd for flux meters.
	FluxMeterConfigPath = path.Join(ConfigPrefix, "flux_meter")
	// InfraMeterConfigPath is config path in etcd for infra meter.
	InfraMeterConfigPath = path.Join(ConfigPrefix, "infra_meter")
	// PodScalerConfigPath is config path in etcd for pod scaler.
	PodScalerConfigPath = path.Join(ConfigPrefix, "pod_scaler")
	// PodScalerDecisionsPath is decision path in etcd for pod scaler decisions.
	PodScalerDecisionsPath = path.Join(DecisionsPrefix, "pod_scaler")
	// PodScalerStatusPath is decision path in etcd for pod scaler status.
	PodScalerStatusPath = path.Join(StatusPrefix, "pod_scaler")
	// SamplerConfigPath is config path in etcd for sampler.
	SamplerConfigPath = path.Join(ConfigPrefix, "sampler")
	// SamplerDecisionsPath is decision path in etcd for sampler decisions.
	SamplerDecisionsPath = path.Join(DecisionsPrefix, "sampler")
	// PeersPrefix is the prefix for peers path in etcd.
	PeersPrefix = path.Join("/peers")
	// AgentPeerPath is path in etcd for agent peers.
	AgentPeerPath = path.Join(PeersPrefix, "aperture-agent")
)

Functions

func AgentComponentKey

func AgentComponentKey(agentGroupName, policyName string, componentID string) string

AgentComponentKey returns the identifier for a Component in etcd.

func AgentGroupPrefix

func AgentGroupPrefix(agentGroupName string) string

AgentGroupPrefix returns the prefix for an agent group.

func ClassifierKey

func ClassifierKey(agentGroupName, policyName string, classifierIndex int) string

ClassifierKey returns the identifier for a Classifier in etcd.

func FluxMeterKey

func FluxMeterKey(agentGroupName, fluxMeterName string) string

FluxMeterKey returns the identifier for FluxMeter in etcd.

func InfraMeterKey added in v2.6.0

func InfraMeterKey(agentGroupName, policyName, infraMeterName string) string

InfraMeterKey returns the identifier for InfraMeter 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