Documentation ¶
Overview ¶
Package mockclient is a generated GoMock package.
Index ¶
- type MockClient
- type MockClientClusterCall
- type MockClientMockRecorder
- type MockClientNetworkingCall
- func (c *MockClientNetworkingCall) Do(f func() client.NetworkingClient) *MockClientNetworkingCall
- func (c *MockClientNetworkingCall) DoAndReturn(f func() client.NetworkingClient) *MockClientNetworkingCall
- func (c *MockClientNetworkingCall) Return(arg0 client.NetworkingClient) *MockClientNetworkingCall
- type MockClientPrismCall
- type MockClusterClient
- type MockClusterClientGetClusterCall
- func (c *MockClusterClientGetClusterCall) Do(f func(string) (*client.Cluster, error)) *MockClusterClientGetClusterCall
- func (c *MockClusterClientGetClusterCall) DoAndReturn(f func(string) (*client.Cluster, error)) *MockClusterClientGetClusterCall
- func (c *MockClusterClientGetClusterCall) Return(arg0 *client.Cluster, arg1 error) *MockClusterClientGetClusterCall
- type MockClusterClientMockRecorder
- type MockNetworkingClient
- func (m *MockNetworkingClient) EXPECT() *MockNetworkingClientMockRecorder
- func (m *MockNetworkingClient) GetSubnet(arg0 string, arg1 client.ReserveIPOpts) (*client.Subnet, error)
- func (m *MockNetworkingClient) ReserveIP(arg0 context.Context, arg1 string, arg2 client.ReserveIPOpts) (net.IP, error)
- func (m *MockNetworkingClient) UnreserveIP(arg0 context.Context, arg1 net.IP, arg2 string, arg3 client.ReserveIPOpts) error
- type MockNetworkingClientGetSubnetCall
- func (c *MockNetworkingClientGetSubnetCall) Do(f func(string, client.ReserveIPOpts) (*client.Subnet, error)) *MockNetworkingClientGetSubnetCall
- func (c *MockNetworkingClientGetSubnetCall) DoAndReturn(f func(string, client.ReserveIPOpts) (*client.Subnet, error)) *MockNetworkingClientGetSubnetCall
- func (c *MockNetworkingClientGetSubnetCall) Return(arg0 *client.Subnet, arg1 error) *MockNetworkingClientGetSubnetCall
- type MockNetworkingClientMockRecorder
- func (mr *MockNetworkingClientMockRecorder) GetSubnet(arg0, arg1 any) *MockNetworkingClientGetSubnetCall
- func (mr *MockNetworkingClientMockRecorder) ReserveIP(arg0, arg1, arg2 any) *MockNetworkingClientReserveIPCall
- func (mr *MockNetworkingClientMockRecorder) UnreserveIP(arg0, arg1, arg2, arg3 any) *MockNetworkingClientUnreserveIPCall
- type MockNetworkingClientReserveIPCall
- func (c *MockNetworkingClientReserveIPCall) Do(f func(context.Context, string, client.ReserveIPOpts) (net.IP, error)) *MockNetworkingClientReserveIPCall
- func (c *MockNetworkingClientReserveIPCall) DoAndReturn(f func(context.Context, string, client.ReserveIPOpts) (net.IP, error)) *MockNetworkingClientReserveIPCall
- func (c *MockNetworkingClientReserveIPCall) Return(arg0 net.IP, arg1 error) *MockNetworkingClientReserveIPCall
- type MockNetworkingClientUnreserveIPCall
- func (c *MockNetworkingClientUnreserveIPCall) Do(f func(context.Context, net.IP, string, client.ReserveIPOpts) error) *MockNetworkingClientUnreserveIPCall
- func (c *MockNetworkingClientUnreserveIPCall) DoAndReturn(f func(context.Context, net.IP, string, client.ReserveIPOpts) error) *MockNetworkingClientUnreserveIPCall
- func (c *MockNetworkingClientUnreserveIPCall) Return(arg0 error) *MockNetworkingClientUnreserveIPCall
- type MockPrismClient
- type MockPrismClientMockRecorder
- type MockPrismClientWaitForTaskCompletionCall
- func (c *MockPrismClientWaitForTaskCompletionCall) Do(...) *MockPrismClientWaitForTaskCompletionCall
- func (c *MockPrismClientWaitForTaskCompletionCall) DoAndReturn(...) *MockPrismClientWaitForTaskCompletionCall
- func (c *MockPrismClientWaitForTaskCompletionCall) Return(arg0 []config.KVPair, arg1 error) *MockPrismClientWaitForTaskCompletionCall
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) Cluster ¶
func (m *MockClient) Cluster() client.ClusterClient
Cluster 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) Networking ¶
func (m *MockClient) Networking() client.NetworkingClient
Networking mocks base method.
type MockClientClusterCall ¶
MockClientClusterCall wrap *gomock.Call
func (*MockClientClusterCall) Do ¶
func (c *MockClientClusterCall) Do(f func() client.ClusterClient) *MockClientClusterCall
Do rewrite *gomock.Call.Do
func (*MockClientClusterCall) DoAndReturn ¶
func (c *MockClientClusterCall) DoAndReturn(f func() client.ClusterClient) *MockClientClusterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockClientClusterCall) Return ¶
func (c *MockClientClusterCall) Return(arg0 client.ClusterClient) *MockClientClusterCall
Return rewrite *gomock.Call.Return
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) Cluster ¶
func (mr *MockClientMockRecorder) Cluster() *MockClientClusterCall
Cluster indicates an expected call of Cluster.
func (*MockClientMockRecorder) Networking ¶
func (mr *MockClientMockRecorder) Networking() *MockClientNetworkingCall
Networking indicates an expected call of Networking.
func (*MockClientMockRecorder) Prism ¶
func (mr *MockClientMockRecorder) Prism() *MockClientPrismCall
Prism indicates an expected call of Prism.
type MockClientNetworkingCall ¶
MockClientNetworkingCall wrap *gomock.Call
func (*MockClientNetworkingCall) Do ¶
func (c *MockClientNetworkingCall) Do(f func() client.NetworkingClient) *MockClientNetworkingCall
Do rewrite *gomock.Call.Do
func (*MockClientNetworkingCall) DoAndReturn ¶
func (c *MockClientNetworkingCall) DoAndReturn(f func() client.NetworkingClient) *MockClientNetworkingCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockClientNetworkingCall) Return ¶
func (c *MockClientNetworkingCall) Return(arg0 client.NetworkingClient) *MockClientNetworkingCall
Return rewrite *gomock.Call.Return
type MockClientPrismCall ¶
MockClientPrismCall wrap *gomock.Call
func (*MockClientPrismCall) Do ¶
func (c *MockClientPrismCall) Do(f func() client.PrismClient) *MockClientPrismCall
Do rewrite *gomock.Call.Do
func (*MockClientPrismCall) DoAndReturn ¶
func (c *MockClientPrismCall) DoAndReturn(f func() client.PrismClient) *MockClientPrismCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockClientPrismCall) Return ¶
func (c *MockClientPrismCall) Return(arg0 client.PrismClient) *MockClientPrismCall
Return rewrite *gomock.Call.Return
type MockClusterClient ¶
type MockClusterClient struct {
// contains filtered or unexported fields
}
MockClusterClient is a mock of ClusterClient interface.
func NewMockClusterClient ¶
func NewMockClusterClient(ctrl *gomock.Controller) *MockClusterClient
NewMockClusterClient creates a new mock instance.
func (*MockClusterClient) EXPECT ¶
func (m *MockClusterClient) EXPECT() *MockClusterClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClusterClient) GetCluster ¶
func (m *MockClusterClient) GetCluster(arg0 string) (*client.Cluster, error)
GetCluster mocks base method.
type MockClusterClientGetClusterCall ¶
MockClusterClientGetClusterCall wrap *gomock.Call
func (*MockClusterClientGetClusterCall) Do ¶
func (c *MockClusterClientGetClusterCall) Do(f func(string) (*client.Cluster, error)) *MockClusterClientGetClusterCall
Do rewrite *gomock.Call.Do
func (*MockClusterClientGetClusterCall) DoAndReturn ¶
func (c *MockClusterClientGetClusterCall) DoAndReturn(f func(string) (*client.Cluster, error)) *MockClusterClientGetClusterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockClusterClientGetClusterCall) Return ¶
func (c *MockClusterClientGetClusterCall) Return(arg0 *client.Cluster, arg1 error) *MockClusterClientGetClusterCall
Return rewrite *gomock.Call.Return
type MockClusterClientMockRecorder ¶
type MockClusterClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClusterClientMockRecorder is the mock recorder for MockClusterClient.
func (*MockClusterClientMockRecorder) GetCluster ¶
func (mr *MockClusterClientMockRecorder) GetCluster(arg0 any) *MockClusterClientGetClusterCall
GetCluster indicates an expected call of GetCluster.
type MockNetworkingClient ¶
type MockNetworkingClient struct {
// contains filtered or unexported fields
}
MockNetworkingClient is a mock of NetworkingClient interface.
func NewMockNetworkingClient ¶
func NewMockNetworkingClient(ctrl *gomock.Controller) *MockNetworkingClient
NewMockNetworkingClient creates a new mock instance.
func (*MockNetworkingClient) EXPECT ¶
func (m *MockNetworkingClient) EXPECT() *MockNetworkingClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNetworkingClient) GetSubnet ¶
func (m *MockNetworkingClient) GetSubnet(arg0 string, arg1 client.ReserveIPOpts) (*client.Subnet, error)
GetSubnet mocks base method.
func (*MockNetworkingClient) ReserveIP ¶
func (m *MockNetworkingClient) ReserveIP(arg0 context.Context, arg1 string, arg2 client.ReserveIPOpts) (net.IP, error)
ReserveIP mocks base method.
func (*MockNetworkingClient) UnreserveIP ¶
func (m *MockNetworkingClient) UnreserveIP(arg0 context.Context, arg1 net.IP, arg2 string, arg3 client.ReserveIPOpts) error
UnreserveIP mocks base method.
type MockNetworkingClientGetSubnetCall ¶
MockNetworkingClientGetSubnetCall wrap *gomock.Call
func (*MockNetworkingClientGetSubnetCall) Do ¶
func (c *MockNetworkingClientGetSubnetCall) Do(f func(string, client.ReserveIPOpts) (*client.Subnet, error)) *MockNetworkingClientGetSubnetCall
Do rewrite *gomock.Call.Do
func (*MockNetworkingClientGetSubnetCall) DoAndReturn ¶
func (c *MockNetworkingClientGetSubnetCall) DoAndReturn(f func(string, client.ReserveIPOpts) (*client.Subnet, error)) *MockNetworkingClientGetSubnetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockNetworkingClientGetSubnetCall) Return ¶
func (c *MockNetworkingClientGetSubnetCall) Return(arg0 *client.Subnet, arg1 error) *MockNetworkingClientGetSubnetCall
Return rewrite *gomock.Call.Return
type MockNetworkingClientMockRecorder ¶
type MockNetworkingClientMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkingClientMockRecorder is the mock recorder for MockNetworkingClient.
func (*MockNetworkingClientMockRecorder) GetSubnet ¶
func (mr *MockNetworkingClientMockRecorder) GetSubnet(arg0, arg1 any) *MockNetworkingClientGetSubnetCall
GetSubnet indicates an expected call of GetSubnet.
func (*MockNetworkingClientMockRecorder) ReserveIP ¶
func (mr *MockNetworkingClientMockRecorder) ReserveIP(arg0, arg1, arg2 any) *MockNetworkingClientReserveIPCall
ReserveIP indicates an expected call of ReserveIP.
func (*MockNetworkingClientMockRecorder) UnreserveIP ¶
func (mr *MockNetworkingClientMockRecorder) UnreserveIP(arg0, arg1, arg2, arg3 any) *MockNetworkingClientUnreserveIPCall
UnreserveIP indicates an expected call of UnreserveIP.
type MockNetworkingClientReserveIPCall ¶
MockNetworkingClientReserveIPCall wrap *gomock.Call
func (*MockNetworkingClientReserveIPCall) Do ¶
func (c *MockNetworkingClientReserveIPCall) Do(f func(context.Context, string, client.ReserveIPOpts) (net.IP, error)) *MockNetworkingClientReserveIPCall
Do rewrite *gomock.Call.Do
func (*MockNetworkingClientReserveIPCall) DoAndReturn ¶
func (c *MockNetworkingClientReserveIPCall) DoAndReturn(f func(context.Context, string, client.ReserveIPOpts) (net.IP, error)) *MockNetworkingClientReserveIPCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockNetworkingClientReserveIPCall) Return ¶
func (c *MockNetworkingClientReserveIPCall) Return(arg0 net.IP, arg1 error) *MockNetworkingClientReserveIPCall
Return rewrite *gomock.Call.Return
type MockNetworkingClientUnreserveIPCall ¶
MockNetworkingClientUnreserveIPCall wrap *gomock.Call
func (*MockNetworkingClientUnreserveIPCall) Do ¶
func (c *MockNetworkingClientUnreserveIPCall) Do(f func(context.Context, net.IP, string, client.ReserveIPOpts) error) *MockNetworkingClientUnreserveIPCall
Do rewrite *gomock.Call.Do
func (*MockNetworkingClientUnreserveIPCall) DoAndReturn ¶
func (c *MockNetworkingClientUnreserveIPCall) DoAndReturn(f func(context.Context, net.IP, string, client.ReserveIPOpts) error) *MockNetworkingClientUnreserveIPCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockNetworkingClientUnreserveIPCall) Return ¶
func (c *MockNetworkingClientUnreserveIPCall) Return(arg0 error) *MockNetworkingClientUnreserveIPCall
Return rewrite *gomock.Call.Return
type MockPrismClient ¶
type MockPrismClient struct {
// contains filtered or unexported fields
}
MockPrismClient is a mock of PrismClient interface.
func NewMockPrismClient ¶
func NewMockPrismClient(ctrl *gomock.Controller) *MockPrismClient
NewMockPrismClient creates a new mock instance.
func (*MockPrismClient) EXPECT ¶
func (m *MockPrismClient) EXPECT() *MockPrismClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPrismClient) WaitForTaskCompletion ¶
func (m *MockPrismClient) WaitForTaskCompletion(arg0 context.Context, arg1 string, arg2 client.WaitForTaskCompletionOpts) ([]config.KVPair, error)
WaitForTaskCompletion mocks base method.
type MockPrismClientMockRecorder ¶
type MockPrismClientMockRecorder struct {
// contains filtered or unexported fields
}
MockPrismClientMockRecorder is the mock recorder for MockPrismClient.
func (*MockPrismClientMockRecorder) WaitForTaskCompletion ¶
func (mr *MockPrismClientMockRecorder) WaitForTaskCompletion(arg0, arg1, arg2 any) *MockPrismClientWaitForTaskCompletionCall
WaitForTaskCompletion indicates an expected call of WaitForTaskCompletion.
type MockPrismClientWaitForTaskCompletionCall ¶
MockPrismClientWaitForTaskCompletionCall wrap *gomock.Call
func (*MockPrismClientWaitForTaskCompletionCall) Do ¶
func (c *MockPrismClientWaitForTaskCompletionCall) Do(f func(context.Context, string, client.WaitForTaskCompletionOpts) ([]config.KVPair, error)) *MockPrismClientWaitForTaskCompletionCall
Do rewrite *gomock.Call.Do
func (*MockPrismClientWaitForTaskCompletionCall) DoAndReturn ¶
func (c *MockPrismClientWaitForTaskCompletionCall) DoAndReturn(f func(context.Context, string, client.WaitForTaskCompletionOpts) ([]config.KVPair, error)) *MockPrismClientWaitForTaskCompletionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPrismClientWaitForTaskCompletionCall) Return ¶
func (c *MockPrismClientWaitForTaskCompletionCall) Return(arg0 []config.KVPair, arg1 error) *MockPrismClientWaitForTaskCompletionCall
Return rewrite *gomock.Call.Return