policy

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: MPL-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy struct {
	DistributionStrategy distributor.DistributionStrategy
}

Policy represents an algorithm used to decide which collectorset should be used.

func (*Policy) Validated

func (p *Policy) Validated(req *api.CollectorIDRequest) bool

Validated validates a policy. TODO: Validated should rank a policy based on the request on a scale that can be used to compare requests that match multiple polices.

Jump to

Keyboard shortcuts

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