Documentation
¶
Overview ¶
Package apimock is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) AddEndpoint(arg0 context.Context, arg1 api.AddEndpointParams) (api.Endpoint, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) Failover(arg0 context.Context, arg1 string) error
- func (m *MockClient) GetEndpoint(arg0 context.Context, arg1 string) (api.Endpoint, error)
- func (m *MockClient) GetEndpointHosts(arg0 context.Context, arg1 string) ([]api.Host, error)
- func (m *MockClient) ListEndpoints(arg0 context.Context) ([]api.Endpoint, error)
- func (m *MockClient) RemoveEndpoint(arg0 context.Context, arg1 string) error
- func (m *MockClient) RotateEncryptionKey(arg0 context.Context) error
- func (m *MockClient) UpdateEndpoint(arg0 context.Context, arg1 string, arg2 api.UpdateEndpointParams) (api.Endpoint, error)
- func (m *MockClient) Version(arg0 context.Context) (string, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) AddEndpoint(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Failover(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetEndpoint(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetEndpointHosts(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ListEndpoints(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) RemoveEndpoint(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) RotateEncryptionKey(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) UpdateEndpoint(arg0, arg1, arg2 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) AddEndpoint ¶
func (m *MockClient) AddEndpoint(arg0 context.Context, arg1 api.AddEndpointParams) (api.Endpoint, error)
AddEndpoint 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) Failover ¶
func (m *MockClient) Failover(arg0 context.Context, arg1 string) error
Failover mocks base method.
func (*MockClient) GetEndpoint ¶
GetEndpoint mocks base method.
func (*MockClient) GetEndpointHosts ¶
GetEndpointHosts mocks base method.
func (*MockClient) ListEndpoints ¶
ListEndpoints mocks base method.
func (*MockClient) RemoveEndpoint ¶
func (m *MockClient) RemoveEndpoint(arg0 context.Context, arg1 string) error
RemoveEndpoint mocks base method.
func (*MockClient) RotateEncryptionKey ¶ added in v3.1.0
func (m *MockClient) RotateEncryptionKey(arg0 context.Context) error
RotateEncryptionKey mocks base method.
func (*MockClient) UpdateEndpoint ¶
func (m *MockClient) UpdateEndpoint(arg0 context.Context, arg1 string, arg2 api.UpdateEndpointParams) (api.Endpoint, error)
UpdateEndpoint mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) AddEndpoint ¶
func (mr *MockClientMockRecorder) AddEndpoint(arg0, arg1 interface{}) *gomock.Call
AddEndpoint indicates an expected call of AddEndpoint.
func (*MockClientMockRecorder) Failover ¶
func (mr *MockClientMockRecorder) Failover(arg0, arg1 interface{}) *gomock.Call
Failover indicates an expected call of Failover.
func (*MockClientMockRecorder) GetEndpoint ¶
func (mr *MockClientMockRecorder) GetEndpoint(arg0, arg1 interface{}) *gomock.Call
GetEndpoint indicates an expected call of GetEndpoint.
func (*MockClientMockRecorder) GetEndpointHosts ¶
func (mr *MockClientMockRecorder) GetEndpointHosts(arg0, arg1 interface{}) *gomock.Call
GetEndpointHosts indicates an expected call of GetEndpointHosts.
func (*MockClientMockRecorder) ListEndpoints ¶
func (mr *MockClientMockRecorder) ListEndpoints(arg0 interface{}) *gomock.Call
ListEndpoints indicates an expected call of ListEndpoints.
func (*MockClientMockRecorder) RemoveEndpoint ¶
func (mr *MockClientMockRecorder) RemoveEndpoint(arg0, arg1 interface{}) *gomock.Call
RemoveEndpoint indicates an expected call of RemoveEndpoint.
func (*MockClientMockRecorder) RotateEncryptionKey ¶ added in v3.1.0
func (mr *MockClientMockRecorder) RotateEncryptionKey(arg0 interface{}) *gomock.Call
RotateEncryptionKey indicates an expected call of RotateEncryptionKey.
func (*MockClientMockRecorder) UpdateEndpoint ¶
func (mr *MockClientMockRecorder) UpdateEndpoint(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateEndpoint indicates an expected call of UpdateEndpoint.
func (*MockClientMockRecorder) Version ¶
func (mr *MockClientMockRecorder) Version(arg0 interface{}) *gomock.Call
Version indicates an expected call of Version.