constraints

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MarathonConstraintPrefix = "Traefik-Marathon-505F9E15-BDC7-45E7-828D-C06C7BAB8091"

MarathonConstraintPrefix is the prefix for each label's key created from a Marathon application constraint. It is used in order to create a specific and unique pattern for these labels.

Variables

This section is empty.

Functions

func Match

func Match(labels map[string]string, expr string) (bool, error)

Match reports whether the expression matches with the given labels. The expression must match any logical boolean combination of: - `Label(labelName, labelValue)` - `LabelRegex(labelName, regexValue)` - `MarathonConstraint(field:operator:value)`

Types

This section is empty.

Jump to

Keyboard shortcuts

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