MCPcopy Create free account
hub / github.com/cortexproject/cortex / GetRulesConfig

Method GetRulesConfig

pkg/configs/db/db.go:36–36  ·  view source on GitHub ↗

GetRulesConfig gets the user's ruler config

(ctx context.Context, userID string)

Source from the content-addressed store, hash-verified

34type DB interface {
35 // GetRulesConfig gets the user's ruler config
36 GetRulesConfig(ctx context.Context, userID string) (userconfig.VersionedRulesConfig, error)
37
38 // SetRulesConfig does a compare-and-swap (CAS) on the user's rules config.
39 // `oldConfig` must precisely match the current config in order to change the config to `newConfig`.

Callers 2

GetRulesConfigMethod · 0.65
GetRulesConfigMethod · 0.65

Implementers 4

timedpkg/configs/db/timed.go
tracedpkg/configs/db/traced.go
DBpkg/configs/db/postgres/postgres.go
DBpkg/configs/db/memory/memory.go

Calls

no outgoing calls

Tested by

no test coverage detected