mocks

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectoryClient

type DirectoryClient struct {
	mock.Mock
}

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

func (*DirectoryClient) ReadDir

func (_m *DirectoryClient) ReadDir() ([]os.FileInfo, error)

ReadDir provides a mock function with given fields:

func (*DirectoryClient) Stat

func (_m *DirectoryClient) Stat() (os.FileInfo, error)

Stat provides a mock function with given fields:

type PrometheusAlertClient

type PrometheusAlertClient struct {
	mock.Mock
}

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

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

func (*PrometheusAlertClient) WriteRule

func (_m *PrometheusAlertClient) WriteRule(filePrefix string, rule rulefmt.Rule) error

WriteRule provides a mock function with given fields: filePrefix, rule

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL