Rule engine

MSR uses a rule engine to evaluate policies, such as tag pruning and image enforcement.

The rule engine includes the following operators:

  • greater than or equals

  • greater than

  • equals

  • not equals

  • less than or equals

  • less than

  • starts with

  • ends with

  • contains

  • one of

  • not one of

  • matches

  • before

  • after

Note

The matches operator matches subject fields to a user-provided regular expression (regex). The regex for matches must follow the specification in the Package syntax page of the Go documentation.

The following policies all use the rule engine: