Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockControlPlane
- func (m *MockControlPlane) AuthenticateUser(arg0 context.Context, arg1 api.AuthUserData) (api.UserSession, *http.Response, error)
- func (m *MockControlPlane) DeleteNamespace(arg0 context.Context, arg1, arg2 string, arg3 *api.DeleteNamespaceOpts) (*http.Response, error)
- func (m *MockControlPlane) DeleteNode(arg0 context.Context, arg1, arg2 string, arg3 *api.DeleteNodeOpts) (*http.Response, error)
- func (m *MockControlPlane) EXPECT() *MockControlPlaneMockRecorder
- func (m *MockControlPlane) GetVolume(arg0 context.Context, arg1, arg2 string) (api.Volume, *http.Response, error)
- func (m *MockControlPlane) ListNamespaces(arg0 context.Context) ([]api.Namespace, *http.Response, error)
- func (m *MockControlPlane) ListNodes(arg0 context.Context) ([]api.Node, *http.Response, error)
- func (m *MockControlPlane) ListVolumes(arg0 context.Context, arg1 string) ([]api.Volume, *http.Response, error)
- func (m *MockControlPlane) RefreshJwt(arg0 context.Context) (api.UserSession, *http.Response, error)
- func (m *MockControlPlane) SetComputeOnly(arg0 context.Context, arg1 string, arg2 api.SetComputeOnlyNodeData, ...) (api.Node, *http.Response, error)
- func (m *MockControlPlane) SetFailureMode(arg0 context.Context, arg1, arg2 string, arg3 api.SetFailureModeRequest, ...) (api.Volume, *http.Response, error)
- func (m *MockControlPlane) SetPlacementStrategy(arg0 context.Context, arg1, arg2 string, arg3 api.SetPlacementStrategyData, ...) (api.AcceptedMessage, *http.Response, error)
- func (m *MockControlPlane) SetReplicas(arg0 context.Context, arg1, arg2 string, arg3 api.SetReplicasRequest, ...) (api.AcceptedMessage, *http.Response, error)
- func (m *MockControlPlane) UpdateNFSVolumeMountEndpoint(arg0 context.Context, arg1, arg2 string, arg3 api.NfsVolumeMountEndpoint, ...) (*http.Response, error)
- func (m *MockControlPlane) UpdateNode(arg0 context.Context, arg1 string, arg2 api.UpdateNodeData) (api.Node, *http.Response, error)
- func (m *MockControlPlane) UpdateVolume(arg0 context.Context, arg1, arg2 string, arg3 api.UpdateVolumeData, ...) (api.Volume, *http.Response, error)
- type MockControlPlaneMockRecorder
- func (mr *MockControlPlaneMockRecorder) AuthenticateUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockControlPlaneMockRecorder) DeleteNamespace(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockControlPlaneMockRecorder) DeleteNode(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockControlPlaneMockRecorder) GetVolume(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockControlPlaneMockRecorder) ListNamespaces(arg0 interface{}) *gomock.Call
- func (mr *MockControlPlaneMockRecorder) ListNodes(arg0 interface{}) *gomock.Call
- func (mr *MockControlPlaneMockRecorder) ListVolumes(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockControlPlaneMockRecorder) RefreshJwt(arg0 interface{}) *gomock.Call
- func (mr *MockControlPlaneMockRecorder) SetComputeOnly(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockControlPlaneMockRecorder) SetFailureMode(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockControlPlaneMockRecorder) SetPlacementStrategy(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockControlPlaneMockRecorder) SetReplicas(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockControlPlaneMockRecorder) UpdateNFSVolumeMountEndpoint(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockControlPlaneMockRecorder) UpdateNode(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockControlPlaneMockRecorder) UpdateVolume(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- type MockIdentifier
- type MockIdentifierMockRecorder
- type MockObject
- type MockObjectMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockControlPlane ¶
type MockControlPlane struct {
// contains filtered or unexported fields
}
MockControlPlane is a mock of ControlPlane interface.
func NewMockControlPlane ¶
func NewMockControlPlane(ctrl *gomock.Controller) *MockControlPlane
NewMockControlPlane creates a new mock instance.
func (*MockControlPlane) AuthenticateUser ¶
func (m *MockControlPlane) AuthenticateUser(arg0 context.Context, arg1 api.AuthUserData) (api.UserSession, *http.Response, error)
AuthenticateUser mocks base method.
func (*MockControlPlane) DeleteNamespace ¶
func (m *MockControlPlane) DeleteNamespace(arg0 context.Context, arg1, arg2 string, arg3 *api.DeleteNamespaceOpts) (*http.Response, error)
DeleteNamespace mocks base method.
func (*MockControlPlane) DeleteNode ¶
func (m *MockControlPlane) DeleteNode(arg0 context.Context, arg1, arg2 string, arg3 *api.DeleteNodeOpts) (*http.Response, error)
DeleteNode mocks base method.
func (*MockControlPlane) EXPECT ¶
func (m *MockControlPlane) EXPECT() *MockControlPlaneMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockControlPlane) GetVolume ¶
func (m *MockControlPlane) GetVolume(arg0 context.Context, arg1, arg2 string) (api.Volume, *http.Response, error)
GetVolume mocks base method.
func (*MockControlPlane) ListNamespaces ¶
func (m *MockControlPlane) ListNamespaces(arg0 context.Context) ([]api.Namespace, *http.Response, error)
ListNamespaces mocks base method.
func (*MockControlPlane) ListVolumes ¶
func (m *MockControlPlane) ListVolumes(arg0 context.Context, arg1 string) ([]api.Volume, *http.Response, error)
ListVolumes mocks base method.
func (*MockControlPlane) RefreshJwt ¶
func (m *MockControlPlane) RefreshJwt(arg0 context.Context) (api.UserSession, *http.Response, error)
RefreshJwt mocks base method.
func (*MockControlPlane) SetComputeOnly ¶ added in v1.1.0
func (m *MockControlPlane) SetComputeOnly(arg0 context.Context, arg1 string, arg2 api.SetComputeOnlyNodeData, arg3 *api.SetComputeOnlyOpts) (api.Node, *http.Response, error)
SetComputeOnly mocks base method.
func (*MockControlPlane) SetFailureMode ¶ added in v1.1.0
func (m *MockControlPlane) SetFailureMode(arg0 context.Context, arg1, arg2 string, arg3 api.SetFailureModeRequest, arg4 *api.SetFailureModeOpts) (api.Volume, *http.Response, error)
SetFailureMode mocks base method.
func (*MockControlPlane) SetPlacementStrategy ¶ added in v1.2.0
func (m *MockControlPlane) SetPlacementStrategy(arg0 context.Context, arg1, arg2 string, arg3 api.SetPlacementStrategyData, arg4 *api.SetPlacementStrategyOpts) (api.AcceptedMessage, *http.Response, error)
SetPlacementStrategy mocks base method.
func (*MockControlPlane) SetReplicas ¶
func (m *MockControlPlane) SetReplicas(arg0 context.Context, arg1, arg2 string, arg3 api.SetReplicasRequest, arg4 *api.SetReplicasOpts) (api.AcceptedMessage, *http.Response, error)
SetReplicas mocks base method.
func (*MockControlPlane) UpdateNFSVolumeMountEndpoint ¶
func (m *MockControlPlane) UpdateNFSVolumeMountEndpoint(arg0 context.Context, arg1, arg2 string, arg3 api.NfsVolumeMountEndpoint, arg4 *api.UpdateNFSVolumeMountEndpointOpts) (*http.Response, error)
UpdateNFSVolumeMountEndpoint mocks base method.
func (*MockControlPlane) UpdateNode ¶
func (m *MockControlPlane) UpdateNode(arg0 context.Context, arg1 string, arg2 api.UpdateNodeData) (api.Node, *http.Response, error)
UpdateNode mocks base method.
func (*MockControlPlane) UpdateVolume ¶
func (m *MockControlPlane) UpdateVolume(arg0 context.Context, arg1, arg2 string, arg3 api.UpdateVolumeData, arg4 *api.UpdateVolumeOpts) (api.Volume, *http.Response, error)
UpdateVolume mocks base method.
type MockControlPlaneMockRecorder ¶
type MockControlPlaneMockRecorder struct {
// contains filtered or unexported fields
}
MockControlPlaneMockRecorder is the mock recorder for MockControlPlane.
func (*MockControlPlaneMockRecorder) AuthenticateUser ¶
func (mr *MockControlPlaneMockRecorder) AuthenticateUser(arg0, arg1 interface{}) *gomock.Call
AuthenticateUser indicates an expected call of AuthenticateUser.
func (*MockControlPlaneMockRecorder) DeleteNamespace ¶
func (mr *MockControlPlaneMockRecorder) DeleteNamespace(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
DeleteNamespace indicates an expected call of DeleteNamespace.
func (*MockControlPlaneMockRecorder) DeleteNode ¶
func (mr *MockControlPlaneMockRecorder) DeleteNode(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
DeleteNode indicates an expected call of DeleteNode.
func (*MockControlPlaneMockRecorder) GetVolume ¶
func (mr *MockControlPlaneMockRecorder) GetVolume(arg0, arg1, arg2 interface{}) *gomock.Call
GetVolume indicates an expected call of GetVolume.
func (*MockControlPlaneMockRecorder) ListNamespaces ¶
func (mr *MockControlPlaneMockRecorder) ListNamespaces(arg0 interface{}) *gomock.Call
ListNamespaces indicates an expected call of ListNamespaces.
func (*MockControlPlaneMockRecorder) ListNodes ¶
func (mr *MockControlPlaneMockRecorder) ListNodes(arg0 interface{}) *gomock.Call
ListNodes indicates an expected call of ListNodes.
func (*MockControlPlaneMockRecorder) ListVolumes ¶
func (mr *MockControlPlaneMockRecorder) ListVolumes(arg0, arg1 interface{}) *gomock.Call
ListVolumes indicates an expected call of ListVolumes.
func (*MockControlPlaneMockRecorder) RefreshJwt ¶
func (mr *MockControlPlaneMockRecorder) RefreshJwt(arg0 interface{}) *gomock.Call
RefreshJwt indicates an expected call of RefreshJwt.
func (*MockControlPlaneMockRecorder) SetComputeOnly ¶ added in v1.1.0
func (mr *MockControlPlaneMockRecorder) SetComputeOnly(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SetComputeOnly indicates an expected call of SetComputeOnly.
func (*MockControlPlaneMockRecorder) SetFailureMode ¶ added in v1.1.0
func (mr *MockControlPlaneMockRecorder) SetFailureMode(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
SetFailureMode indicates an expected call of SetFailureMode.
func (*MockControlPlaneMockRecorder) SetPlacementStrategy ¶ added in v1.2.0
func (mr *MockControlPlaneMockRecorder) SetPlacementStrategy(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
SetPlacementStrategy indicates an expected call of SetPlacementStrategy.
func (*MockControlPlaneMockRecorder) SetReplicas ¶
func (mr *MockControlPlaneMockRecorder) SetReplicas(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
SetReplicas indicates an expected call of SetReplicas.
func (*MockControlPlaneMockRecorder) UpdateNFSVolumeMountEndpoint ¶
func (mr *MockControlPlaneMockRecorder) UpdateNFSVolumeMountEndpoint(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
UpdateNFSVolumeMountEndpoint indicates an expected call of UpdateNFSVolumeMountEndpoint.
func (*MockControlPlaneMockRecorder) UpdateNode ¶
func (mr *MockControlPlaneMockRecorder) UpdateNode(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateNode indicates an expected call of UpdateNode.
func (*MockControlPlaneMockRecorder) UpdateVolume ¶
func (mr *MockControlPlaneMockRecorder) UpdateVolume(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
UpdateVolume indicates an expected call of UpdateVolume.
type MockIdentifier ¶ added in v1.1.0
type MockIdentifier struct {
// contains filtered or unexported fields
}
MockIdentifier is a mock of Identifier interface.
func NewMockIdentifier ¶ added in v1.1.0
func NewMockIdentifier(ctrl *gomock.Controller) *MockIdentifier
NewMockIdentifier creates a new mock instance.
func (*MockIdentifier) EXPECT ¶ added in v1.1.0
func (m *MockIdentifier) EXPECT() *MockIdentifierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIdentifier) GetID ¶ added in v1.1.0
func (m *MockIdentifier) GetID() string
GetID mocks base method.
func (*MockIdentifier) GetName ¶ added in v1.1.0
func (m *MockIdentifier) GetName() string
GetName mocks base method.
func (*MockIdentifier) GetNamespace ¶ added in v1.1.0
func (m *MockIdentifier) GetNamespace() string
GetNamespace mocks base method.
type MockIdentifierMockRecorder ¶ added in v1.1.0
type MockIdentifierMockRecorder struct {
// contains filtered or unexported fields
}
MockIdentifierMockRecorder is the mock recorder for MockIdentifier.
func (*MockIdentifierMockRecorder) GetID ¶ added in v1.1.0
func (mr *MockIdentifierMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID.
func (*MockIdentifierMockRecorder) GetName ¶ added in v1.1.0
func (mr *MockIdentifierMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockIdentifierMockRecorder) GetNamespace ¶ added in v1.1.0
func (mr *MockIdentifierMockRecorder) GetNamespace() *gomock.Call
GetNamespace indicates an expected call of GetNamespace.
type MockObject ¶ added in v1.1.0
type MockObject struct {
// contains filtered or unexported fields
}
MockObject is a mock of Object interface.
func NewMockObject ¶ added in v1.1.0
func NewMockObject(ctrl *gomock.Controller) *MockObject
NewMockObject creates a new mock instance.
func (*MockObject) EXPECT ¶ added in v1.1.0
func (m *MockObject) EXPECT() *MockObjectMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockObject) GetID ¶ added in v1.1.0
func (m *MockObject) GetID() string
GetID mocks base method.
func (*MockObject) GetLabels ¶ added in v1.1.0
func (m *MockObject) GetLabels() map[string]string
GetLabels mocks base method.
func (*MockObject) GetName ¶ added in v1.1.0
func (m *MockObject) GetName() string
GetName mocks base method.
func (*MockObject) GetNamespace ¶ added in v1.1.0
func (m *MockObject) GetNamespace() string
GetNamespace mocks base method.
func (*MockObject) IsHealthy ¶ added in v1.1.0
func (m *MockObject) IsHealthy() bool
IsHealthy mocks base method.
type MockObjectMockRecorder ¶ added in v1.1.0
type MockObjectMockRecorder struct {
// contains filtered or unexported fields
}
MockObjectMockRecorder is the mock recorder for MockObject.
func (*MockObjectMockRecorder) GetID ¶ added in v1.1.0
func (mr *MockObjectMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID.
func (*MockObjectMockRecorder) GetLabels ¶ added in v1.1.0
func (mr *MockObjectMockRecorder) GetLabels() *gomock.Call
GetLabels indicates an expected call of GetLabels.
func (*MockObjectMockRecorder) GetName ¶ added in v1.1.0
func (mr *MockObjectMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockObjectMockRecorder) GetNamespace ¶ added in v1.1.0
func (mr *MockObjectMockRecorder) GetNamespace() *gomock.Call
GetNamespace indicates an expected call of GetNamespace.
func (*MockObjectMockRecorder) IsHealthy ¶ added in v1.1.0
func (mr *MockObjectMockRecorder) IsHealthy() *gomock.Call
IsHealthy indicates an expected call of IsHealthy.