driver

package
v1.31.0-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoCredentials is the error when a secret is enabled but not passed in the request.
	ErrNoCredentials = errors.New("secret must be provided")
	// ErrAuthFailed is the error when the secret is incorrect.
	ErrAuthFailed = errors.New("authentication failed")
)

Functions

This section is empty.

Types

type CSICreds

type CSICreds struct {
	CreateVolumeSecret                         string
	DeleteVolumeSecret                         string
	ControllerPublishVolumeSecret              string
	ControllerUnpublishVolumeSecret            string
	NodeStageVolumeSecret                      string
	NodePublishVolumeSecret                    string
	CreateSnapshotSecret                       string
	DeleteSnapshotSecret                       string
	ControllerValidateVolumeCapabilitiesSecret string
}

CSICreds is a driver specific secret type. Drivers can have a key-val pair of secrets. This mock driver has a single string secret with secretField as the key.

type CSIDriver

type CSIDriver struct {
	// contains filtered or unexported fields
}

func NewCSIDriver

func NewCSIDriver(servers *CSIDriverServers) *CSIDriver

func (*CSIDriver) Address

func (c *CSIDriver) Address() string

func (*CSIDriver) Close

func (c *CSIDriver) Close()

func (*CSIDriver) IsRunning

func (c *CSIDriver) IsRunning() bool

func (*CSIDriver) SetDefaultCreds

func (c *CSIDriver) SetDefaultCreds()

SetDefaultCreds sets the default secrets for CSI creds.

func (*CSIDriver) Start

func (c *CSIDriver) Start(l net.Listener, interceptor grpc.UnaryServerInterceptor) error

Start runs a gRPC server with all enabled services. If an interceptor is give, then it will be used. Otherwise, an interceptor which handles simple credential checks and logs gRPC calls in JSON format will be used.

func (*CSIDriver) Stop

func (c *CSIDriver) Stop()

type CSIDriverServers

type CSIDriverServers struct {
	Controller csi.ControllerServer
	Identity   csi.IdentityServer
	Node       csi.NodeServer
}

CSIDriverServers is a unified driver component with both Controller and Node services.

type LogGRPC

type LogGRPC func(method string, request, reply interface{}, err error)

type MockCSIDriver

type MockCSIDriver struct {
	CSIDriver
	// contains filtered or unexported fields
}

func NewMockCSIDriver

func NewMockCSIDriver(servers *MockCSIDriverServers, interceptor grpc.UnaryServerInterceptor) *MockCSIDriver

func (*MockCSIDriver) Close

func (m *MockCSIDriver) Close()

func (*MockCSIDriver) Start

func (m *MockCSIDriver) Start() error

Start starts a new gRPC server listening on a random TCP loopback port.

func (*MockCSIDriver) StartOnAddress

func (m *MockCSIDriver) StartOnAddress(network, address string) error

StartOnAddress starts a new gRPC server listening on given address.

type MockCSIDriverServers

type MockCSIDriverServers struct {
	Controller *MockControllerServer
	Identity   *MockIdentityServer
	Node       *MockNodeServer
}

type MockControllerServer

type MockControllerServer struct {
	mock.Mock
}

MockControllerServer is an autogenerated mock type for the ControllerServer type

func NewMockControllerServer

func NewMockControllerServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockControllerServer

NewMockControllerServer creates a new instance of MockControllerServer. 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 (*MockControllerServer) ControllerExpandVolume

ControllerExpandVolume provides a mock function with given fields: _a0, _a1

func (*MockControllerServer) ControllerGetCapabilities

ControllerGetCapabilities provides a mock function with given fields: _a0, _a1

func (*MockControllerServer) ControllerGetVolume

ControllerGetVolume provides a mock function with given fields: _a0, _a1

func (*MockControllerServer) ControllerModifyVolume added in v1.31.0

ControllerModifyVolume provides a mock function with given fields: _a0, _a1

func (*MockControllerServer) ControllerPublishVolume

ControllerPublishVolume provides a mock function with given fields: _a0, _a1

func (*MockControllerServer) ControllerUnpublishVolume

ControllerUnpublishVolume provides a mock function with given fields: _a0, _a1

func (*MockControllerServer) CreateSnapshot

CreateSnapshot provides a mock function with given fields: _a0, _a1

func (*MockControllerServer) CreateVolume

CreateVolume provides a mock function with given fields: _a0, _a1

func (*MockControllerServer) DeleteSnapshot

DeleteSnapshot provides a mock function with given fields: _a0, _a1

func (*MockControllerServer) DeleteVolume

DeleteVolume provides a mock function with given fields: _a0, _a1

func (*MockControllerServer) EXPECT

func (*MockControllerServer) GetCapacity

GetCapacity provides a mock function with given fields: _a0, _a1

func (*MockControllerServer) ListSnapshots

ListSnapshots provides a mock function with given fields: _a0, _a1

func (*MockControllerServer) ListVolumes

ListVolumes provides a mock function with given fields: _a0, _a1

func (*MockControllerServer) ValidateVolumeCapabilities

ValidateVolumeCapabilities provides a mock function with given fields: _a0, _a1

type MockControllerServer_ControllerExpandVolume_Call added in v1.31.0

type MockControllerServer_ControllerExpandVolume_Call struct {
	*mock.Call
}

MockControllerServer_ControllerExpandVolume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ControllerExpandVolume'

func (*MockControllerServer_ControllerExpandVolume_Call) Return added in v1.31.0

func (*MockControllerServer_ControllerExpandVolume_Call) Run added in v1.31.0

type MockControllerServer_ControllerGetCapabilities_Call added in v1.31.0

type MockControllerServer_ControllerGetCapabilities_Call struct {
	*mock.Call
}

MockControllerServer_ControllerGetCapabilities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ControllerGetCapabilities'

func (*MockControllerServer_ControllerGetCapabilities_Call) Return added in v1.31.0

func (*MockControllerServer_ControllerGetCapabilities_Call) Run added in v1.31.0

type MockControllerServer_ControllerGetVolume_Call added in v1.31.0

type MockControllerServer_ControllerGetVolume_Call struct {
	*mock.Call
}

MockControllerServer_ControllerGetVolume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ControllerGetVolume'

func (*MockControllerServer_ControllerGetVolume_Call) Return added in v1.31.0

func (*MockControllerServer_ControllerGetVolume_Call) Run added in v1.31.0

func (*MockControllerServer_ControllerGetVolume_Call) RunAndReturn added in v1.31.0

type MockControllerServer_ControllerModifyVolume_Call added in v1.31.0

type MockControllerServer_ControllerModifyVolume_Call struct {
	*mock.Call
}

MockControllerServer_ControllerModifyVolume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ControllerModifyVolume'

func (*MockControllerServer_ControllerModifyVolume_Call) Return added in v1.31.0

func (*MockControllerServer_ControllerModifyVolume_Call) Run added in v1.31.0

type MockControllerServer_ControllerPublishVolume_Call added in v1.31.0

type MockControllerServer_ControllerPublishVolume_Call struct {
	*mock.Call
}

MockControllerServer_ControllerPublishVolume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ControllerPublishVolume'

func (*MockControllerServer_ControllerPublishVolume_Call) Return added in v1.31.0

func (*MockControllerServer_ControllerPublishVolume_Call) Run added in v1.31.0

type MockControllerServer_ControllerUnpublishVolume_Call added in v1.31.0

type MockControllerServer_ControllerUnpublishVolume_Call struct {
	*mock.Call
}

MockControllerServer_ControllerUnpublishVolume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ControllerUnpublishVolume'

func (*MockControllerServer_ControllerUnpublishVolume_Call) Return added in v1.31.0

func (*MockControllerServer_ControllerUnpublishVolume_Call) Run added in v1.31.0

type MockControllerServer_CreateSnapshot_Call added in v1.31.0

type MockControllerServer_CreateSnapshot_Call struct {
	*mock.Call
}

MockControllerServer_CreateSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSnapshot'

func (*MockControllerServer_CreateSnapshot_Call) Return added in v1.31.0

func (*MockControllerServer_CreateSnapshot_Call) Run added in v1.31.0

func (*MockControllerServer_CreateSnapshot_Call) RunAndReturn added in v1.31.0

type MockControllerServer_CreateVolume_Call added in v1.31.0

type MockControllerServer_CreateVolume_Call struct {
	*mock.Call
}

MockControllerServer_CreateVolume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateVolume'

func (*MockControllerServer_CreateVolume_Call) Return added in v1.31.0

func (*MockControllerServer_CreateVolume_Call) Run added in v1.31.0

func (*MockControllerServer_CreateVolume_Call) RunAndReturn added in v1.31.0

type MockControllerServer_DeleteSnapshot_Call added in v1.31.0

type MockControllerServer_DeleteSnapshot_Call struct {
	*mock.Call
}

MockControllerServer_DeleteSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSnapshot'

func (*MockControllerServer_DeleteSnapshot_Call) Return added in v1.31.0

func (*MockControllerServer_DeleteSnapshot_Call) Run added in v1.31.0

func (*MockControllerServer_DeleteSnapshot_Call) RunAndReturn added in v1.31.0

type MockControllerServer_DeleteVolume_Call added in v1.31.0

type MockControllerServer_DeleteVolume_Call struct {
	*mock.Call
}

MockControllerServer_DeleteVolume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteVolume'

func (*MockControllerServer_DeleteVolume_Call) Return added in v1.31.0

func (*MockControllerServer_DeleteVolume_Call) Run added in v1.31.0

func (*MockControllerServer_DeleteVolume_Call) RunAndReturn added in v1.31.0

type MockControllerServer_Expecter added in v1.31.0

type MockControllerServer_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockControllerServer_Expecter) ControllerExpandVolume added in v1.31.0

func (_e *MockControllerServer_Expecter) ControllerExpandVolume(_a0 interface{}, _a1 interface{}) *MockControllerServer_ControllerExpandVolume_Call

ControllerExpandVolume is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.ControllerExpandVolumeRequest

func (*MockControllerServer_Expecter) ControllerGetCapabilities added in v1.31.0

func (_e *MockControllerServer_Expecter) ControllerGetCapabilities(_a0 interface{}, _a1 interface{}) *MockControllerServer_ControllerGetCapabilities_Call

ControllerGetCapabilities is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.ControllerGetCapabilitiesRequest

func (*MockControllerServer_Expecter) ControllerGetVolume added in v1.31.0

func (_e *MockControllerServer_Expecter) ControllerGetVolume(_a0 interface{}, _a1 interface{}) *MockControllerServer_ControllerGetVolume_Call

ControllerGetVolume is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.ControllerGetVolumeRequest

func (*MockControllerServer_Expecter) ControllerModifyVolume added in v1.31.0

func (_e *MockControllerServer_Expecter) ControllerModifyVolume(_a0 interface{}, _a1 interface{}) *MockControllerServer_ControllerModifyVolume_Call

ControllerModifyVolume is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.ControllerModifyVolumeRequest

func (*MockControllerServer_Expecter) ControllerPublishVolume added in v1.31.0

func (_e *MockControllerServer_Expecter) ControllerPublishVolume(_a0 interface{}, _a1 interface{}) *MockControllerServer_ControllerPublishVolume_Call

ControllerPublishVolume is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.ControllerPublishVolumeRequest

func (*MockControllerServer_Expecter) ControllerUnpublishVolume added in v1.31.0

func (_e *MockControllerServer_Expecter) ControllerUnpublishVolume(_a0 interface{}, _a1 interface{}) *MockControllerServer_ControllerUnpublishVolume_Call

ControllerUnpublishVolume is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.ControllerUnpublishVolumeRequest

func (*MockControllerServer_Expecter) CreateSnapshot added in v1.31.0

func (_e *MockControllerServer_Expecter) CreateSnapshot(_a0 interface{}, _a1 interface{}) *MockControllerServer_CreateSnapshot_Call

CreateSnapshot is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.CreateSnapshotRequest

func (*MockControllerServer_Expecter) CreateVolume added in v1.31.0

func (_e *MockControllerServer_Expecter) CreateVolume(_a0 interface{}, _a1 interface{}) *MockControllerServer_CreateVolume_Call

CreateVolume is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.CreateVolumeRequest

func (*MockControllerServer_Expecter) DeleteSnapshot added in v1.31.0

func (_e *MockControllerServer_Expecter) DeleteSnapshot(_a0 interface{}, _a1 interface{}) *MockControllerServer_DeleteSnapshot_Call

DeleteSnapshot is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.DeleteSnapshotRequest

func (*MockControllerServer_Expecter) DeleteVolume added in v1.31.0

func (_e *MockControllerServer_Expecter) DeleteVolume(_a0 interface{}, _a1 interface{}) *MockControllerServer_DeleteVolume_Call

DeleteVolume is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.DeleteVolumeRequest

func (*MockControllerServer_Expecter) GetCapacity added in v1.31.0

func (_e *MockControllerServer_Expecter) GetCapacity(_a0 interface{}, _a1 interface{}) *MockControllerServer_GetCapacity_Call

GetCapacity is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.GetCapacityRequest

func (*MockControllerServer_Expecter) ListSnapshots added in v1.31.0

func (_e *MockControllerServer_Expecter) ListSnapshots(_a0 interface{}, _a1 interface{}) *MockControllerServer_ListSnapshots_Call

ListSnapshots is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.ListSnapshotsRequest

func (*MockControllerServer_Expecter) ListVolumes added in v1.31.0

func (_e *MockControllerServer_Expecter) ListVolumes(_a0 interface{}, _a1 interface{}) *MockControllerServer_ListVolumes_Call

ListVolumes is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.ListVolumesRequest

func (*MockControllerServer_Expecter) ValidateVolumeCapabilities added in v1.31.0

func (_e *MockControllerServer_Expecter) ValidateVolumeCapabilities(_a0 interface{}, _a1 interface{}) *MockControllerServer_ValidateVolumeCapabilities_Call

ValidateVolumeCapabilities is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.ValidateVolumeCapabilitiesRequest

type MockControllerServer_GetCapacity_Call added in v1.31.0

type MockControllerServer_GetCapacity_Call struct {
	*mock.Call
}

MockControllerServer_GetCapacity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCapacity'

func (*MockControllerServer_GetCapacity_Call) Return added in v1.31.0

func (*MockControllerServer_GetCapacity_Call) Run added in v1.31.0

func (*MockControllerServer_GetCapacity_Call) RunAndReturn added in v1.31.0

type MockControllerServer_ListSnapshots_Call added in v1.31.0

type MockControllerServer_ListSnapshots_Call struct {
	*mock.Call
}

MockControllerServer_ListSnapshots_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSnapshots'

func (*MockControllerServer_ListSnapshots_Call) Return added in v1.31.0

func (*MockControllerServer_ListSnapshots_Call) Run added in v1.31.0

func (*MockControllerServer_ListSnapshots_Call) RunAndReturn added in v1.31.0

type MockControllerServer_ListVolumes_Call added in v1.31.0

type MockControllerServer_ListVolumes_Call struct {
	*mock.Call
}

MockControllerServer_ListVolumes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListVolumes'

func (*MockControllerServer_ListVolumes_Call) Return added in v1.31.0

func (*MockControllerServer_ListVolumes_Call) Run added in v1.31.0

func (*MockControllerServer_ListVolumes_Call) RunAndReturn added in v1.31.0

type MockControllerServer_ValidateVolumeCapabilities_Call added in v1.31.0

type MockControllerServer_ValidateVolumeCapabilities_Call struct {
	*mock.Call
}

MockControllerServer_ValidateVolumeCapabilities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateVolumeCapabilities'

func (*MockControllerServer_ValidateVolumeCapabilities_Call) Return added in v1.31.0

func (*MockControllerServer_ValidateVolumeCapabilities_Call) Run added in v1.31.0

type MockIdentityServer

type MockIdentityServer struct {
	mock.Mock
}

MockIdentityServer is an autogenerated mock type for the IdentityServer type

func NewMockIdentityServer

func NewMockIdentityServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIdentityServer

NewMockIdentityServer creates a new instance of MockIdentityServer. 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 (*MockIdentityServer) EXPECT

func (*MockIdentityServer) GetPluginCapabilities

GetPluginCapabilities provides a mock function with given fields: _a0, _a1

func (*MockIdentityServer) GetPluginInfo

GetPluginInfo provides a mock function with given fields: _a0, _a1

func (*MockIdentityServer) Probe

Probe provides a mock function with given fields: _a0, _a1

type MockIdentityServer_Expecter added in v1.31.0

type MockIdentityServer_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockIdentityServer_Expecter) GetPluginCapabilities added in v1.31.0

func (_e *MockIdentityServer_Expecter) GetPluginCapabilities(_a0 interface{}, _a1 interface{}) *MockIdentityServer_GetPluginCapabilities_Call

GetPluginCapabilities is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.GetPluginCapabilitiesRequest

func (*MockIdentityServer_Expecter) GetPluginInfo added in v1.31.0

func (_e *MockIdentityServer_Expecter) GetPluginInfo(_a0 interface{}, _a1 interface{}) *MockIdentityServer_GetPluginInfo_Call

GetPluginInfo is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.GetPluginInfoRequest

func (*MockIdentityServer_Expecter) Probe added in v1.31.0

func (_e *MockIdentityServer_Expecter) Probe(_a0 interface{}, _a1 interface{}) *MockIdentityServer_Probe_Call

Probe is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.ProbeRequest

type MockIdentityServer_GetPluginCapabilities_Call added in v1.31.0

type MockIdentityServer_GetPluginCapabilities_Call struct {
	*mock.Call
}

MockIdentityServer_GetPluginCapabilities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPluginCapabilities'

func (*MockIdentityServer_GetPluginCapabilities_Call) Return added in v1.31.0

func (*MockIdentityServer_GetPluginCapabilities_Call) Run added in v1.31.0

func (*MockIdentityServer_GetPluginCapabilities_Call) RunAndReturn added in v1.31.0

type MockIdentityServer_GetPluginInfo_Call added in v1.31.0

type MockIdentityServer_GetPluginInfo_Call struct {
	*mock.Call
}

MockIdentityServer_GetPluginInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPluginInfo'

func (*MockIdentityServer_GetPluginInfo_Call) Return added in v1.31.0

func (*MockIdentityServer_GetPluginInfo_Call) Run added in v1.31.0

func (*MockIdentityServer_GetPluginInfo_Call) RunAndReturn added in v1.31.0

type MockIdentityServer_Probe_Call added in v1.31.0

type MockIdentityServer_Probe_Call struct {
	*mock.Call
}

MockIdentityServer_Probe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Probe'

func (*MockIdentityServer_Probe_Call) Return added in v1.31.0

func (*MockIdentityServer_Probe_Call) Run added in v1.31.0

func (*MockIdentityServer_Probe_Call) RunAndReturn added in v1.31.0

type MockNodeServer

type MockNodeServer struct {
	mock.Mock
}

MockNodeServer is an autogenerated mock type for the NodeServer type

func NewMockNodeServer

func NewMockNodeServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockNodeServer

NewMockNodeServer creates a new instance of MockNodeServer. 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 (*MockNodeServer) EXPECT

func (*MockNodeServer) NodeExpandVolume

NodeExpandVolume provides a mock function with given fields: _a0, _a1

func (*MockNodeServer) NodeGetCapabilities

NodeGetCapabilities provides a mock function with given fields: _a0, _a1

func (*MockNodeServer) NodeGetInfo

NodeGetInfo provides a mock function with given fields: _a0, _a1

func (*MockNodeServer) NodeGetVolumeStats

NodeGetVolumeStats provides a mock function with given fields: _a0, _a1

func (*MockNodeServer) NodePublishVolume

NodePublishVolume provides a mock function with given fields: _a0, _a1

func (*MockNodeServer) NodeStageVolume

NodeStageVolume provides a mock function with given fields: _a0, _a1

func (*MockNodeServer) NodeUnpublishVolume

NodeUnpublishVolume provides a mock function with given fields: _a0, _a1

func (*MockNodeServer) NodeUnstageVolume

NodeUnstageVolume provides a mock function with given fields: _a0, _a1

type MockNodeServer_Expecter added in v1.31.0

type MockNodeServer_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockNodeServer_Expecter) NodeExpandVolume added in v1.31.0

func (_e *MockNodeServer_Expecter) NodeExpandVolume(_a0 interface{}, _a1 interface{}) *MockNodeServer_NodeExpandVolume_Call

NodeExpandVolume is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.NodeExpandVolumeRequest

func (*MockNodeServer_Expecter) NodeGetCapabilities added in v1.31.0

func (_e *MockNodeServer_Expecter) NodeGetCapabilities(_a0 interface{}, _a1 interface{}) *MockNodeServer_NodeGetCapabilities_Call

NodeGetCapabilities is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.NodeGetCapabilitiesRequest

func (*MockNodeServer_Expecter) NodeGetInfo added in v1.31.0

func (_e *MockNodeServer_Expecter) NodeGetInfo(_a0 interface{}, _a1 interface{}) *MockNodeServer_NodeGetInfo_Call

NodeGetInfo is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.NodeGetInfoRequest

func (*MockNodeServer_Expecter) NodeGetVolumeStats added in v1.31.0

func (_e *MockNodeServer_Expecter) NodeGetVolumeStats(_a0 interface{}, _a1 interface{}) *MockNodeServer_NodeGetVolumeStats_Call

NodeGetVolumeStats is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.NodeGetVolumeStatsRequest

func (*MockNodeServer_Expecter) NodePublishVolume added in v1.31.0

func (_e *MockNodeServer_Expecter) NodePublishVolume(_a0 interface{}, _a1 interface{}) *MockNodeServer_NodePublishVolume_Call

NodePublishVolume is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.NodePublishVolumeRequest

func (*MockNodeServer_Expecter) NodeStageVolume added in v1.31.0

func (_e *MockNodeServer_Expecter) NodeStageVolume(_a0 interface{}, _a1 interface{}) *MockNodeServer_NodeStageVolume_Call

NodeStageVolume is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.NodeStageVolumeRequest

func (*MockNodeServer_Expecter) NodeUnpublishVolume added in v1.31.0

func (_e *MockNodeServer_Expecter) NodeUnpublishVolume(_a0 interface{}, _a1 interface{}) *MockNodeServer_NodeUnpublishVolume_Call

NodeUnpublishVolume is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.NodeUnpublishVolumeRequest

func (*MockNodeServer_Expecter) NodeUnstageVolume added in v1.31.0

func (_e *MockNodeServer_Expecter) NodeUnstageVolume(_a0 interface{}, _a1 interface{}) *MockNodeServer_NodeUnstageVolume_Call

NodeUnstageVolume is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *csi.NodeUnstageVolumeRequest

type MockNodeServer_NodeExpandVolume_Call added in v1.31.0

type MockNodeServer_NodeExpandVolume_Call struct {
	*mock.Call
}

MockNodeServer_NodeExpandVolume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeExpandVolume'

func (*MockNodeServer_NodeExpandVolume_Call) Return added in v1.31.0

func (*MockNodeServer_NodeExpandVolume_Call) Run added in v1.31.0

func (*MockNodeServer_NodeExpandVolume_Call) RunAndReturn added in v1.31.0

type MockNodeServer_NodeGetCapabilities_Call added in v1.31.0

type MockNodeServer_NodeGetCapabilities_Call struct {
	*mock.Call
}

MockNodeServer_NodeGetCapabilities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeGetCapabilities'

func (*MockNodeServer_NodeGetCapabilities_Call) Return added in v1.31.0

func (*MockNodeServer_NodeGetCapabilities_Call) Run added in v1.31.0

func (*MockNodeServer_NodeGetCapabilities_Call) RunAndReturn added in v1.31.0

type MockNodeServer_NodeGetInfo_Call added in v1.31.0

type MockNodeServer_NodeGetInfo_Call struct {
	*mock.Call
}

MockNodeServer_NodeGetInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeGetInfo'

func (*MockNodeServer_NodeGetInfo_Call) Return added in v1.31.0

func (*MockNodeServer_NodeGetInfo_Call) Run added in v1.31.0

func (*MockNodeServer_NodeGetInfo_Call) RunAndReturn added in v1.31.0

type MockNodeServer_NodeGetVolumeStats_Call added in v1.31.0

type MockNodeServer_NodeGetVolumeStats_Call struct {
	*mock.Call
}

MockNodeServer_NodeGetVolumeStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeGetVolumeStats'

func (*MockNodeServer_NodeGetVolumeStats_Call) Return added in v1.31.0

func (*MockNodeServer_NodeGetVolumeStats_Call) Run added in v1.31.0

func (*MockNodeServer_NodeGetVolumeStats_Call) RunAndReturn added in v1.31.0

type MockNodeServer_NodePublishVolume_Call added in v1.31.0

type MockNodeServer_NodePublishVolume_Call struct {
	*mock.Call
}

MockNodeServer_NodePublishVolume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodePublishVolume'

func (*MockNodeServer_NodePublishVolume_Call) Return added in v1.31.0

func (*MockNodeServer_NodePublishVolume_Call) Run added in v1.31.0

func (*MockNodeServer_NodePublishVolume_Call) RunAndReturn added in v1.31.0

type MockNodeServer_NodeStageVolume_Call added in v1.31.0

type MockNodeServer_NodeStageVolume_Call struct {
	*mock.Call
}

MockNodeServer_NodeStageVolume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeStageVolume'

func (*MockNodeServer_NodeStageVolume_Call) Return added in v1.31.0

func (*MockNodeServer_NodeStageVolume_Call) Run added in v1.31.0

func (*MockNodeServer_NodeStageVolume_Call) RunAndReturn added in v1.31.0

type MockNodeServer_NodeUnpublishVolume_Call added in v1.31.0

type MockNodeServer_NodeUnpublishVolume_Call struct {
	*mock.Call
}

MockNodeServer_NodeUnpublishVolume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeUnpublishVolume'

func (*MockNodeServer_NodeUnpublishVolume_Call) Return added in v1.31.0

func (*MockNodeServer_NodeUnpublishVolume_Call) Run added in v1.31.0

func (*MockNodeServer_NodeUnpublishVolume_Call) RunAndReturn added in v1.31.0

type MockNodeServer_NodeUnstageVolume_Call added in v1.31.0

type MockNodeServer_NodeUnstageVolume_Call struct {
	*mock.Call
}

MockNodeServer_NodeUnstageVolume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeUnstageVolume'

func (*MockNodeServer_NodeUnstageVolume_Call) Return added in v1.31.0

func (*MockNodeServer_NodeUnstageVolume_Call) Run added in v1.31.0

func (*MockNodeServer_NodeUnstageVolume_Call) RunAndReturn added in v1.31.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL