mock_consul

package
v1.6.0-beta24 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0 Imports: 5 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 MockConsulClient

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

MockConsulClient is a mock of ConsulClient interface

func NewMockConsulClient

func NewMockConsulClient(ctrl *gomock.Controller) *MockConsulClient

NewMockConsulClient creates a new mock instance

func (*MockConsulClient) Connect

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

Connect mocks base method

func (*MockConsulClient) DataCenters

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

DataCenters mocks base method

func (*MockConsulClient) EXPECT

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

func (*MockConsulClient) Service

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

Service mocks base method

func (*MockConsulClient) Services

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

Services mocks base method

type MockConsulClientMockRecorder

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

MockConsulClientMockRecorder is the mock recorder for MockConsulClient

func (*MockConsulClientMockRecorder) Connect

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

Connect indicates an expected call of Connect

func (*MockConsulClientMockRecorder) DataCenters

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

DataCenters indicates an expected call of DataCenters

func (*MockConsulClientMockRecorder) Service

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

Service indicates an expected call of Service

func (*MockConsulClientMockRecorder) Services

func (mr *MockConsulClientMockRecorder) 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) (<-chan []*consul.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 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