mocks

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	mock.Mock
}

API is an autogenerated mock type for the API type

func (*API) AlertManagers

func (_m *API) AlertManagers(ctx context.Context) (v1.AlertManagersResult, error)

AlertManagers provides a mock function with given fields: ctx

func (*API) CleanTombstones

func (_m *API) CleanTombstones(ctx context.Context) error

CleanTombstones provides a mock function with given fields: ctx

func (*API) Config

func (_m *API) Config(ctx context.Context) (v1.ConfigResult, error)

Config provides a mock function with given fields: ctx

func (*API) DeleteSeries

func (_m *API) DeleteSeries(ctx context.Context, matches []string, startTime time.Time, endTime time.Time) error

DeleteSeries provides a mock function with given fields: ctx, matches, startTime, endTime

func (*API) Flags

func (_m *API) Flags(ctx context.Context) (v1.FlagsResult, error)

Flags provides a mock function with given fields: ctx

func (*API) LabelValues

func (_m *API) LabelValues(ctx context.Context, label string) (model.LabelValues, error)

LabelValues provides a mock function with given fields: ctx, label

func (*API) Query

func (_m *API) Query(ctx context.Context, query string, ts time.Time) (model.Value, error)

Query provides a mock function with given fields: ctx, query, ts

func (*API) QueryRange

func (_m *API) QueryRange(ctx context.Context, query string, r v1.Range) (model.Value, error)

QueryRange provides a mock function with given fields: ctx, query, r

func (*API) Rules added in v0.2.1

func (_m *API) Rules(ctx context.Context) (v1.RulesResult, error)

Rules provides a mock function with given fields: ctx

func (*API) Series

func (_m *API) Series(ctx context.Context, matches []string, startTime time.Time, endTime time.Time) ([]model.LabelSet, error)

Series provides a mock function with given fields: ctx, matches, startTime, endTime

func (*API) Snapshot

func (_m *API) Snapshot(ctx context.Context, skipHead bool) (v1.SnapshotResult, error)

Snapshot provides a mock function with given fields: ctx, skipHead

func (*API) Targets

func (_m *API) Targets(ctx context.Context) (v1.TargetsResult, error)

Targets provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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