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.GetSubnetOpts) (*client.Subnet, error)
- func (m *MockNetworkingClient) ReserveIPs(arg0 client.IPReservationTypeFunc, arg1 string, arg2 client.ReserveIPOpts) ([]netip.Addr, error)
- func (m *MockNetworkingClient) UnreserveIPs(arg0 client.IPUnreservationTypeFunc, arg1 string, arg2 client.UnreserveIPOpts) error
- type MockNetworkingClientGetSubnetCall
- func (c *MockNetworkingClientGetSubnetCall) Do(f func(string, client.GetSubnetOpts) (*client.Subnet, error)) *MockNetworkingClientGetSubnetCall
- func (c *MockNetworkingClientGetSubnetCall) DoAndReturn(f func(string, client.GetSubnetOpts) (*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) ReserveIPs(arg0, arg1, arg2 any) *MockNetworkingClientReserveIPsCall
- func (mr *MockNetworkingClientMockRecorder) UnreserveIPs(arg0, arg1, arg2 any) *MockNetworkingClientUnreserveIPsCall
- type MockNetworkingClientReserveIPsCall
- func (c *MockNetworkingClientReserveIPsCall) Do(...) *MockNetworkingClientReserveIPsCall
- func (c *MockNetworkingClientReserveIPsCall) DoAndReturn(...) *MockNetworkingClientReserveIPsCall
- func (c *MockNetworkingClientReserveIPsCall) Return(arg0 []netip.Addr, arg1 error) *MockNetworkingClientReserveIPsCall
- type MockNetworkingClientUnreserveIPsCall
- func (c *MockNetworkingClientUnreserveIPsCall) Do(f func(client.IPUnreservationTypeFunc, string, client.UnreserveIPOpts) error) *MockNetworkingClientUnreserveIPsCall
- func (c *MockNetworkingClientUnreserveIPsCall) DoAndReturn(f func(client.IPUnreservationTypeFunc, string, client.UnreserveIPOpts) error) *MockNetworkingClientUnreserveIPsCall
- func (c *MockNetworkingClientUnreserveIPsCall) Return(arg0 error) *MockNetworkingClientUnreserveIPsCall
- type MockPrismClient
- type MockPrismClientGetTaskDataCall
- func (c *MockPrismClientGetTaskDataCall) Do(f func(string) ([]config.KVPair, error)) *MockPrismClientGetTaskDataCall
- func (c *MockPrismClientGetTaskDataCall) DoAndReturn(f func(string) ([]config.KVPair, error)) *MockPrismClientGetTaskDataCall
- func (c *MockPrismClientGetTaskDataCall) Return(arg0 []config.KVPair, arg1 error) *MockPrismClientGetTaskDataCall
- type MockPrismClientMockRecorder
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.GetSubnetOpts) (*client.Subnet, error)
GetSubnet mocks base method.
func (*MockNetworkingClient) ReserveIPs ¶ added in v0.3.0
func (m *MockNetworkingClient) ReserveIPs(arg0 client.IPReservationTypeFunc, arg1 string, arg2 client.ReserveIPOpts) ([]netip.Addr, error)
ReserveIPs mocks base method.
func (*MockNetworkingClient) UnreserveIPs ¶ added in v0.3.0
func (m *MockNetworkingClient) UnreserveIPs(arg0 client.IPUnreservationTypeFunc, arg1 string, arg2 client.UnreserveIPOpts) error
UnreserveIPs mocks base method.
type MockNetworkingClientGetSubnetCall ¶
MockNetworkingClientGetSubnetCall wrap *gomock.Call
func (*MockNetworkingClientGetSubnetCall) Do ¶
func (c *MockNetworkingClientGetSubnetCall) Do(f func(string, client.GetSubnetOpts) (*client.Subnet, error)) *MockNetworkingClientGetSubnetCall
Do rewrite *gomock.Call.Do
func (*MockNetworkingClientGetSubnetCall) DoAndReturn ¶
func (c *MockNetworkingClientGetSubnetCall) DoAndReturn(f func(string, client.GetSubnetOpts) (*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) ReserveIPs ¶ added in v0.3.0
func (mr *MockNetworkingClientMockRecorder) ReserveIPs(arg0, arg1, arg2 any) *MockNetworkingClientReserveIPsCall
ReserveIPs indicates an expected call of ReserveIPs.
func (*MockNetworkingClientMockRecorder) UnreserveIPs ¶ added in v0.3.0
func (mr *MockNetworkingClientMockRecorder) UnreserveIPs(arg0, arg1, arg2 any) *MockNetworkingClientUnreserveIPsCall
UnreserveIPs indicates an expected call of UnreserveIPs.
type MockNetworkingClientReserveIPsCall ¶ added in v0.3.0
MockNetworkingClientReserveIPsCall wrap *gomock.Call
func (*MockNetworkingClientReserveIPsCall) Do ¶ added in v0.3.0
func (c *MockNetworkingClientReserveIPsCall) Do(f func(client.IPReservationTypeFunc, string, client.ReserveIPOpts) ([]netip.Addr, error)) *MockNetworkingClientReserveIPsCall
Do rewrite *gomock.Call.Do
func (*MockNetworkingClientReserveIPsCall) DoAndReturn ¶ added in v0.3.0
func (c *MockNetworkingClientReserveIPsCall) DoAndReturn(f func(client.IPReservationTypeFunc, string, client.ReserveIPOpts) ([]netip.Addr, error)) *MockNetworkingClientReserveIPsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockNetworkingClientReserveIPsCall) Return ¶ added in v0.3.0
func (c *MockNetworkingClientReserveIPsCall) Return(arg0 []netip.Addr, arg1 error) *MockNetworkingClientReserveIPsCall
Return rewrite *gomock.Call.Return
type MockNetworkingClientUnreserveIPsCall ¶ added in v0.3.0
MockNetworkingClientUnreserveIPsCall wrap *gomock.Call
func (*MockNetworkingClientUnreserveIPsCall) Do ¶ added in v0.3.0
func (c *MockNetworkingClientUnreserveIPsCall) Do(f func(client.IPUnreservationTypeFunc, string, client.UnreserveIPOpts) error) *MockNetworkingClientUnreserveIPsCall
Do rewrite *gomock.Call.Do
func (*MockNetworkingClientUnreserveIPsCall) DoAndReturn ¶ added in v0.3.0
func (c *MockNetworkingClientUnreserveIPsCall) DoAndReturn(f func(client.IPUnreservationTypeFunc, string, client.UnreserveIPOpts) error) *MockNetworkingClientUnreserveIPsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockNetworkingClientUnreserveIPsCall) Return ¶ added in v0.3.0
func (c *MockNetworkingClientUnreserveIPsCall) Return(arg0 error) *MockNetworkingClientUnreserveIPsCall
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) GetTaskData ¶ added in v0.2.0
func (m *MockPrismClient) GetTaskData(arg0 string) ([]config.KVPair, error)
GetTaskData mocks base method.
type MockPrismClientGetTaskDataCall ¶ added in v0.2.0
MockPrismClientGetTaskDataCall wrap *gomock.Call
func (*MockPrismClientGetTaskDataCall) Do ¶ added in v0.2.0
func (c *MockPrismClientGetTaskDataCall) Do(f func(string) ([]config.KVPair, error)) *MockPrismClientGetTaskDataCall
Do rewrite *gomock.Call.Do
func (*MockPrismClientGetTaskDataCall) DoAndReturn ¶ added in v0.2.0
func (c *MockPrismClientGetTaskDataCall) DoAndReturn(f func(string) ([]config.KVPair, error)) *MockPrismClientGetTaskDataCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPrismClientGetTaskDataCall) Return ¶ added in v0.2.0
func (c *MockPrismClientGetTaskDataCall) Return(arg0 []config.KVPair, arg1 error) *MockPrismClientGetTaskDataCall
Return rewrite *gomock.Call.Return
type MockPrismClientMockRecorder ¶
type MockPrismClientMockRecorder struct {
// contains filtered or unexported fields
}
MockPrismClientMockRecorder is the mock recorder for MockPrismClient.
func (*MockPrismClientMockRecorder) GetTaskData ¶ added in v0.2.0
func (mr *MockPrismClientMockRecorder) GetTaskData(arg0 any) *MockPrismClientGetTaskDataCall
GetTaskData indicates an expected call of GetTaskData.