constraints

package
v2.0.0-...-63d56cd Latest Latest
Warning

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

Go to latest
Published: Dec 20, 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 MatchLabels

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

MatchLabels 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)`

func MatchTags

func MatchTags(tags []string, expr string) (bool, error)

MatchTags reports whether the expression matches with the given tags. The expression must match any logical boolean combination of: - `Tag(tagValue)` - `TagRegex(regexValue)`

Types

This section is empty.

Jump to

Keyboard shortcuts

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