Documentation ¶
Overview ¶
Package server implements mock gRPC services
Index ¶
- func FindStub(service, method string, in, out interface{}) error
- type GoopCSI
- func (s *GoopCSI) CreateNullVolume(_ context2.Context, _ *pb.CreateNullVolumeRequest) (*pb.NullVolume, error)
- func (s *GoopCSI) CreateNvmeController(_ context.Context, _ *pb.CreateNvmeControllerRequest) (*pb.NvmeController, error)
- func (s *GoopCSI) CreateNvmeNamespace(_ context.Context, request *pb.CreateNvmeNamespaceRequest) (*pb.NvmeNamespace, error)
- func (s *GoopCSI) CreateNvmePath(_ context2.Context, request *pb.CreateNvmePathRequest) (*pb.NvmePath, error)
- func (s *GoopCSI) CreateNvmeRemoteController(_ context2.Context, request *pb.CreateNvmeRemoteControllerRequest) (*pb.NvmeRemoteController, error)
- func (s *GoopCSI) CreateNvmeSubsystem(_ context.Context, request *pb.CreateNvmeSubsystemRequest) (*pb.NvmeSubsystem, error)
- func (s *GoopCSI) DeleteNullVolume(_ context2.Context, _ *pb.DeleteNullVolumeRequest) (*emptypb.Empty, error)
- func (s *GoopCSI) DeleteNvmeController(_ context.Context, _ *pb.DeleteNvmeControllerRequest) (*emptypb.Empty, error)
- func (s *GoopCSI) DeleteNvmeNamespace(_ context.Context, request *pb.DeleteNvmeNamespaceRequest) (*emptypb.Empty, error)
- func (s *GoopCSI) DeleteNvmePath(_ context2.Context, request *pb.DeleteNvmePathRequest) (*emptypb.Empty, error)
- func (s *GoopCSI) DeleteNvmeRemoteController(_ context2.Context, request *pb.DeleteNvmeRemoteControllerRequest) (*emptypb.Empty, error)
- func (s *GoopCSI) DeleteNvmeSubsystem(_ context.Context, _ *pb.DeleteNvmeSubsystemRequest) (*emptypb.Empty, error)
- func (s *GoopCSI) GetNullVolume(_ context2.Context, _ *pb.GetNullVolumeRequest) (*pb.NullVolume, error)
- func (s *GoopCSI) GetNvmeController(_ context.Context, request *pb.GetNvmeControllerRequest) (*pb.NvmeController, error)
- func (s *GoopCSI) GetNvmeNamespace(_ context.Context, _ *pb.GetNvmeNamespaceRequest) (*pb.NvmeNamespace, error)
- func (s *GoopCSI) GetNvmePath(_ context2.Context, _ *pb.GetNvmePathRequest) (*pb.NvmePath, error)
- func (s *GoopCSI) GetNvmeRemoteController(_ context2.Context, request *pb.GetNvmeRemoteControllerRequest) (*pb.NvmeRemoteController, error)
- func (s *GoopCSI) GetNvmeSubsystem(_ context.Context, request *pb.GetNvmeSubsystemRequest) (*pb.NvmeSubsystem, error)
- func (s *GoopCSI) ListNullVolumes(_ context2.Context, request *pb.ListNullVolumesRequest) (*pb.ListNullVolumesResponse, error)
- func (s *GoopCSI) ListNvmeControllers(_ context.Context, _ *pb.ListNvmeControllersRequest) (*pb.ListNvmeControllersResponse, error)
- func (s *GoopCSI) ListNvmeNamespaces(_ context.Context, _ *pb.ListNvmeNamespacesRequest) (*pb.ListNvmeNamespacesResponse, error)
- func (s *GoopCSI) ListNvmePaths(_ context2.Context, _ *pb.ListNvmePathsRequest) (*pb.ListNvmePathsResponse, error)
- func (s *GoopCSI) ListNvmeRemoteControllers(_ context2.Context, request *pb.ListNvmeRemoteControllersRequest) (*pb.ListNvmeRemoteControllersResponse, error)
- func (s *GoopCSI) ListNvmeRemoteNamespaces(context2.Context, *pb.ListNvmeRemoteNamespacesRequest) (*pb.ListNvmeRemoteNamespacesResponse, error)
- func (s *GoopCSI) ListNvmeSubsystems(_ context.Context, _ *pb.ListNvmeSubsystemsRequest) (*pb.ListNvmeSubsystemsResponse, error)
- func (s *GoopCSI) ResetNvmeRemoteController(_ context2.Context, _ *pb.ResetNvmeRemoteControllerRequest) (*emptypb.Empty, error)
- func (s *GoopCSI) StatsNullVolume(_ context2.Context, _ *pb.StatsNullVolumeRequest) (*pb.StatsNullVolumeResponse, error)
- func (s *GoopCSI) StatsNvmeController(_ context.Context, _ *pb.StatsNvmeControllerRequest) (*pb.StatsNvmeControllerResponse, error)
- func (s *GoopCSI) StatsNvmeNamespace(_ context.Context, _ *pb.StatsNvmeNamespaceRequest) (*pb.StatsNvmeNamespaceResponse, error)
- func (s *GoopCSI) StatsNvmePath(_ context2.Context, _ *pb.StatsNvmePathRequest) (*pb.StatsNvmePathResponse, error)
- func (s *GoopCSI) StatsNvmeRemoteController(_ context2.Context, _ *pb.StatsNvmeRemoteControllerRequest) (*pb.StatsNvmeRemoteControllerResponse, error)
- func (s *GoopCSI) StatsNvmeSubsystem(_ context.Context, _ *pb.StatsNvmeSubsystemRequest) (*pb.StatsNvmeSubsystemResponse, error)
- func (s *GoopCSI) UpdateNullVolume(_ context2.Context, _ *pb.UpdateNullVolumeRequest) (*pb.NullVolume, error)
- func (s *GoopCSI) UpdateNvmeController(_ context.Context, _ *pb.UpdateNvmeControllerRequest) (*pb.NvmeController, error)
- func (s *GoopCSI) UpdateNvmeNamespace(_ context.Context, _ *pb.UpdateNvmeNamespaceRequest) (*pb.NvmeNamespace, error)
- func (s *GoopCSI) UpdateNvmePath(_ context2.Context, _ *pb.UpdateNvmePathRequest) (*pb.NvmePath, error)
- func (s *GoopCSI) UpdateNvmeRemoteController(_ context2.Context, _ *pb.UpdateNvmeRemoteControllerRequest) (*pb.NvmeRemoteController, error)
- func (s *GoopCSI) UpdateNvmeSubsystem(_ context.Context, _ *pb.UpdateNvmeSubsystemRequest) (*pb.NvmeSubsystem, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GoopCSI ¶
type GoopCSI struct{}
GoopCSI mock gRPC server to implement mock service calls
func (*GoopCSI) CreateNullVolume ¶ added in v0.2.0
func (s *GoopCSI) CreateNullVolume(_ context2.Context, _ *pb.CreateNullVolumeRequest) (*pb.NullVolume, error)
CreateNullVolume creates a mock NullVolume
func (*GoopCSI) CreateNvmeController ¶ added in v0.2.0
func (s *GoopCSI) CreateNvmeController(_ context.Context, _ *pb.CreateNvmeControllerRequest) (*pb.NvmeController, error)
CreateNvmeController creates a mock Nvme controller
func (*GoopCSI) CreateNvmeNamespace ¶ added in v0.2.0
func (s *GoopCSI) CreateNvmeNamespace(_ context.Context, request *pb.CreateNvmeNamespaceRequest) (*pb.NvmeNamespace, error)
CreateNvmeNamespace creates a mock Nvme namespace
func (*GoopCSI) CreateNvmePath ¶ added in v0.2.0
func (s *GoopCSI) CreateNvmePath(_ context2.Context, request *pb.CreateNvmePathRequest) (*pb.NvmePath, error)
CreateNvmePath creates mock nvme path
func (*GoopCSI) CreateNvmeRemoteController ¶ added in v0.2.0
func (s *GoopCSI) CreateNvmeRemoteController(_ context2.Context, request *pb.CreateNvmeRemoteControllerRequest) (*pb.NvmeRemoteController, error)
CreateNvmeRemoteController creates a mock Nvme Remote controller
func (*GoopCSI) CreateNvmeSubsystem ¶ added in v0.2.0
func (s *GoopCSI) CreateNvmeSubsystem(_ context.Context, request *pb.CreateNvmeSubsystemRequest) (*pb.NvmeSubsystem, error)
CreateNvmeSubsystem creates mock Nvme subsystem
func (*GoopCSI) DeleteNullVolume ¶ added in v0.2.0
func (s *GoopCSI) DeleteNullVolume(_ context2.Context, _ *pb.DeleteNullVolumeRequest) (*emptypb.Empty, error)
DeleteNullVolume Deletes a mock NullVolume
func (*GoopCSI) DeleteNvmeController ¶ added in v0.2.0
func (s *GoopCSI) DeleteNvmeController(_ context.Context, _ *pb.DeleteNvmeControllerRequest) (*emptypb.Empty, error)
DeleteNvmeController deletes a mock Nvme controller
func (*GoopCSI) DeleteNvmeNamespace ¶ added in v0.2.0
func (s *GoopCSI) DeleteNvmeNamespace(_ context.Context, request *pb.DeleteNvmeNamespaceRequest) (*emptypb.Empty, error)
DeleteNvmeNamespace deletes a mock Nvme namespace
func (*GoopCSI) DeleteNvmePath ¶ added in v0.2.0
func (s *GoopCSI) DeleteNvmePath(_ context2.Context, request *pb.DeleteNvmePathRequest) (*emptypb.Empty, error)
DeleteNvmePath deletes mock nvme path
func (*GoopCSI) DeleteNvmeRemoteController ¶ added in v0.2.0
func (s *GoopCSI) DeleteNvmeRemoteController(_ context2.Context, request *pb.DeleteNvmeRemoteControllerRequest) (*emptypb.Empty, error)
DeleteNvmeRemoteController deletes a mock NvmeRemote Controller
func (*GoopCSI) DeleteNvmeSubsystem ¶ added in v0.2.0
func (s *GoopCSI) DeleteNvmeSubsystem(_ context.Context, _ *pb.DeleteNvmeSubsystemRequest) (*emptypb.Empty, error)
DeleteNvmeSubsystem deletes mock Nvme subsystem
func (*GoopCSI) GetNullVolume ¶ added in v0.2.0
func (s *GoopCSI) GetNullVolume(_ context2.Context, _ *pb.GetNullVolumeRequest) (*pb.NullVolume, error)
GetNullVolume Gets mock NullVolume
func (*GoopCSI) GetNvmeController ¶ added in v0.2.0
func (s *GoopCSI) GetNvmeController(_ context.Context, request *pb.GetNvmeControllerRequest) (*pb.NvmeController, error)
GetNvmeController gets a mock Nvme controller
func (*GoopCSI) GetNvmeNamespace ¶ added in v0.2.0
func (s *GoopCSI) GetNvmeNamespace(_ context.Context, _ *pb.GetNvmeNamespaceRequest) (*pb.NvmeNamespace, error)
GetNvmeNamespace gets a mock namespace
func (*GoopCSI) GetNvmePath ¶ added in v0.2.0
GetNvmePath Gets an Nvme Remote Path
func (*GoopCSI) GetNvmeRemoteController ¶ added in v0.2.0
func (s *GoopCSI) GetNvmeRemoteController(_ context2.Context, request *pb.GetNvmeRemoteControllerRequest) (*pb.NvmeRemoteController, error)
GetNvmeRemoteController Gets an Nvme Remote controller
func (*GoopCSI) GetNvmeSubsystem ¶ added in v0.2.0
func (s *GoopCSI) GetNvmeSubsystem(_ context.Context, request *pb.GetNvmeSubsystemRequest) (*pb.NvmeSubsystem, error)
GetNvmeSubsystem gets a mock Nvme subsystem
func (*GoopCSI) ListNullVolumes ¶ added in v0.2.0
func (s *GoopCSI) ListNullVolumes(_ context2.Context, request *pb.ListNullVolumesRequest) (*pb.ListNullVolumesResponse, error)
ListNullVolumes Lists mock nullDebugs
func (*GoopCSI) ListNvmeControllers ¶ added in v0.2.0
func (s *GoopCSI) ListNvmeControllers(_ context.Context, _ *pb.ListNvmeControllersRequest) (*pb.ListNvmeControllersResponse, error)
ListNvmeControllers lists mock controllers
func (*GoopCSI) ListNvmeNamespaces ¶ added in v0.2.0
func (s *GoopCSI) ListNvmeNamespaces(_ context.Context, _ *pb.ListNvmeNamespacesRequest) (*pb.ListNvmeNamespacesResponse, error)
ListNvmeNamespaces lists mock namespaces
func (*GoopCSI) ListNvmePaths ¶ added in v0.2.0
func (s *GoopCSI) ListNvmePaths(_ context2.Context, _ *pb.ListNvmePathsRequest) (*pb.ListNvmePathsResponse, error)
ListNvmePaths Lists mock NvmeRemote Paths
func (*GoopCSI) ListNvmeRemoteControllers ¶ added in v0.2.0
func (s *GoopCSI) ListNvmeRemoteControllers(_ context2.Context, request *pb.ListNvmeRemoteControllersRequest) (*pb.ListNvmeRemoteControllersResponse, error)
ListNvmeRemoteControllers Lists mock NvmeRemote Controllers
func (*GoopCSI) ListNvmeRemoteNamespaces ¶ added in v0.2.0
func (s *GoopCSI) ListNvmeRemoteNamespaces(context2.Context, *pb.ListNvmeRemoteNamespacesRequest) (*pb.ListNvmeRemoteNamespacesResponse, error)
ListNvmeRemoteNamespaces lists mock remote nvme namespaces
func (*GoopCSI) ListNvmeSubsystems ¶ added in v0.2.0
func (s *GoopCSI) ListNvmeSubsystems(_ context.Context, _ *pb.ListNvmeSubsystemsRequest) (*pb.ListNvmeSubsystemsResponse, error)
ListNvmeSubsystems lists mock Nvme subsystems
func (*GoopCSI) ResetNvmeRemoteController ¶ added in v0.2.0
func (s *GoopCSI) ResetNvmeRemoteController(_ context2.Context, _ *pb.ResetNvmeRemoteControllerRequest) (*emptypb.Empty, error)
ResetNvmeRemoteController Resets mock Remote Controller
func (*GoopCSI) StatsNullVolume ¶ added in v0.2.0
func (s *GoopCSI) StatsNullVolume(_ context2.Context, _ *pb.StatsNullVolumeRequest) (*pb.StatsNullVolumeResponse, error)
StatsNullVolume gets mock StatsNullVolume
func (*GoopCSI) StatsNvmeController ¶ added in v0.2.0
func (s *GoopCSI) StatsNvmeController(_ context.Context, _ *pb.StatsNvmeControllerRequest) (*pb.StatsNvmeControllerResponse, error)
StatsNvmeController gets mock stats
func (*GoopCSI) StatsNvmeNamespace ¶ added in v0.2.0
func (s *GoopCSI) StatsNvmeNamespace(_ context.Context, _ *pb.StatsNvmeNamespaceRequest) (*pb.StatsNvmeNamespaceResponse, error)
StatsNvmeNamespace gets mock namespace stats
func (*GoopCSI) StatsNvmePath ¶ added in v0.2.0
func (s *GoopCSI) StatsNvmePath(_ context2.Context, _ *pb.StatsNvmePathRequest) (*pb.StatsNvmePathResponse, error)
StatsNvmePath gets mock stats
func (*GoopCSI) StatsNvmeRemoteController ¶ added in v0.2.0
func (s *GoopCSI) StatsNvmeRemoteController(_ context2.Context, _ *pb.StatsNvmeRemoteControllerRequest) (*pb.StatsNvmeRemoteControllerResponse, error)
StatsNvmeRemoteController gets mock stats
func (*GoopCSI) StatsNvmeSubsystem ¶ added in v0.2.0
func (s *GoopCSI) StatsNvmeSubsystem(_ context.Context, _ *pb.StatsNvmeSubsystemRequest) (*pb.StatsNvmeSubsystemResponse, error)
StatsNvmeSubsystem gets mock subsystem stats
func (*GoopCSI) UpdateNullVolume ¶ added in v0.2.0
func (s *GoopCSI) UpdateNullVolume(_ context2.Context, _ *pb.UpdateNullVolumeRequest) (*pb.NullVolume, error)
UpdateNullVolume Updated mock NullVolume
func (*GoopCSI) UpdateNvmeController ¶ added in v0.2.0
func (s *GoopCSI) UpdateNvmeController(_ context.Context, _ *pb.UpdateNvmeControllerRequest) (*pb.NvmeController, error)
UpdateNvmeController updates a mock Nvme controller
func (*GoopCSI) UpdateNvmeNamespace ¶ added in v0.2.0
func (s *GoopCSI) UpdateNvmeNamespace(_ context.Context, _ *pb.UpdateNvmeNamespaceRequest) (*pb.NvmeNamespace, error)
UpdateNvmeNamespace updates a mock namespace
func (*GoopCSI) UpdateNvmePath ¶ added in v0.2.0
func (s *GoopCSI) UpdateNvmePath(_ context2.Context, _ *pb.UpdateNvmePathRequest) (*pb.NvmePath, error)
UpdateNvmePath updates mock Nvme Remote Path
func (*GoopCSI) UpdateNvmeRemoteController ¶ added in v0.2.0
func (s *GoopCSI) UpdateNvmeRemoteController(_ context2.Context, _ *pb.UpdateNvmeRemoteControllerRequest) (*pb.NvmeRemoteController, error)
UpdateNvmeRemoteController updates mock Nvme Remote Controller
func (*GoopCSI) UpdateNvmeSubsystem ¶ added in v0.2.0
func (s *GoopCSI) UpdateNvmeSubsystem(_ context.Context, _ *pb.UpdateNvmeSubsystemRequest) (*pb.NvmeSubsystem, error)
UpdateNvmeSubsystem updates a mock Nvme subsystem