Documentation
¶
Index ¶
- type DirectoryClient
- type PrometheusAlertClient
- func (_m *PrometheusAlertClient) BulkUpdateRules(filePrefix string, rules []rulefmt.Rule) (alert.BulkUpdateResults, error)
- func (_m *PrometheusAlertClient) DeleteRule(filePrefix string, ruleName string) error
- func (_m *PrometheusAlertClient) ReadRules(filePrefix string, ruleName string) ([]rulefmt.Rule, error)
- func (_m *PrometheusAlertClient) ReloadPrometheus() error
- func (_m *PrometheusAlertClient) RuleExists(filePrefix string, rulename string) bool
- func (_m *PrometheusAlertClient) Tenancy() alert.TenancyConfig
- func (_m *PrometheusAlertClient) UpdateRule(filePrefix string, rule rulefmt.Rule) error
- func (_m *PrometheusAlertClient) ValidateRule(rule rulefmt.Rule) error
- func (_m *PrometheusAlertClient) WriteRule(filePrefix string, rule rulefmt.Rule) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectoryClient ¶
DirectoryClient is an autogenerated mock type for the DirectoryClient type
func (*DirectoryClient) Dir ¶
func (_m *DirectoryClient) Dir() string
Dir provides a mock function with given fields:
func (*DirectoryClient) Mkdir ¶
func (_m *DirectoryClient) Mkdir(perm os.FileMode) error
Mkdir provides a mock function with given fields: perm
type PrometheusAlertClient ¶
PrometheusAlertClient is an autogenerated mock type for the PrometheusAlertClient type
func (*PrometheusAlertClient) BulkUpdateRules ¶
func (_m *PrometheusAlertClient) BulkUpdateRules(filePrefix string, rules []rulefmt.Rule) (alert.BulkUpdateResults, error)
BulkUpdateRules provides a mock function with given fields: filePrefix, rules
func (*PrometheusAlertClient) DeleteRule ¶
func (_m *PrometheusAlertClient) DeleteRule(filePrefix string, ruleName string) error
DeleteRule provides a mock function with given fields: filePrefix, ruleName
func (*PrometheusAlertClient) ReadRules ¶
func (_m *PrometheusAlertClient) ReadRules(filePrefix string, ruleName string) ([]rulefmt.Rule, error)
ReadRules provides a mock function with given fields: filePrefix, ruleName
func (*PrometheusAlertClient) ReloadPrometheus ¶
func (_m *PrometheusAlertClient) ReloadPrometheus() error
ReloadPrometheus provides a mock function with given fields:
func (*PrometheusAlertClient) RuleExists ¶
func (_m *PrometheusAlertClient) RuleExists(filePrefix string, rulename string) bool
RuleExists provides a mock function with given fields: filePrefix, rulename
func (*PrometheusAlertClient) Tenancy ¶
func (_m *PrometheusAlertClient) Tenancy() alert.TenancyConfig
Tenancy provides a mock function with given fields:
func (*PrometheusAlertClient) UpdateRule ¶
func (_m *PrometheusAlertClient) UpdateRule(filePrefix string, rule rulefmt.Rule) error
UpdateRule provides a mock function with given fields: filePrefix, rule
func (*PrometheusAlertClient) ValidateRule ¶
func (_m *PrometheusAlertClient) ValidateRule(rule rulefmt.Rule) error
ValidateRule provides a mock function with given fields: rule