mocks

package
v0.0.0-...-37acc3e Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCbClient

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

MockCbClient is a mock of CbClient interface.

func NewMockCbClient

func NewMockCbClient(ctrl *gomock.Controller) *MockCbClient

NewMockCbClient creates a new mock instance.

func (*MockCbClient) BucketNodes

func (m *MockCbClient) BucketNodes(arg0 string) ([]interface{}, error)

BucketNodes mocks base method.

func (*MockCbClient) BucketPerNodeStats

func (m *MockCbClient) BucketPerNodeStats(arg0, arg1 string) (objects.BucketStats, error)

BucketPerNodeStats mocks base method.

func (*MockCbClient) BucketStats

func (m *MockCbClient) BucketStats(arg0 string) (objects.BucketStats, error)

BucketStats mocks base method.

func (*MockCbClient) Buckets

func (m *MockCbClient) Buckets() ([]objects.BucketInfo, error)

Buckets mocks base method.

func (*MockCbClient) Cbas

func (m *MockCbClient) Cbas() (objects.Analytics, error)

Cbas mocks base method.

func (*MockCbClient) ClusterName

func (m *MockCbClient) ClusterName() (string, error)

ClusterName mocks base method.

func (*MockCbClient) EXPECT

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

func (*MockCbClient) Eventing

func (m *MockCbClient) Eventing() (objects.Eventing, error)

Eventing mocks base method.

func (*MockCbClient) Fts

func (m *MockCbClient) Fts() (objects.FTS, error)

Fts mocks base method.

func (*MockCbClient) Get

func (m *MockCbClient) Get(arg0 string, arg1 interface{}) error

Get mocks base method.

func (*MockCbClient) GetCurrentNode

func (m *MockCbClient) GetCurrentNode() (objects.Node, error)

GetCurrentNode mocks base method.

func (*MockCbClient) Index

func (m *MockCbClient) Index() (objects.Index, error)

Index mocks base method.

func (*MockCbClient) IndexNode

func (m *MockCbClient) IndexNode(arg0 string) (objects.Index, error)

IndexNode mocks base method.

func (*MockCbClient) IndexStats

func (m *MockCbClient) IndexStats() (map[string]map[string]interface{}, error)

IndexStats mocks base method.

func (*MockCbClient) Nodes

func (m *MockCbClient) Nodes() (objects.Nodes, error)

Nodes mocks base method.

func (*MockCbClient) NodesNodes

func (m *MockCbClient) NodesNodes() (objects.Nodes, error)

NodesNodes mocks base method.

func (*MockCbClient) Query

func (m *MockCbClient) Query() (objects.Query, error)

Query mocks base method.

func (*MockCbClient) QueryNode

func (m *MockCbClient) QueryNode(arg0 string) (objects.Query, error)

QueryNode mocks base method.

func (*MockCbClient) Servers

func (m *MockCbClient) Servers(arg0 string) (objects.Servers, error)

Servers mocks base method.

func (*MockCbClient) Tasks

func (m *MockCbClient) Tasks() ([]objects.Task, error)

Tasks mocks base method.

func (*MockCbClient) URL

func (m *MockCbClient) URL(arg0 string) string

URL mocks base method.

type MockCbClientMockRecorder

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

MockCbClientMockRecorder is the mock recorder for MockCbClient.

func (*MockCbClientMockRecorder) BucketNodes

func (mr *MockCbClientMockRecorder) BucketNodes(arg0 interface{}) *gomock.Call

BucketNodes indicates an expected call of BucketNodes.

func (*MockCbClientMockRecorder) BucketPerNodeStats

func (mr *MockCbClientMockRecorder) BucketPerNodeStats(arg0, arg1 interface{}) *gomock.Call

BucketPerNodeStats indicates an expected call of BucketPerNodeStats.

func (*MockCbClientMockRecorder) BucketStats

func (mr *MockCbClientMockRecorder) BucketStats(arg0 interface{}) *gomock.Call

BucketStats indicates an expected call of BucketStats.

func (*MockCbClientMockRecorder) Buckets

func (mr *MockCbClientMockRecorder) Buckets() *gomock.Call

Buckets indicates an expected call of Buckets.

func (*MockCbClientMockRecorder) Cbas

func (mr *MockCbClientMockRecorder) Cbas() *gomock.Call

Cbas indicates an expected call of Cbas.

func (*MockCbClientMockRecorder) ClusterName

func (mr *MockCbClientMockRecorder) ClusterName() *gomock.Call

ClusterName indicates an expected call of ClusterName.

func (*MockCbClientMockRecorder) Eventing

func (mr *MockCbClientMockRecorder) Eventing() *gomock.Call

Eventing indicates an expected call of Eventing.

func (*MockCbClientMockRecorder) Fts

Fts indicates an expected call of Fts.

func (*MockCbClientMockRecorder) Get

func (mr *MockCbClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockCbClientMockRecorder) GetCurrentNode

func (mr *MockCbClientMockRecorder) GetCurrentNode() *gomock.Call

GetCurrentNode indicates an expected call of GetCurrentNode.

func (*MockCbClientMockRecorder) Index

func (mr *MockCbClientMockRecorder) Index() *gomock.Call

Index indicates an expected call of Index.

func (*MockCbClientMockRecorder) IndexNode

func (mr *MockCbClientMockRecorder) IndexNode(arg0 interface{}) *gomock.Call

IndexNode indicates an expected call of IndexNode.

func (*MockCbClientMockRecorder) IndexStats

func (mr *MockCbClientMockRecorder) IndexStats() *gomock.Call

IndexStats indicates an expected call of IndexStats.

func (*MockCbClientMockRecorder) Nodes

func (mr *MockCbClientMockRecorder) Nodes() *gomock.Call

Nodes indicates an expected call of Nodes.

func (*MockCbClientMockRecorder) NodesNodes

func (mr *MockCbClientMockRecorder) NodesNodes() *gomock.Call

NodesNodes indicates an expected call of NodesNodes.

func (*MockCbClientMockRecorder) Query

func (mr *MockCbClientMockRecorder) Query() *gomock.Call

Query indicates an expected call of Query.

func (*MockCbClientMockRecorder) QueryNode

func (mr *MockCbClientMockRecorder) QueryNode(arg0 interface{}) *gomock.Call

QueryNode indicates an expected call of QueryNode.

func (*MockCbClientMockRecorder) Servers

func (mr *MockCbClientMockRecorder) Servers(arg0 interface{}) *gomock.Call

Servers indicates an expected call of Servers.

func (*MockCbClientMockRecorder) Tasks

func (mr *MockCbClientMockRecorder) Tasks() *gomock.Call

Tasks indicates an expected call of Tasks.

func (*MockCbClientMockRecorder) URL

func (mr *MockCbClientMockRecorder) URL(arg0 interface{}) *gomock.Call

URL indicates an expected call of URL.

type MockSetter

type MockSetter struct {
	CallCount     int
	MetricsValues map[string]float64
	MetricsLabels map[string][]string
}

func NewMockSetter

func NewMockSetter() MockSetter

func (*MockSetter) SetGaugeVec

func (ms *MockSetter) SetGaugeVec(gv prometheus.GaugeVec, value float64, labels ...string)

func (*MockSetter) TestMetric

func (ms *MockSetter) TestMetric(name string, expectedValue float64, labels ...string) bool

func (*MockSetter) TestMetricGreaterThanOrEqual

func (ms *MockSetter) TestMetricGreaterThanOrEqual(name string, expectedValue float64, labels ...string) bool

Jump to

Keyboard shortcuts

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