server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package server implements mock gRPC services

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindStub

func FindStub(service, method string, in, out interface{}) error

FindStub makes request to mock grpc server

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

func (s *GoopCSI) GetNvmePath(_ context2.Context, _ *pb.GetNvmePathRequest) (*pb.NvmePath, error)

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

ListNvmeControllers lists mock controllers

func (*GoopCSI) ListNvmeNamespaces added in v0.2.0

ListNvmeNamespaces lists mock namespaces

func (*GoopCSI) ListNvmePaths added in v0.2.0

ListNvmePaths Lists mock NvmeRemote Paths

func (*GoopCSI) ListNvmeRemoteControllers added in v0.2.0

ListNvmeRemoteControllers Lists mock NvmeRemote Controllers

func (*GoopCSI) ListNvmeRemoteNamespaces added in v0.2.0

ListNvmeRemoteNamespaces lists mock remote nvme namespaces

func (*GoopCSI) ListNvmeSubsystems added in v0.2.0

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

StatsNullVolume gets mock StatsNullVolume

func (*GoopCSI) StatsNvmeController added in v0.2.0

StatsNvmeController gets mock stats

func (*GoopCSI) StatsNvmeNamespace added in v0.2.0

StatsNvmeNamespace gets mock namespace stats

func (*GoopCSI) StatsNvmePath added in v0.2.0

StatsNvmePath gets mock stats

func (*GoopCSI) StatsNvmeRemoteController added in v0.2.0

StatsNvmeRemoteController gets mock stats

func (*GoopCSI) StatsNvmeSubsystem added in v0.2.0

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

Jump to

Keyboard shortcuts

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