Documentation
¶
Index ¶
- type MockEndpointsInterface
- func (_m *MockEndpointsInterface) CreateEndpoint(ctx context.Context, request networking.CreateEndpointRequest) (*networking.Endpoint, error)
- func (_m *MockEndpointsInterface) DeleteEndpoint(ctx context.Context, request networking.DeleteEndpointRequest) error
- func (_m *MockEndpointsInterface) EXPECT() *MockEndpointsInterface_Expecter
- func (_m *MockEndpointsInterface) GetEndpoint(ctx context.Context, request networking.GetEndpointRequest) (*networking.Endpoint, error)
- func (_m *MockEndpointsInterface) ListEndpoints(ctx context.Context, request networking.ListEndpointsRequest) listing.Iterator[networking.Endpoint]
- func (_m *MockEndpointsInterface) ListEndpointsAll(ctx context.Context, request networking.ListEndpointsRequest) ([]networking.Endpoint, error)
- type MockEndpointsInterface_CreateEndpoint_Call
- func (_c *MockEndpointsInterface_CreateEndpoint_Call) Return(_a0 *networking.Endpoint, _a1 error) *MockEndpointsInterface_CreateEndpoint_Call
- func (_c *MockEndpointsInterface_CreateEndpoint_Call) Run(run func(ctx context.Context, request networking.CreateEndpointRequest)) *MockEndpointsInterface_CreateEndpoint_Call
- func (_c *MockEndpointsInterface_CreateEndpoint_Call) RunAndReturn(...) *MockEndpointsInterface_CreateEndpoint_Call
- type MockEndpointsInterface_DeleteEndpoint_Call
- func (_c *MockEndpointsInterface_DeleteEndpoint_Call) Return(_a0 error) *MockEndpointsInterface_DeleteEndpoint_Call
- func (_c *MockEndpointsInterface_DeleteEndpoint_Call) Run(run func(ctx context.Context, request networking.DeleteEndpointRequest)) *MockEndpointsInterface_DeleteEndpoint_Call
- func (_c *MockEndpointsInterface_DeleteEndpoint_Call) RunAndReturn(run func(context.Context, networking.DeleteEndpointRequest) error) *MockEndpointsInterface_DeleteEndpoint_Call
- type MockEndpointsInterface_Expecter
- func (_e *MockEndpointsInterface_Expecter) CreateEndpoint(ctx interface{}, request interface{}) *MockEndpointsInterface_CreateEndpoint_Call
- func (_e *MockEndpointsInterface_Expecter) DeleteEndpoint(ctx interface{}, request interface{}) *MockEndpointsInterface_DeleteEndpoint_Call
- func (_e *MockEndpointsInterface_Expecter) GetEndpoint(ctx interface{}, request interface{}) *MockEndpointsInterface_GetEndpoint_Call
- func (_e *MockEndpointsInterface_Expecter) ListEndpoints(ctx interface{}, request interface{}) *MockEndpointsInterface_ListEndpoints_Call
- func (_e *MockEndpointsInterface_Expecter) ListEndpointsAll(ctx interface{}, request interface{}) *MockEndpointsInterface_ListEndpointsAll_Call
- type MockEndpointsInterface_GetEndpoint_Call
- func (_c *MockEndpointsInterface_GetEndpoint_Call) Return(_a0 *networking.Endpoint, _a1 error) *MockEndpointsInterface_GetEndpoint_Call
- func (_c *MockEndpointsInterface_GetEndpoint_Call) Run(run func(ctx context.Context, request networking.GetEndpointRequest)) *MockEndpointsInterface_GetEndpoint_Call
- func (_c *MockEndpointsInterface_GetEndpoint_Call) RunAndReturn(...) *MockEndpointsInterface_GetEndpoint_Call
- type MockEndpointsInterface_ListEndpointsAll_Call
- func (_c *MockEndpointsInterface_ListEndpointsAll_Call) Return(_a0 []networking.Endpoint, _a1 error) *MockEndpointsInterface_ListEndpointsAll_Call
- func (_c *MockEndpointsInterface_ListEndpointsAll_Call) Run(run func(ctx context.Context, request networking.ListEndpointsRequest)) *MockEndpointsInterface_ListEndpointsAll_Call
- func (_c *MockEndpointsInterface_ListEndpointsAll_Call) RunAndReturn(...) *MockEndpointsInterface_ListEndpointsAll_Call
- type MockEndpointsInterface_ListEndpoints_Call
- func (_c *MockEndpointsInterface_ListEndpoints_Call) Return(_a0 listing.Iterator[networking.Endpoint]) *MockEndpointsInterface_ListEndpoints_Call
- func (_c *MockEndpointsInterface_ListEndpoints_Call) Run(run func(ctx context.Context, request networking.ListEndpointsRequest)) *MockEndpointsInterface_ListEndpoints_Call
- func (_c *MockEndpointsInterface_ListEndpoints_Call) RunAndReturn(...) *MockEndpointsInterface_ListEndpoints_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEndpointsInterface ¶
MockEndpointsInterface is an autogenerated mock type for the EndpointsInterface type
func NewMockEndpointsInterface ¶
func NewMockEndpointsInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockEndpointsInterface
NewMockEndpointsInterface creates a new instance of MockEndpointsInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockEndpointsInterface) CreateEndpoint ¶
func (_m *MockEndpointsInterface) CreateEndpoint(ctx context.Context, request networking.CreateEndpointRequest) (*networking.Endpoint, error)
CreateEndpoint provides a mock function with given fields: ctx, request
func (*MockEndpointsInterface) DeleteEndpoint ¶
func (_m *MockEndpointsInterface) DeleteEndpoint(ctx context.Context, request networking.DeleteEndpointRequest) error
DeleteEndpoint provides a mock function with given fields: ctx, request
func (*MockEndpointsInterface) EXPECT ¶
func (_m *MockEndpointsInterface) EXPECT() *MockEndpointsInterface_Expecter
func (*MockEndpointsInterface) GetEndpoint ¶
func (_m *MockEndpointsInterface) GetEndpoint(ctx context.Context, request networking.GetEndpointRequest) (*networking.Endpoint, error)
GetEndpoint provides a mock function with given fields: ctx, request
func (*MockEndpointsInterface) ListEndpoints ¶
func (_m *MockEndpointsInterface) ListEndpoints(ctx context.Context, request networking.ListEndpointsRequest) listing.Iterator[networking.Endpoint]
ListEndpoints provides a mock function with given fields: ctx, request
func (*MockEndpointsInterface) ListEndpointsAll ¶
func (_m *MockEndpointsInterface) ListEndpointsAll(ctx context.Context, request networking.ListEndpointsRequest) ([]networking.Endpoint, error)
ListEndpointsAll provides a mock function with given fields: ctx, request
type MockEndpointsInterface_CreateEndpoint_Call ¶
MockEndpointsInterface_CreateEndpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateEndpoint'
func (*MockEndpointsInterface_CreateEndpoint_Call) Return ¶
func (_c *MockEndpointsInterface_CreateEndpoint_Call) Return(_a0 *networking.Endpoint, _a1 error) *MockEndpointsInterface_CreateEndpoint_Call
func (*MockEndpointsInterface_CreateEndpoint_Call) Run ¶
func (_c *MockEndpointsInterface_CreateEndpoint_Call) Run(run func(ctx context.Context, request networking.CreateEndpointRequest)) *MockEndpointsInterface_CreateEndpoint_Call
func (*MockEndpointsInterface_CreateEndpoint_Call) RunAndReturn ¶
func (_c *MockEndpointsInterface_CreateEndpoint_Call) RunAndReturn(run func(context.Context, networking.CreateEndpointRequest) (*networking.Endpoint, error)) *MockEndpointsInterface_CreateEndpoint_Call
type MockEndpointsInterface_DeleteEndpoint_Call ¶
MockEndpointsInterface_DeleteEndpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteEndpoint'
func (*MockEndpointsInterface_DeleteEndpoint_Call) Return ¶
func (_c *MockEndpointsInterface_DeleteEndpoint_Call) Return(_a0 error) *MockEndpointsInterface_DeleteEndpoint_Call
func (*MockEndpointsInterface_DeleteEndpoint_Call) Run ¶
func (_c *MockEndpointsInterface_DeleteEndpoint_Call) Run(run func(ctx context.Context, request networking.DeleteEndpointRequest)) *MockEndpointsInterface_DeleteEndpoint_Call
func (*MockEndpointsInterface_DeleteEndpoint_Call) RunAndReturn ¶
func (_c *MockEndpointsInterface_DeleteEndpoint_Call) RunAndReturn(run func(context.Context, networking.DeleteEndpointRequest) error) *MockEndpointsInterface_DeleteEndpoint_Call
type MockEndpointsInterface_Expecter ¶
type MockEndpointsInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockEndpointsInterface_Expecter) CreateEndpoint ¶
func (_e *MockEndpointsInterface_Expecter) CreateEndpoint(ctx interface{}, request interface{}) *MockEndpointsInterface_CreateEndpoint_Call
CreateEndpoint is a helper method to define mock.On call
- ctx context.Context
- request networking.CreateEndpointRequest
func (*MockEndpointsInterface_Expecter) DeleteEndpoint ¶
func (_e *MockEndpointsInterface_Expecter) DeleteEndpoint(ctx interface{}, request interface{}) *MockEndpointsInterface_DeleteEndpoint_Call
DeleteEndpoint is a helper method to define mock.On call
- ctx context.Context
- request networking.DeleteEndpointRequest
func (*MockEndpointsInterface_Expecter) GetEndpoint ¶
func (_e *MockEndpointsInterface_Expecter) GetEndpoint(ctx interface{}, request interface{}) *MockEndpointsInterface_GetEndpoint_Call
GetEndpoint is a helper method to define mock.On call
- ctx context.Context
- request networking.GetEndpointRequest
func (*MockEndpointsInterface_Expecter) ListEndpoints ¶
func (_e *MockEndpointsInterface_Expecter) ListEndpoints(ctx interface{}, request interface{}) *MockEndpointsInterface_ListEndpoints_Call
ListEndpoints is a helper method to define mock.On call
- ctx context.Context
- request networking.ListEndpointsRequest
func (*MockEndpointsInterface_Expecter) ListEndpointsAll ¶
func (_e *MockEndpointsInterface_Expecter) ListEndpointsAll(ctx interface{}, request interface{}) *MockEndpointsInterface_ListEndpointsAll_Call
ListEndpointsAll is a helper method to define mock.On call
- ctx context.Context
- request networking.ListEndpointsRequest
type MockEndpointsInterface_GetEndpoint_Call ¶
MockEndpointsInterface_GetEndpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEndpoint'
func (*MockEndpointsInterface_GetEndpoint_Call) Return ¶
func (_c *MockEndpointsInterface_GetEndpoint_Call) Return(_a0 *networking.Endpoint, _a1 error) *MockEndpointsInterface_GetEndpoint_Call
func (*MockEndpointsInterface_GetEndpoint_Call) Run ¶
func (_c *MockEndpointsInterface_GetEndpoint_Call) Run(run func(ctx context.Context, request networking.GetEndpointRequest)) *MockEndpointsInterface_GetEndpoint_Call
func (*MockEndpointsInterface_GetEndpoint_Call) RunAndReturn ¶
func (_c *MockEndpointsInterface_GetEndpoint_Call) RunAndReturn(run func(context.Context, networking.GetEndpointRequest) (*networking.Endpoint, error)) *MockEndpointsInterface_GetEndpoint_Call
type MockEndpointsInterface_ListEndpointsAll_Call ¶
MockEndpointsInterface_ListEndpointsAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEndpointsAll'
func (*MockEndpointsInterface_ListEndpointsAll_Call) Return ¶
func (_c *MockEndpointsInterface_ListEndpointsAll_Call) Return(_a0 []networking.Endpoint, _a1 error) *MockEndpointsInterface_ListEndpointsAll_Call
func (*MockEndpointsInterface_ListEndpointsAll_Call) Run ¶
func (_c *MockEndpointsInterface_ListEndpointsAll_Call) Run(run func(ctx context.Context, request networking.ListEndpointsRequest)) *MockEndpointsInterface_ListEndpointsAll_Call
func (*MockEndpointsInterface_ListEndpointsAll_Call) RunAndReturn ¶
func (_c *MockEndpointsInterface_ListEndpointsAll_Call) RunAndReturn(run func(context.Context, networking.ListEndpointsRequest) ([]networking.Endpoint, error)) *MockEndpointsInterface_ListEndpointsAll_Call
type MockEndpointsInterface_ListEndpoints_Call ¶
MockEndpointsInterface_ListEndpoints_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEndpoints'
func (*MockEndpointsInterface_ListEndpoints_Call) Return ¶
func (_c *MockEndpointsInterface_ListEndpoints_Call) Return(_a0 listing.Iterator[networking.Endpoint]) *MockEndpointsInterface_ListEndpoints_Call
func (*MockEndpointsInterface_ListEndpoints_Call) Run ¶
func (_c *MockEndpointsInterface_ListEndpoints_Call) Run(run func(ctx context.Context, request networking.ListEndpointsRequest)) *MockEndpointsInterface_ListEndpoints_Call
func (*MockEndpointsInterface_ListEndpoints_Call) RunAndReturn ¶
func (_c *MockEndpointsInterface_ListEndpoints_Call) RunAndReturn(run func(context.Context, networking.ListEndpointsRequest) listing.Iterator[networking.Endpoint]) *MockEndpointsInterface_ListEndpoints_Call