smrpc

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_longhorn_longhorn_share_manager_pkg_rpc_smrpc_proto protoreflect.FileDescriptor

Functions

func RegisterShareManagerServiceServer

func RegisterShareManagerServiceServer(s *grpc.Server, srv ShareManagerServiceServer)

Types

type FilesystemTrimRequest

type FilesystemTrimRequest struct {
	EncryptedDevice bool `protobuf:"varint,1,opt,name=encrypted_device,json=encryptedDevice,proto3" json:"encrypted_device,omitempty"`
	// contains filtered or unexported fields
}

func (*FilesystemTrimRequest) Descriptor deprecated

func (*FilesystemTrimRequest) Descriptor() ([]byte, []int)

Deprecated: Use FilesystemTrimRequest.ProtoReflect.Descriptor instead.

func (*FilesystemTrimRequest) GetEncryptedDevice

func (x *FilesystemTrimRequest) GetEncryptedDevice() bool

func (*FilesystemTrimRequest) ProtoMessage

func (*FilesystemTrimRequest) ProtoMessage()

func (*FilesystemTrimRequest) ProtoReflect added in v1.6.0

func (x *FilesystemTrimRequest) ProtoReflect() protoreflect.Message

func (*FilesystemTrimRequest) Reset

func (x *FilesystemTrimRequest) Reset()

func (*FilesystemTrimRequest) String

func (x *FilesystemTrimRequest) String() string

type ShareManagerHealthCheckServer

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

func NewShareManagerHealthCheckServer

func NewShareManagerHealthCheckServer(srv *ShareManagerServer) *ShareManagerHealthCheckServer

func (*ShareManagerHealthCheckServer) Check

func (*ShareManagerHealthCheckServer) Watch

type ShareManagerServer

type ShareManagerServer struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewShareManagerServer

func NewShareManagerServer(manager *server.ShareManager) *ShareManagerServer

func (*ShareManagerServer) FilesystemTrim

func (s *ShareManagerServer) FilesystemTrim(ctx context.Context, req *FilesystemTrimRequest) (resp *emptypb.Empty, err error)

func (*ShareManagerServer) Mount added in v1.5.3

func (s *ShareManagerServer) Mount(ctx context.Context, req *emptypb.Empty) (resp *emptypb.Empty, err error)

func (*ShareManagerServer) Unmount

func (s *ShareManagerServer) Unmount(ctx context.Context, req *emptypb.Empty) (resp *emptypb.Empty, err error)

type ShareManagerServiceClient

type ShareManagerServiceClient interface {
	FilesystemTrim(ctx context.Context, in *FilesystemTrimRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Unmount(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Mount(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ShareManagerServiceClient is the client API for ShareManagerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ShareManagerServiceServer

type ShareManagerServiceServer interface {
	FilesystemTrim(context.Context, *FilesystemTrimRequest) (*emptypb.Empty, error)
	Unmount(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	Mount(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
}

ShareManagerServiceServer is the server API for ShareManagerService service.

type UnimplementedShareManagerServiceServer

type UnimplementedShareManagerServiceServer struct {
}

UnimplementedShareManagerServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedShareManagerServiceServer) FilesystemTrim

func (*UnimplementedShareManagerServiceServer) Mount added in v1.5.3

func (*UnimplementedShareManagerServiceServer) Unmount

Jump to

Keyboard shortcuts

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