filter

package
v0.3.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyFilters

func ApplyFilters(filters []Filter, config *types.TaskConfig, replicas int, agents []*magent.Agent) ([]*magent.Agent, error)

the returned agents contains at least one proper agent

func NewConstraintsFilter

func NewConstraintsFilter() *constraintsFilter

func NewResourceFilter

func NewResourceFilter() *resourceFilter

Types

type Filter

type Filter interface {
	Filter(config *types.TaskConfig, replicas int, agents []*magent.Agent) ([]*magent.Agent, error)
}

Jump to

Keyboard shortcuts

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