policy

package
v0.2.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 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