Documentation ¶
Index ¶
- type API
- func (_m *API) LabelNames(ctx context.Context, matches []string, startTime time.Time, endTime time.Time) ([]string, v1.Warnings, error)
- func (_m *API) LabelValues(ctx context.Context, label string, matches []string, startTime time.Time, ...) (model.LabelValues, v1.Warnings, error)
- func (_m *API) Query(ctx context.Context, query string, ts time.Time, opts ...v1.Option) (model.Value, v1.Warnings, error)
- func (_m *API) QueryRange(ctx context.Context, query string, r v1.Range, opts ...v1.Option) (model.Value, v1.Warnings, error)
- func (_m *API) Series(ctx context.Context, matches []string, startTime time.Time, endTime time.Time) ([]model.LabelSet, v1.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is an autogenerated mock type for the API type
func NewAPI ¶
func NewAPI(t mockConstructorTestingTNewAPI) *API
NewAPI creates a new instance of API. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*API) LabelNames ¶
func (_m *API) LabelNames(ctx context.Context, matches []string, startTime time.Time, endTime time.Time) ([]string, v1.Warnings, error)
LabelNames provides a mock function with given fields: ctx, matches, startTime, endTime
func (*API) LabelValues ¶
func (_m *API) LabelValues(ctx context.Context, label string, matches []string, startTime time.Time, endTime time.Time) (model.LabelValues, v1.Warnings, error)
LabelValues provides a mock function with given fields: ctx, label, matches, startTime, endTime
func (*API) Query ¶
func (_m *API) Query(ctx context.Context, query string, ts time.Time, opts ...v1.Option) (model.Value, v1.Warnings, error)
Query provides a mock function with given fields: ctx, query, ts, opts
Click to show internal directories.
Click to hide internal directories.