resourcefilters

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any(r *mesos.Resource) bool

func PersistentVolumes

func PersistentVolumes(r *mesos.Resource) bool

func Range

func Range(r *mesos.Resource) bool

func Revocable

func Revocable(r *mesos.Resource) bool

func Scalar

func Scalar(r *mesos.Resource) bool

func Select

func Select(rf Interface, resources ...mesos.Resource) (result mesos.Resources)

func Set

func Set(r *mesos.Resource) bool

func Unreserved

func Unreserved(r *mesos.Resource) bool

Types

type Filter

type Filter func(*mesos.Resource) bool

func ReservedByRole

func ReservedByRole(role string) Filter

func (Filter) Accepts

func (f Filter) Accepts(r *mesos.Resource) bool

func (Filter) And

func (f Filter) And(other Filter) Filter

func (Filter) OrElse

func (f Filter) OrElse(other Filter) Filter

type Filters

type Filters []Filter

func New

func New(filters ...Filter) Filters

New concatenates the given filters

func (Filters) Accepts

func (rf Filters) Accepts(r *mesos.Resource) bool

type Interface

type Interface interface {
	Accepts(*mesos.Resource) bool
}

Jump to

Keyboard shortcuts

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