mock_consul

package
v1.18.0-beta24 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_consul is a generated GoMock package.

Package mock_consul is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClientWrapper added in v1.9.25

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

MockClientWrapper is a mock of ClientWrapper interface.

func NewMockClientWrapper added in v1.9.25

func NewMockClientWrapper(ctrl *gomock.Controller) *MockClientWrapper

NewMockClientWrapper creates a new mock instance.

func (*MockClientWrapper) Connect added in v1.9.25

func (m *MockClientWrapper) Connect(service, tag string, q *api.QueryOptions) ([]*api.CatalogService, *api.QueryMeta, error)

Connect mocks base method.

func (*MockClientWrapper) DataCenters added in v1.9.25

func (m *MockClientWrapper) DataCenters() ([]string, error)

DataCenters mocks base method.

func (*MockClientWrapper) EXPECT added in v1.9.25

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

func (*MockClientWrapper) Service added in v1.9.25

func (m *MockClientWrapper) Service(service, tag string, q *api.QueryOptions) ([]*api.CatalogService, *api.QueryMeta, error)

Service mocks base method.

func (*MockClientWrapper) Services added in v1.9.25

func (m *MockClientWrapper) Services(q *api.QueryOptions) (map[string][]string, *api.QueryMeta, error)

Services mocks base method.

type MockClientWrapperMockRecorder added in v1.9.25

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

MockClientWrapperMockRecorder is the mock recorder for MockClientWrapper.

func (*MockClientWrapperMockRecorder) Connect added in v1.9.25

func (mr *MockClientWrapperMockRecorder) Connect(service, tag, q interface{}) *gomock.Call

Connect indicates an expected call of Connect.

func (*MockClientWrapperMockRecorder) DataCenters added in v1.9.25

func (mr *MockClientWrapperMockRecorder) DataCenters() *gomock.Call

DataCenters indicates an expected call of DataCenters.

func (*MockClientWrapperMockRecorder) Service added in v1.9.25

func (mr *MockClientWrapperMockRecorder) Service(service, tag, q interface{}) *gomock.Call

Service indicates an expected call of Service.

func (*MockClientWrapperMockRecorder) Services added in v1.9.25

func (mr *MockClientWrapperMockRecorder) Services(q interface{}) *gomock.Call

Services indicates an expected call of Services.

type MockConsulWatcher

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

MockConsulWatcher is a mock of ConsulWatcher interface.

func NewMockConsulWatcher

func NewMockConsulWatcher(ctrl *gomock.Controller) *MockConsulWatcher

NewMockConsulWatcher creates a new mock instance.

func (*MockConsulWatcher) Connect

func (m *MockConsulWatcher) Connect(service, tag string, q *api.QueryOptions) ([]*api.CatalogService, *api.QueryMeta, error)

Connect mocks base method.

func (*MockConsulWatcher) DataCenters

func (m *MockConsulWatcher) DataCenters() ([]string, error)

DataCenters mocks base method.

func (*MockConsulWatcher) EXPECT

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

func (*MockConsulWatcher) Service

func (m *MockConsulWatcher) Service(service, tag string, q *api.QueryOptions) ([]*api.CatalogService, *api.QueryMeta, error)

Service mocks base method.

func (*MockConsulWatcher) Services

func (m *MockConsulWatcher) Services(q *api.QueryOptions) (map[string][]string, *api.QueryMeta, error)

Services mocks base method.

func (*MockConsulWatcher) WatchServices

func (m *MockConsulWatcher) WatchServices(ctx context.Context, dataCenters []string, cm consul.ConsulConsistencyModes, queryOpts *consul.QueryOptions) (<-chan []*consul0.ServiceMeta, <-chan error)

WatchServices mocks base method.

type MockConsulWatcherMockRecorder

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

MockConsulWatcherMockRecorder is the mock recorder for MockConsulWatcher.

func (*MockConsulWatcherMockRecorder) Connect

func (mr *MockConsulWatcherMockRecorder) Connect(service, tag, q interface{}) *gomock.Call

Connect indicates an expected call of Connect.

func (*MockConsulWatcherMockRecorder) DataCenters

func (mr *MockConsulWatcherMockRecorder) DataCenters() *gomock.Call

DataCenters indicates an expected call of DataCenters.

func (*MockConsulWatcherMockRecorder) Service

func (mr *MockConsulWatcherMockRecorder) Service(service, tag, q interface{}) *gomock.Call

Service indicates an expected call of Service.

func (*MockConsulWatcherMockRecorder) Services

func (mr *MockConsulWatcherMockRecorder) Services(q interface{}) *gomock.Call

Services indicates an expected call of Services.

func (*MockConsulWatcherMockRecorder) WatchServices

func (mr *MockConsulWatcherMockRecorder) WatchServices(ctx, dataCenters, cm, queryOpts interface{}) *gomock.Call

WatchServices indicates an expected call of WatchServices.

Jump to

Keyboard shortcuts

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