smrpc

package
v0.0.0-...-49ee76c Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

View Source
const (
	ShareManagerService_FilesystemResize_FullMethodName = "/ShareManagerService/FilesystemResize"
	ShareManagerService_FilesystemTrim_FullMethodName   = "/ShareManagerService/FilesystemTrim"
	ShareManagerService_Unmount_FullMethodName          = "/ShareManagerService/Unmount"
	ShareManagerService_Mount_FullMethodName            = "/ShareManagerService/Mount"
)

Variables

View Source
var File_smrpc_smrpc_proto protoreflect.FileDescriptor
View Source
var ShareManagerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ShareManagerService",
	HandlerType: (*ShareManagerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FilesystemResize",
			Handler:    _ShareManagerService_FilesystemResize_Handler,
		},
		{
			MethodName: "FilesystemTrim",
			Handler:    _ShareManagerService_FilesystemTrim_Handler,
		},
		{
			MethodName: "Unmount",
			Handler:    _ShareManagerService_Unmount_Handler,
		},
		{
			MethodName: "Mount",
			Handler:    _ShareManagerService_Mount_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "smrpc/smrpc.proto",
}

ShareManagerService_ServiceDesc is the grpc.ServiceDesc for ShareManagerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterShareManagerServiceServer

func RegisterShareManagerServiceServer(s grpc.ServiceRegistrar, 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

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

func (*FilesystemTrimRequest) Reset

func (x *FilesystemTrimRequest) Reset()

func (*FilesystemTrimRequest) String

func (x *FilesystemTrimRequest) String() string

type ShareManagerServiceClient

type ShareManagerServiceClient interface {
	FilesystemResize(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ShareManagerServiceServer

type ShareManagerServiceServer interface {
	FilesystemResize(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	FilesystemTrim(context.Context, *FilesystemTrimRequest) (*emptypb.Empty, error)
	Unmount(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	Mount(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ShareManagerServiceServer is the server API for ShareManagerService service. All implementations must embed UnimplementedShareManagerServiceServer for forward compatibility

type UnimplementedShareManagerServiceServer

type UnimplementedShareManagerServiceServer struct {
}

UnimplementedShareManagerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedShareManagerServiceServer) FilesystemResize

func (UnimplementedShareManagerServiceServer) FilesystemTrim

func (UnimplementedShareManagerServiceServer) Mount

func (UnimplementedShareManagerServiceServer) Unmount

type UnsafeShareManagerServiceServer

type UnsafeShareManagerServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeShareManagerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShareManagerServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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