# Functions
CompareGroups differentiates between two rule groups.
CompareNamespaces returns the differences between the two provided namespaces.
Parse parses and validates a set of rules.
ParseFiles returns a formatted set of prometheus rule groups.
PrintComparisonResult prints the differences between the staged namespace and active namespace.
SummarizeChanges returns the number of each type of change in a set of changes.
ValidateRuleGroup validates a rulegroup.
# Constants
Created denotes their is not active namespace for the staged namespace.
Deleted denotes their is no staged namespace for the active namespace.
Unchanged denotes the active namespace is identical to the staged namespace.
Updated denotes the active namespace is different than the staged namespace.
# Structs
NamespaceChange stores the various changes between a staged set of changes and the active rules configs.
RuleNamespace is used to parse a slightly modified prometheus rule file format, if no namespace is set, the default namespace is used.
UpdatedRuleGroup is used to store an change between a rule group.
# Type aliases
NamespaceState is used to denote the difference between the staged namespace and active namespace for the Loki tenant.