Documentation ¶
Overview ¶
Package mock_v1 is a generated GoMock package.
Index ¶
- type MockAPI
- func (m MockAPI) AlertManagers(ctx context.Context) (v1.AlertManagersResult, error)
- func (m MockAPI) Alerts(ctx context.Context) (v1.AlertsResult, error)
- func (m MockAPI) Buildinfo(ctx context.Context) (v1.BuildinfoResult, error)
- func (m *MockAPI) CleanTombstones(ctx context.Context) error
- func (m *MockAPI) Config(ctx context.Context) (v1.ConfigResult, error)
- func (m *MockAPI) DeleteSeries(ctx context.Context, matches []string, startTime, endTime time.Time) error
- func (m *MockAPI) EXPECT() *MockAPIMockRecorder
- func (m MockAPI) Flags(ctx context.Context) (v1.FlagsResult, error)
- func (m MockAPI) LabelNames(ctx context.Context, matches []string, startTime, endTime time.Time) ([]string, v1.Warnings, error)
- func (m MockAPI) LabelValues(ctx context.Context, label string, matches []string, ...) (model.LabelValues, v1.Warnings, error)
- func (m MockAPI) Metadata(ctx context.Context, metric, limit string) (map[string][]v1.Metadata, error)
- func (m *MockAPI) Query(ctx context.Context, query string, ts time.Time) (model.Value, v1.Warnings, error)
- func (m MockAPI) QueryExemplars(ctx context.Context, query string, startTime, endTime time.Time) ([]v1.ExemplarQueryResult, error)
- func (m MockAPI) QueryRange(ctx context.Context, query string, r v1.Range) (model.Value, v1.Warnings, error)
- func (m MockAPI) Rules(ctx context.Context) (v1.RulesResult, error)
- func (m MockAPI) Runtimeinfo(ctx context.Context) (v1.RuntimeinfoResult, error)
- func (m MockAPI) Series(ctx context.Context, matches []string, startTime, endTime time.Time) ([]model.LabelSet, v1.Warnings, error)
- func (m MockAPI) Snapshot(ctx context.Context, skipHead bool) (v1.SnapshotResult, error)
- func (m *MockAPI) TSDB(ctx context.Context) (v1.TSDBResult, error)
- func (m MockAPI) Targets(ctx context.Context) (v1.TargetsResult, error)
- func (m MockAPI) TargetsMetadata(ctx context.Context, matchTarget, metric, limit string) ([]v1.MetricMetadata, error)
- type MockAPIMockRecorder
- func (mr *MockAPIMockRecorder) AlertManagers(ctx interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) Alerts(ctx interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) Buildinfo(ctx interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) CleanTombstones(ctx interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) Config(ctx interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) DeleteSeries(ctx, matches, startTime, endTime interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) Flags(ctx interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) LabelNames(ctx, matches, startTime, endTime interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) LabelValues(ctx, label, matches, startTime, endTime interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) Metadata(ctx, metric, limit interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) Query(ctx, query, ts interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) QueryExemplars(ctx, query, startTime, endTime interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) QueryRange(ctx, query, r interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) Rules(ctx interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) Runtimeinfo(ctx interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) Series(ctx, matches, startTime, endTime interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) Snapshot(ctx, skipHead interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) TSDB(ctx interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) Targets(ctx interface{}) *gomock.Call
- func (mr *MockAPIMockRecorder) TargetsMetadata(ctx, matchTarget, metric, limit interface{}) *gomock.Call
- type MockapiClient
- func (m *MockapiClient) Do(arg0 context.Context, arg1 *http.Request) (*http.Response, []byte, v1.Warnings, error)
- func (m *MockapiClient) DoGetFallback(ctx context.Context, u *url.URL, args url.Values) (*http.Response, []byte, v1.Warnings, error)
- func (m *MockapiClient) EXPECT() *MockapiClientMockRecorder
- func (m *MockapiClient) URL(ep string, args map[string]string) *url.URL
- type MockapiClientMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPI ¶
type MockAPI struct {
// contains filtered or unexported fields
}
MockAPI is a mock of API interface.
func NewMockAPI ¶
func NewMockAPI(ctrl *gomock.Controller) *MockAPI
NewMockAPI creates a new mock instance.
func (MockAPI) AlertManagers ¶
AlertManagers mocks base method.
func (*MockAPI) CleanTombstones ¶
CleanTombstones mocks base method.
func (*MockAPI) DeleteSeries ¶
func (m *MockAPI) DeleteSeries(ctx context.Context, matches []string, startTime, endTime time.Time) error
DeleteSeries mocks base method.
func (*MockAPI) EXPECT ¶
func (m *MockAPI) EXPECT() *MockAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (MockAPI) LabelNames ¶
func (m MockAPI) LabelNames(ctx context.Context, matches []string, startTime, endTime time.Time) ([]string, v1.Warnings, error)
LabelNames mocks base method.
func (MockAPI) LabelValues ¶
func (m MockAPI) LabelValues(ctx context.Context, label string, matches []string, startTime, endTime time.Time) (model.LabelValues, v1.Warnings, error)
LabelValues mocks base method.
func (MockAPI) Metadata ¶
func (m MockAPI) Metadata(ctx context.Context, metric, limit string) (map[string][]v1.Metadata, error)
Metadata mocks base method.
func (*MockAPI) Query ¶
func (m *MockAPI) Query(ctx context.Context, query string, ts time.Time) (model.Value, v1.Warnings, error)
Query mocks base method.
func (MockAPI) QueryExemplars ¶
func (m MockAPI) QueryExemplars(ctx context.Context, query string, startTime, endTime time.Time) ([]v1.ExemplarQueryResult, error)
QueryExemplars mocks base method.
func (MockAPI) QueryRange ¶
func (m MockAPI) QueryRange(ctx context.Context, query string, r v1.Range) (model.Value, v1.Warnings, error)
QueryRange mocks base method.
func (MockAPI) Runtimeinfo ¶
Runtimeinfo mocks base method.
func (MockAPI) Series ¶
func (m MockAPI) Series(ctx context.Context, matches []string, startTime, endTime time.Time) ([]model.LabelSet, v1.Warnings, error)
Series mocks base method.
func (MockAPI) TargetsMetadata ¶
func (m MockAPI) TargetsMetadata(ctx context.Context, matchTarget, metric, limit string) ([]v1.MetricMetadata, error)
TargetsMetadata mocks base method.
type MockAPIMockRecorder ¶
type MockAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIMockRecorder is the mock recorder for MockAPI.
func (*MockAPIMockRecorder) AlertManagers ¶
func (mr *MockAPIMockRecorder) AlertManagers(ctx interface{}) *gomock.Call
AlertManagers indicates an expected call of AlertManagers.
func (*MockAPIMockRecorder) Alerts ¶
func (mr *MockAPIMockRecorder) Alerts(ctx interface{}) *gomock.Call
Alerts indicates an expected call of Alerts.
func (*MockAPIMockRecorder) Buildinfo ¶
func (mr *MockAPIMockRecorder) Buildinfo(ctx interface{}) *gomock.Call
Buildinfo indicates an expected call of Buildinfo.
func (*MockAPIMockRecorder) CleanTombstones ¶
func (mr *MockAPIMockRecorder) CleanTombstones(ctx interface{}) *gomock.Call
CleanTombstones indicates an expected call of CleanTombstones.
func (*MockAPIMockRecorder) Config ¶
func (mr *MockAPIMockRecorder) Config(ctx interface{}) *gomock.Call
Config indicates an expected call of Config.
func (*MockAPIMockRecorder) DeleteSeries ¶
func (mr *MockAPIMockRecorder) DeleteSeries(ctx, matches, startTime, endTime interface{}) *gomock.Call
DeleteSeries indicates an expected call of DeleteSeries.
func (*MockAPIMockRecorder) Flags ¶
func (mr *MockAPIMockRecorder) Flags(ctx interface{}) *gomock.Call
Flags indicates an expected call of Flags.
func (*MockAPIMockRecorder) LabelNames ¶
func (mr *MockAPIMockRecorder) LabelNames(ctx, matches, startTime, endTime interface{}) *gomock.Call
LabelNames indicates an expected call of LabelNames.
func (*MockAPIMockRecorder) LabelValues ¶
func (mr *MockAPIMockRecorder) LabelValues(ctx, label, matches, startTime, endTime interface{}) *gomock.Call
LabelValues indicates an expected call of LabelValues.
func (*MockAPIMockRecorder) Metadata ¶
func (mr *MockAPIMockRecorder) Metadata(ctx, metric, limit interface{}) *gomock.Call
Metadata indicates an expected call of Metadata.
func (*MockAPIMockRecorder) Query ¶
func (mr *MockAPIMockRecorder) Query(ctx, query, ts interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockAPIMockRecorder) QueryExemplars ¶
func (mr *MockAPIMockRecorder) QueryExemplars(ctx, query, startTime, endTime interface{}) *gomock.Call
QueryExemplars indicates an expected call of QueryExemplars.
func (*MockAPIMockRecorder) QueryRange ¶
func (mr *MockAPIMockRecorder) QueryRange(ctx, query, r interface{}) *gomock.Call
QueryRange indicates an expected call of QueryRange.
func (*MockAPIMockRecorder) Rules ¶
func (mr *MockAPIMockRecorder) Rules(ctx interface{}) *gomock.Call
Rules indicates an expected call of Rules.
func (*MockAPIMockRecorder) Runtimeinfo ¶
func (mr *MockAPIMockRecorder) Runtimeinfo(ctx interface{}) *gomock.Call
Runtimeinfo indicates an expected call of Runtimeinfo.
func (*MockAPIMockRecorder) Series ¶
func (mr *MockAPIMockRecorder) Series(ctx, matches, startTime, endTime interface{}) *gomock.Call
Series indicates an expected call of Series.
func (*MockAPIMockRecorder) Snapshot ¶
func (mr *MockAPIMockRecorder) Snapshot(ctx, skipHead interface{}) *gomock.Call
Snapshot indicates an expected call of Snapshot.
func (*MockAPIMockRecorder) TSDB ¶
func (mr *MockAPIMockRecorder) TSDB(ctx interface{}) *gomock.Call
TSDB indicates an expected call of TSDB.
func (*MockAPIMockRecorder) Targets ¶
func (mr *MockAPIMockRecorder) Targets(ctx interface{}) *gomock.Call
Targets indicates an expected call of Targets.
func (*MockAPIMockRecorder) TargetsMetadata ¶
func (mr *MockAPIMockRecorder) TargetsMetadata(ctx, matchTarget, metric, limit interface{}) *gomock.Call
TargetsMetadata indicates an expected call of TargetsMetadata.
type MockapiClient ¶
type MockapiClient struct {
// contains filtered or unexported fields
}
MockapiClient is a mock of apiClient interface.
func NewMockapiClient ¶
func NewMockapiClient(ctrl *gomock.Controller) *MockapiClient
NewMockapiClient creates a new mock instance.
func (*MockapiClient) Do ¶
func (m *MockapiClient) Do(arg0 context.Context, arg1 *http.Request) (*http.Response, []byte, v1.Warnings, error)
Do mocks base method.
func (*MockapiClient) DoGetFallback ¶
func (m *MockapiClient) DoGetFallback(ctx context.Context, u *url.URL, args url.Values) (*http.Response, []byte, v1.Warnings, error)
DoGetFallback mocks base method.
func (*MockapiClient) EXPECT ¶
func (m *MockapiClient) EXPECT() *MockapiClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockapiClientMockRecorder ¶
type MockapiClientMockRecorder struct {
// contains filtered or unexported fields
}
MockapiClientMockRecorder is the mock recorder for MockapiClient.
func (*MockapiClientMockRecorder) Do ¶
func (mr *MockapiClientMockRecorder) Do(arg0, arg1 interface{}) *gomock.Call
Do indicates an expected call of Do.
func (*MockapiClientMockRecorder) DoGetFallback ¶
func (mr *MockapiClientMockRecorder) DoGetFallback(ctx, u, args interface{}) *gomock.Call
DoGetFallback indicates an expected call of DoGetFallback.
func (*MockapiClientMockRecorder) URL ¶
func (mr *MockapiClientMockRecorder) URL(ep, args interface{}) *gomock.Call
URL indicates an expected call of URL.