apimock

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package apimock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance

func (*MockClient) AddIP

func (m *MockClient) AddIP(arg0 context.Context, arg1 string, arg2 api.AddIPParams) (api.IP, error)

AddIP mocks base method

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetIP

func (m *MockClient) GetIP(arg0 context.Context, arg1 string) (api.IP, error)

GetIP mocks base method

func (*MockClient) ListIPs

func (m *MockClient) ListIPs(arg0 context.Context) ([]api.IP, error)

ListIPs mocks base method

func (*MockClient) RemoveIP

func (m *MockClient) RemoveIP(arg0 context.Context, arg1 string) error

RemoveIP mocks base method

func (*MockClient) TryGetLock

func (m *MockClient) TryGetLock(arg0 context.Context, arg1 string) error

TryGetLock mocks base method

func (*MockClient) Version added in v1.1.0

func (m *MockClient) Version(arg0 context.Context) (string, error)

Version mocks base method

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient

func (*MockClientMockRecorder) AddIP

func (mr *MockClientMockRecorder) AddIP(arg0, arg1, arg2 interface{}) *gomock.Call

AddIP indicates an expected call of AddIP

func (*MockClientMockRecorder) GetIP

func (mr *MockClientMockRecorder) GetIP(arg0, arg1 interface{}) *gomock.Call

GetIP indicates an expected call of GetIP

func (*MockClientMockRecorder) ListIPs

func (mr *MockClientMockRecorder) ListIPs(arg0 interface{}) *gomock.Call

ListIPs indicates an expected call of ListIPs

func (*MockClientMockRecorder) RemoveIP

func (mr *MockClientMockRecorder) RemoveIP(arg0, arg1 interface{}) *gomock.Call

RemoveIP indicates an expected call of RemoveIP

func (*MockClientMockRecorder) TryGetLock

func (mr *MockClientMockRecorder) TryGetLock(arg0, arg1 interface{}) *gomock.Call

TryGetLock indicates an expected call of TryGetLock

func (*MockClientMockRecorder) Version added in v1.1.0

func (mr *MockClientMockRecorder) Version(arg0 interface{}) *gomock.Call

Version indicates an expected call of Version

Jump to

Keyboard shortcuts

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