juju: github.com/juju/juju/apiserver/observer/metricobserver/mocks Index | Files

package mocks

import "github.com/juju/juju/apiserver/observer/metricobserver/mocks"

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Package Files

metrics_collector_mock.go metrics_mock.go

type MockCounter Uses

type MockCounter struct {
    // contains filtered or unexported fields
}

MockCounter is a mock of Counter interface

func NewMockCounter Uses

func NewMockCounter(ctrl *gomock.Controller) *MockCounter

NewMockCounter creates a new mock instance

func (*MockCounter) Add Uses

func (m *MockCounter) Add(arg0 float64)

Add mocks base method

func (*MockCounter) Collect Uses

func (m *MockCounter) Collect(arg0 chan<- prometheus.Metric)

Collect mocks base method

func (*MockCounter) Desc Uses

func (m *MockCounter) Desc() *prometheus.Desc

Desc mocks base method

func (*MockCounter) Describe Uses

func (m *MockCounter) Describe(arg0 chan<- *prometheus.Desc)

Describe mocks base method

func (*MockCounter) EXPECT Uses

func (m *MockCounter) EXPECT() *MockCounterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockCounter) Inc Uses

func (m *MockCounter) Inc()

Inc mocks base method

func (*MockCounter) Write Uses

func (m *MockCounter) Write(arg0 *go0.Metric) error

Write mocks base method

type MockCounterMockRecorder Uses

type MockCounterMockRecorder struct {
    // contains filtered or unexported fields
}

MockCounterMockRecorder is the mock recorder for MockCounter

func (*MockCounterMockRecorder) Add Uses

func (mr *MockCounterMockRecorder) Add(arg0 interface{}) *gomock.Call

Add indicates an expected call of Add

func (*MockCounterMockRecorder) Collect Uses

func (mr *MockCounterMockRecorder) Collect(arg0 interface{}) *gomock.Call

Collect indicates an expected call of Collect

func (*MockCounterMockRecorder) Desc Uses

func (mr *MockCounterMockRecorder) Desc() *gomock.Call

Desc indicates an expected call of Desc

func (*MockCounterMockRecorder) Describe Uses

func (mr *MockCounterMockRecorder) Describe(arg0 interface{}) *gomock.Call

Describe indicates an expected call of Describe

func (*MockCounterMockRecorder) Inc Uses

func (mr *MockCounterMockRecorder) Inc() *gomock.Call

Inc indicates an expected call of Inc

func (*MockCounterMockRecorder) Write Uses

func (mr *MockCounterMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write

type MockCounterVec Uses

type MockCounterVec struct {
    // contains filtered or unexported fields
}

MockCounterVec is a mock of CounterVec interface

func NewMockCounterVec Uses

func NewMockCounterVec(ctrl *gomock.Controller) *MockCounterVec

NewMockCounterVec creates a new mock instance

func (*MockCounterVec) EXPECT Uses

func (m *MockCounterVec) EXPECT() *MockCounterVecMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockCounterVec) With Uses

func (m *MockCounterVec) With(arg0 prometheus.Labels) prometheus.Counter

With mocks base method

type MockCounterVecMockRecorder Uses

type MockCounterVecMockRecorder struct {
    // contains filtered or unexported fields
}

MockCounterVecMockRecorder is the mock recorder for MockCounterVec

func (*MockCounterVecMockRecorder) With Uses

func (mr *MockCounterVecMockRecorder) With(arg0 interface{}) *gomock.Call

With indicates an expected call of With

type MockMetricsCollector Uses

type MockMetricsCollector struct {
    // contains filtered or unexported fields
}

MockMetricsCollector is a mock of MetricsCollector interface

func NewMockMetricsCollector Uses

func NewMockMetricsCollector(ctrl *gomock.Controller) *MockMetricsCollector

NewMockMetricsCollector creates a new mock instance

func (*MockMetricsCollector) APIRequestDuration Uses

func (m *MockMetricsCollector) APIRequestDuration() metricobserver.SummaryVec

APIRequestDuration mocks base method

func (*MockMetricsCollector) DeprecatedAPIRequestDuration Uses

func (m *MockMetricsCollector) DeprecatedAPIRequestDuration() metricobserver.SummaryVec

DeprecatedAPIRequestDuration mocks base method

func (*MockMetricsCollector) DeprecatedAPIRequestsTotal Uses

func (m *MockMetricsCollector) DeprecatedAPIRequestsTotal() metricobserver.CounterVec

DeprecatedAPIRequestsTotal mocks base method

func (*MockMetricsCollector) EXPECT Uses

func (m *MockMetricsCollector) EXPECT() *MockMetricsCollectorMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

type MockMetricsCollectorMockRecorder Uses

type MockMetricsCollectorMockRecorder struct {
    // contains filtered or unexported fields
}

MockMetricsCollectorMockRecorder is the mock recorder for MockMetricsCollector

func (*MockMetricsCollectorMockRecorder) APIRequestDuration Uses

func (mr *MockMetricsCollectorMockRecorder) APIRequestDuration() *gomock.Call

APIRequestDuration indicates an expected call of APIRequestDuration

func (*MockMetricsCollectorMockRecorder) DeprecatedAPIRequestDuration Uses

func (mr *MockMetricsCollectorMockRecorder) DeprecatedAPIRequestDuration() *gomock.Call

DeprecatedAPIRequestDuration indicates an expected call of DeprecatedAPIRequestDuration

func (*MockMetricsCollectorMockRecorder) DeprecatedAPIRequestsTotal Uses

func (mr *MockMetricsCollectorMockRecorder) DeprecatedAPIRequestsTotal() *gomock.Call

DeprecatedAPIRequestsTotal indicates an expected call of DeprecatedAPIRequestsTotal

type MockSummary Uses

type MockSummary struct {
    // contains filtered or unexported fields
}

MockSummary is a mock of Summary interface

func NewMockSummary Uses

func NewMockSummary(ctrl *gomock.Controller) *MockSummary

NewMockSummary creates a new mock instance

func (*MockSummary) Collect Uses

func (m *MockSummary) Collect(arg0 chan<- prometheus.Metric)

Collect mocks base method

func (*MockSummary) Desc Uses

func (m *MockSummary) Desc() *prometheus.Desc

Desc mocks base method

func (*MockSummary) Describe Uses

func (m *MockSummary) Describe(arg0 chan<- *prometheus.Desc)

Describe mocks base method

func (*MockSummary) EXPECT Uses

func (m *MockSummary) EXPECT() *MockSummaryMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockSummary) Observe Uses

func (m *MockSummary) Observe(arg0 float64)

Observe mocks base method

func (*MockSummary) Write Uses

func (m *MockSummary) Write(arg0 *go0.Metric) error

Write mocks base method

type MockSummaryMockRecorder Uses

type MockSummaryMockRecorder struct {
    // contains filtered or unexported fields
}

MockSummaryMockRecorder is the mock recorder for MockSummary

func (*MockSummaryMockRecorder) Collect Uses

func (mr *MockSummaryMockRecorder) Collect(arg0 interface{}) *gomock.Call

Collect indicates an expected call of Collect

func (*MockSummaryMockRecorder) Desc Uses

func (mr *MockSummaryMockRecorder) Desc() *gomock.Call

Desc indicates an expected call of Desc

func (*MockSummaryMockRecorder) Describe Uses

func (mr *MockSummaryMockRecorder) Describe(arg0 interface{}) *gomock.Call

Describe indicates an expected call of Describe

func (*MockSummaryMockRecorder) Observe Uses

func (mr *MockSummaryMockRecorder) Observe(arg0 interface{}) *gomock.Call

Observe indicates an expected call of Observe

func (*MockSummaryMockRecorder) Write Uses

func (mr *MockSummaryMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write

type MockSummaryVec Uses

type MockSummaryVec struct {
    // contains filtered or unexported fields
}

MockSummaryVec is a mock of SummaryVec interface

func NewMockSummaryVec Uses

func NewMockSummaryVec(ctrl *gomock.Controller) *MockSummaryVec

NewMockSummaryVec creates a new mock instance

func (*MockSummaryVec) EXPECT Uses

func (m *MockSummaryVec) EXPECT() *MockSummaryVecMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockSummaryVec) With Uses

func (m *MockSummaryVec) With(arg0 prometheus.Labels) prometheus.Observer

With mocks base method

type MockSummaryVecMockRecorder Uses

type MockSummaryVecMockRecorder struct {
    // contains filtered or unexported fields
}

MockSummaryVecMockRecorder is the mock recorder for MockSummaryVec

func (*MockSummaryVecMockRecorder) With Uses

func (mr *MockSummaryVecMockRecorder) With(arg0 interface{}) *gomock.Call

With indicates an expected call of With

Package mocks imports 5 packages (graph). Updated 2019-02-19. Refresh now. Tools for package owners.