Documentation
¶
Overview ¶
Package apimock is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) AddIP(arg0 context.Context, arg1 string, arg2 ...models.Healthcheck) (api.IP, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetIP(arg0 context.Context, arg1 string) (api.IP, error)
- func (m *MockClient) ListIPs(arg0 context.Context) ([]api.IP, error)
- func (m *MockClient) RemoveIP(arg0 context.Context, arg1 string) error
- func (m *MockClient) TryGetLock(arg0 context.Context, arg1 string) error
- func (m *MockClient) Version(arg0 context.Context) (string, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) AddIP(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetIP(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ListIPs(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) RemoveIP(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) TryGetLock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Version(arg0 interface{}) *gomock.Call
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 ...models.Healthcheck) (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) 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
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 interface{}, 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
Click to show internal directories.
Click to hide internal directories.