Documentation ¶
Overview ¶
Package driver is a generated GoMock package.
Index ¶
- type MockCSIDriver
- type MockCSIDriverServers
- type MockControllerServer
- func (m *MockControllerServer) ControllerGetCapabilities(arg0 context.Context, arg1 *csi.ControllerGetCapabilitiesRequest) (*csi.ControllerGetCapabilitiesResponse, error)
- func (m *MockControllerServer) ControllerProbe(arg0 context.Context, arg1 *csi.ControllerProbeRequest) (*csi.ControllerProbeResponse, error)
- func (m *MockControllerServer) ControllerPublishVolume(arg0 context.Context, arg1 *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error)
- func (m *MockControllerServer) ControllerUnpublishVolume(arg0 context.Context, arg1 *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error)
- func (m *MockControllerServer) CreateVolume(arg0 context.Context, arg1 *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)
- func (m *MockControllerServer) DeleteVolume(arg0 context.Context, arg1 *csi.DeleteVolumeRequest) (*csi.DeleteVolumeResponse, error)
- func (m *MockControllerServer) EXPECT() *MockControllerServerMockRecorder
- func (m *MockControllerServer) GetCapacity(arg0 context.Context, arg1 *csi.GetCapacityRequest) (*csi.GetCapacityResponse, error)
- func (m *MockControllerServer) ListVolumes(arg0 context.Context, arg1 *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error)
- func (m *MockControllerServer) ValidateVolumeCapabilities(arg0 context.Context, arg1 *csi.ValidateVolumeCapabilitiesRequest) (*csi.ValidateVolumeCapabilitiesResponse, error)
- type MockControllerServerMockRecorder
- func (mr *MockControllerServerMockRecorder) ControllerGetCapabilities(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockControllerServerMockRecorder) ControllerProbe(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockControllerServerMockRecorder) ControllerPublishVolume(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockControllerServerMockRecorder) ControllerUnpublishVolume(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockControllerServerMockRecorder) CreateVolume(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockControllerServerMockRecorder) DeleteVolume(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockControllerServerMockRecorder) GetCapacity(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockControllerServerMockRecorder) ListVolumes(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockControllerServerMockRecorder) ValidateVolumeCapabilities(arg0, arg1 interface{}) *gomock.Call
- type MockIdentityServer
- func (m *MockIdentityServer) EXPECT() *MockIdentityServerMockRecorder
- func (m *MockIdentityServer) GetPluginInfo(arg0 context.Context, arg1 *csi.GetPluginInfoRequest) (*csi.GetPluginInfoResponse, error)
- func (m *MockIdentityServer) GetSupportedVersions(arg0 context.Context, arg1 *csi.GetSupportedVersionsRequest) (*csi.GetSupportedVersionsResponse, error)
- type MockIdentityServerMockRecorder
- type MockNodeServer
- func (m *MockNodeServer) EXPECT() *MockNodeServerMockRecorder
- func (m *MockNodeServer) GetNodeID(arg0 context.Context, arg1 *csi.GetNodeIDRequest) (*csi.GetNodeIDResponse, error)
- func (m *MockNodeServer) NodeGetCapabilities(arg0 context.Context, arg1 *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error)
- func (m *MockNodeServer) NodeProbe(arg0 context.Context, arg1 *csi.NodeProbeRequest) (*csi.NodeProbeResponse, error)
- func (m *MockNodeServer) NodePublishVolume(arg0 context.Context, arg1 *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)
- func (m *MockNodeServer) NodeUnpublishVolume(arg0 context.Context, arg1 *csi.NodeUnpublishVolumeRequest) (*csi.NodeUnpublishVolumeResponse, error)
- type MockNodeServerMockRecorder
- func (mr *MockNodeServerMockRecorder) GetNodeID(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNodeServerMockRecorder) NodeGetCapabilities(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNodeServerMockRecorder) NodeProbe(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNodeServerMockRecorder) NodePublishVolume(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNodeServerMockRecorder) NodeUnpublishVolume(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCSIDriver ¶
type MockCSIDriver struct {
// contains filtered or unexported fields
}
func NewMockCSIDriver ¶
func NewMockCSIDriver(servers *MockCSIDriverServers) *MockCSIDriver
func (*MockCSIDriver) Address ¶
func (m *MockCSIDriver) Address() string
func (*MockCSIDriver) Close ¶
func (m *MockCSIDriver) Close()
func (*MockCSIDriver) IsRunning ¶
func (m *MockCSIDriver) IsRunning() bool
func (*MockCSIDriver) Nexus ¶
func (m *MockCSIDriver) Nexus() (*grpc.ClientConn, error)
func (*MockCSIDriver) Start ¶
func (m *MockCSIDriver) Start() error
func (*MockCSIDriver) Stop ¶
func (m *MockCSIDriver) Stop()
type MockCSIDriverServers ¶
type MockCSIDriverServers struct { Controller *MockControllerServer Identity *MockIdentityServer Node *MockNodeServer }
type MockControllerServer ¶
type MockControllerServer struct {
// contains filtered or unexported fields
}
MockControllerServer is a mock of ControllerServer interface
func NewMockControllerServer ¶
func NewMockControllerServer(ctrl *gomock.Controller) *MockControllerServer
NewMockControllerServer creates a new mock instance
func (*MockControllerServer) ControllerGetCapabilities ¶
func (m *MockControllerServer) ControllerGetCapabilities(arg0 context.Context, arg1 *csi.ControllerGetCapabilitiesRequest) (*csi.ControllerGetCapabilitiesResponse, error)
ControllerGetCapabilities mocks base method
func (*MockControllerServer) ControllerProbe ¶
func (m *MockControllerServer) ControllerProbe(arg0 context.Context, arg1 *csi.ControllerProbeRequest) (*csi.ControllerProbeResponse, error)
ControllerProbe mocks base method
func (*MockControllerServer) ControllerPublishVolume ¶
func (m *MockControllerServer) ControllerPublishVolume(arg0 context.Context, arg1 *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error)
ControllerPublishVolume mocks base method
func (*MockControllerServer) ControllerUnpublishVolume ¶
func (m *MockControllerServer) ControllerUnpublishVolume(arg0 context.Context, arg1 *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error)
ControllerUnpublishVolume mocks base method
func (*MockControllerServer) CreateVolume ¶
func (m *MockControllerServer) CreateVolume(arg0 context.Context, arg1 *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)
CreateVolume mocks base method
func (*MockControllerServer) DeleteVolume ¶
func (m *MockControllerServer) DeleteVolume(arg0 context.Context, arg1 *csi.DeleteVolumeRequest) (*csi.DeleteVolumeResponse, error)
DeleteVolume mocks base method
func (*MockControllerServer) EXPECT ¶
func (m *MockControllerServer) EXPECT() *MockControllerServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockControllerServer) GetCapacity ¶
func (m *MockControllerServer) GetCapacity(arg0 context.Context, arg1 *csi.GetCapacityRequest) (*csi.GetCapacityResponse, error)
GetCapacity mocks base method
func (*MockControllerServer) ListVolumes ¶
func (m *MockControllerServer) ListVolumes(arg0 context.Context, arg1 *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error)
ListVolumes mocks base method
func (*MockControllerServer) ValidateVolumeCapabilities ¶
func (m *MockControllerServer) ValidateVolumeCapabilities(arg0 context.Context, arg1 *csi.ValidateVolumeCapabilitiesRequest) (*csi.ValidateVolumeCapabilitiesResponse, error)
ValidateVolumeCapabilities mocks base method
type MockControllerServerMockRecorder ¶
type MockControllerServerMockRecorder struct {
// contains filtered or unexported fields
}
MockControllerServerMockRecorder is the mock recorder for MockControllerServer
func (*MockControllerServerMockRecorder) ControllerGetCapabilities ¶
func (mr *MockControllerServerMockRecorder) ControllerGetCapabilities(arg0, arg1 interface{}) *gomock.Call
ControllerGetCapabilities indicates an expected call of ControllerGetCapabilities
func (*MockControllerServerMockRecorder) ControllerProbe ¶
func (mr *MockControllerServerMockRecorder) ControllerProbe(arg0, arg1 interface{}) *gomock.Call
ControllerProbe indicates an expected call of ControllerProbe
func (*MockControllerServerMockRecorder) ControllerPublishVolume ¶
func (mr *MockControllerServerMockRecorder) ControllerPublishVolume(arg0, arg1 interface{}) *gomock.Call
ControllerPublishVolume indicates an expected call of ControllerPublishVolume
func (*MockControllerServerMockRecorder) ControllerUnpublishVolume ¶
func (mr *MockControllerServerMockRecorder) ControllerUnpublishVolume(arg0, arg1 interface{}) *gomock.Call
ControllerUnpublishVolume indicates an expected call of ControllerUnpublishVolume
func (*MockControllerServerMockRecorder) CreateVolume ¶
func (mr *MockControllerServerMockRecorder) CreateVolume(arg0, arg1 interface{}) *gomock.Call
CreateVolume indicates an expected call of CreateVolume
func (*MockControllerServerMockRecorder) DeleteVolume ¶
func (mr *MockControllerServerMockRecorder) DeleteVolume(arg0, arg1 interface{}) *gomock.Call
DeleteVolume indicates an expected call of DeleteVolume
func (*MockControllerServerMockRecorder) GetCapacity ¶
func (mr *MockControllerServerMockRecorder) GetCapacity(arg0, arg1 interface{}) *gomock.Call
GetCapacity indicates an expected call of GetCapacity
func (*MockControllerServerMockRecorder) ListVolumes ¶
func (mr *MockControllerServerMockRecorder) ListVolumes(arg0, arg1 interface{}) *gomock.Call
ListVolumes indicates an expected call of ListVolumes
func (*MockControllerServerMockRecorder) ValidateVolumeCapabilities ¶
func (mr *MockControllerServerMockRecorder) ValidateVolumeCapabilities(arg0, arg1 interface{}) *gomock.Call
ValidateVolumeCapabilities indicates an expected call of ValidateVolumeCapabilities
type MockIdentityServer ¶
type MockIdentityServer struct {
// contains filtered or unexported fields
}
MockIdentityServer is a mock of IdentityServer interface
func NewMockIdentityServer ¶
func NewMockIdentityServer(ctrl *gomock.Controller) *MockIdentityServer
NewMockIdentityServer creates a new mock instance
func (*MockIdentityServer) EXPECT ¶
func (m *MockIdentityServer) EXPECT() *MockIdentityServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockIdentityServer) GetPluginInfo ¶
func (m *MockIdentityServer) GetPluginInfo(arg0 context.Context, arg1 *csi.GetPluginInfoRequest) (*csi.GetPluginInfoResponse, error)
GetPluginInfo mocks base method
func (*MockIdentityServer) GetSupportedVersions ¶
func (m *MockIdentityServer) GetSupportedVersions(arg0 context.Context, arg1 *csi.GetSupportedVersionsRequest) (*csi.GetSupportedVersionsResponse, error)
GetSupportedVersions mocks base method
type MockIdentityServerMockRecorder ¶
type MockIdentityServerMockRecorder struct {
// contains filtered or unexported fields
}
MockIdentityServerMockRecorder is the mock recorder for MockIdentityServer
func (*MockIdentityServerMockRecorder) GetPluginInfo ¶
func (mr *MockIdentityServerMockRecorder) GetPluginInfo(arg0, arg1 interface{}) *gomock.Call
GetPluginInfo indicates an expected call of GetPluginInfo
func (*MockIdentityServerMockRecorder) GetSupportedVersions ¶
func (mr *MockIdentityServerMockRecorder) GetSupportedVersions(arg0, arg1 interface{}) *gomock.Call
GetSupportedVersions indicates an expected call of GetSupportedVersions
type MockNodeServer ¶
type MockNodeServer struct {
// contains filtered or unexported fields
}
MockNodeServer is a mock of NodeServer interface
func NewMockNodeServer ¶
func NewMockNodeServer(ctrl *gomock.Controller) *MockNodeServer
NewMockNodeServer creates a new mock instance
func (*MockNodeServer) EXPECT ¶
func (m *MockNodeServer) EXPECT() *MockNodeServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockNodeServer) GetNodeID ¶
func (m *MockNodeServer) GetNodeID(arg0 context.Context, arg1 *csi.GetNodeIDRequest) (*csi.GetNodeIDResponse, error)
GetNodeID mocks base method
func (*MockNodeServer) NodeGetCapabilities ¶
func (m *MockNodeServer) NodeGetCapabilities(arg0 context.Context, arg1 *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error)
NodeGetCapabilities mocks base method
func (*MockNodeServer) NodeProbe ¶
func (m *MockNodeServer) NodeProbe(arg0 context.Context, arg1 *csi.NodeProbeRequest) (*csi.NodeProbeResponse, error)
NodeProbe mocks base method
func (*MockNodeServer) NodePublishVolume ¶
func (m *MockNodeServer) NodePublishVolume(arg0 context.Context, arg1 *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)
NodePublishVolume mocks base method
func (*MockNodeServer) NodeUnpublishVolume ¶
func (m *MockNodeServer) NodeUnpublishVolume(arg0 context.Context, arg1 *csi.NodeUnpublishVolumeRequest) (*csi.NodeUnpublishVolumeResponse, error)
NodeUnpublishVolume mocks base method
type MockNodeServerMockRecorder ¶
type MockNodeServerMockRecorder struct {
// contains filtered or unexported fields
}
MockNodeServerMockRecorder is the mock recorder for MockNodeServer
func (*MockNodeServerMockRecorder) GetNodeID ¶
func (mr *MockNodeServerMockRecorder) GetNodeID(arg0, arg1 interface{}) *gomock.Call
GetNodeID indicates an expected call of GetNodeID
func (*MockNodeServerMockRecorder) NodeGetCapabilities ¶
func (mr *MockNodeServerMockRecorder) NodeGetCapabilities(arg0, arg1 interface{}) *gomock.Call
NodeGetCapabilities indicates an expected call of NodeGetCapabilities
func (*MockNodeServerMockRecorder) NodeProbe ¶
func (mr *MockNodeServerMockRecorder) NodeProbe(arg0, arg1 interface{}) *gomock.Call
NodeProbe indicates an expected call of NodeProbe
func (*MockNodeServerMockRecorder) NodePublishVolume ¶
func (mr *MockNodeServerMockRecorder) NodePublishVolume(arg0, arg1 interface{}) *gomock.Call
NodePublishVolume indicates an expected call of NodePublishVolume
func (*MockNodeServerMockRecorder) NodeUnpublishVolume ¶
func (mr *MockNodeServerMockRecorder) NodeUnpublishVolume(arg0, arg1 interface{}) *gomock.Call
NodeUnpublishVolume indicates an expected call of NodeUnpublishVolume