Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilesystemRuleFinder ¶ added in v0.5.4
type FilesystemRuleFinder struct {
// contains filtered or unexported fields
}
func NewFilesystemRuleFinder ¶ added in v0.5.4
func NewFilesystemRuleFinder(config *v1beta1.FilesystemRulesSpec, opts ...FilesystemRuleFinderOption) *FilesystemRuleFinder
type FilesystemRuleFinderOption ¶ added in v0.5.4
type FilesystemRuleFinderOption func(*staticRuleFinderOptions)
func WithFS ¶ added in v0.5.4
func WithFS(fs fs.FS) FilesystemRuleFinderOption
type PrometheusRuleFinder ¶
type PrometheusRuleFinder struct { PrometheusRuleFinderOptions // contains filtered or unexported fields }
PrometheusRuleFinder can find rules defined in PrometheusRule CRDs.
func NewPrometheusRuleFinder ¶
func NewPrometheusRuleFinder(k8sClient client.Client, opts ...PrometheusRuleFinderOption) *PrometheusRuleFinder
type PrometheusRuleFinderOption ¶
type PrometheusRuleFinderOption func(*PrometheusRuleFinderOptions)
func WithLogger ¶
func WithLogger(lg *zap.SugaredLogger) PrometheusRuleFinderOption
func WithNamespaces ¶
func WithNamespaces(namespaces ...string) PrometheusRuleFinderOption
type PrometheusRuleFinderOptions ¶
type PrometheusRuleFinderOptions struct {
// contains filtered or unexported fields
}
type RuleGroup ¶ added in v0.5.4
Alias so we can implement the Finder[T] interface on Prometheus' rulefmt.RuleGroup
type RuleGroupList ¶ added in v0.5.4
type RuleGroupList []RuleGroup
Click to show internal directories.
Click to hide internal directories.