SetRulesConfig does a compare-and-swap (CAS) on the user's rules config. `oldConfig` must precisely match the current config in order to change the config to `newConfig`. Will return `true` if the config was updated, `false` otherwise.
(ctx context.Context, userID string, oldConfig, newConfig userconfig.RulesConfig)
| 39 | // `oldConfig` must precisely match the current config in order to change the config to `newConfig`. |
| 40 | // Will return `true` if the config was updated, `false` otherwise. |
| 41 | SetRulesConfig(ctx context.Context, userID string, oldConfig, newConfig userconfig.RulesConfig) (bool, error) |
| 42 | |
| 43 | // GetAllRulesConfigs gets all of the ruler configs |
| 44 | GetAllRulesConfigs(ctx context.Context) (map[string]userconfig.VersionedRulesConfig, error) |