-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: PoAn Yang <[email protected]>
- Loading branch information
1 parent
b6b7a0f
commit 9ab0341
Showing
8 changed files
with
336 additions
and
421 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...gration/rpc/share_manager/github.com/longhorn/longhorn_share_manager/pkg/rpc/smrpc_pb2.py
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
133 changes: 133 additions & 0 deletions
133
...on/rpc/share_manager/github.com/longhorn/longhorn_share_manager/pkg/rpc/smrpc_pb2_grpc.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! | ||
"""Client and server classes corresponding to protobuf-defined services.""" | ||
import grpc | ||
|
||
from github.com.longhorn.longhorn_share_manager.pkg.rpc import smrpc_pb2 as github_dot_com_dot_longhorn_dot_longhorn__share__manager_dot_pkg_dot_rpc_dot_smrpc__pb2 | ||
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 | ||
|
||
|
||
class ShareManagerServiceStub(object): | ||
"""Missing associated documentation comment in .proto file.""" | ||
|
||
def __init__(self, channel): | ||
"""Constructor. | ||
Args: | ||
channel: A grpc.Channel. | ||
""" | ||
self.FilesystemTrim = channel.unary_unary( | ||
'/ShareManagerService/FilesystemTrim', | ||
request_serializer=github_dot_com_dot_longhorn_dot_longhorn__share__manager_dot_pkg_dot_rpc_dot_smrpc__pb2.FilesystemTrimRequest.SerializeToString, | ||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, | ||
) | ||
self.Unmount = channel.unary_unary( | ||
'/ShareManagerService/Unmount', | ||
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, | ||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, | ||
) | ||
self.Mount = channel.unary_unary( | ||
'/ShareManagerService/Mount', | ||
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, | ||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, | ||
) | ||
|
||
|
||
class ShareManagerServiceServicer(object): | ||
"""Missing associated documentation comment in .proto file.""" | ||
|
||
def FilesystemTrim(self, request, context): | ||
"""Missing associated documentation comment in .proto file.""" | ||
context.set_code(grpc.StatusCode.UNIMPLEMENTED) | ||
context.set_details('Method not implemented!') | ||
raise NotImplementedError('Method not implemented!') | ||
|
||
def Unmount(self, request, context): | ||
"""Missing associated documentation comment in .proto file.""" | ||
context.set_code(grpc.StatusCode.UNIMPLEMENTED) | ||
context.set_details('Method not implemented!') | ||
raise NotImplementedError('Method not implemented!') | ||
|
||
def Mount(self, request, context): | ||
"""Missing associated documentation comment in .proto file.""" | ||
context.set_code(grpc.StatusCode.UNIMPLEMENTED) | ||
context.set_details('Method not implemented!') | ||
raise NotImplementedError('Method not implemented!') | ||
|
||
|
||
def add_ShareManagerServiceServicer_to_server(servicer, server): | ||
rpc_method_handlers = { | ||
'FilesystemTrim': grpc.unary_unary_rpc_method_handler( | ||
servicer.FilesystemTrim, | ||
request_deserializer=github_dot_com_dot_longhorn_dot_longhorn__share__manager_dot_pkg_dot_rpc_dot_smrpc__pb2.FilesystemTrimRequest.FromString, | ||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, | ||
), | ||
'Unmount': grpc.unary_unary_rpc_method_handler( | ||
servicer.Unmount, | ||
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, | ||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, | ||
), | ||
'Mount': grpc.unary_unary_rpc_method_handler( | ||
servicer.Mount, | ||
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, | ||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, | ||
), | ||
} | ||
generic_handler = grpc.method_handlers_generic_handler( | ||
'ShareManagerService', rpc_method_handlers) | ||
server.add_generic_rpc_handlers((generic_handler,)) | ||
|
||
|
||
# This class is part of an EXPERIMENTAL API. | ||
class ShareManagerService(object): | ||
"""Missing associated documentation comment in .proto file.""" | ||
|
||
@staticmethod | ||
def FilesystemTrim(request, | ||
target, | ||
options=(), | ||
channel_credentials=None, | ||
call_credentials=None, | ||
insecure=False, | ||
compression=None, | ||
wait_for_ready=None, | ||
timeout=None, | ||
metadata=None): | ||
return grpc.experimental.unary_unary(request, target, '/ShareManagerService/FilesystemTrim', | ||
github_dot_com_dot_longhorn_dot_longhorn__share__manager_dot_pkg_dot_rpc_dot_smrpc__pb2.FilesystemTrimRequest.SerializeToString, | ||
google_dot_protobuf_dot_empty__pb2.Empty.FromString, | ||
options, channel_credentials, | ||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata) | ||
|
||
@staticmethod | ||
def Unmount(request, | ||
target, | ||
options=(), | ||
channel_credentials=None, | ||
call_credentials=None, | ||
insecure=False, | ||
compression=None, | ||
wait_for_ready=None, | ||
timeout=None, | ||
metadata=None): | ||
return grpc.experimental.unary_unary(request, target, '/ShareManagerService/Unmount', | ||
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, | ||
google_dot_protobuf_dot_empty__pb2.Empty.FromString, | ||
options, channel_credentials, | ||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata) | ||
|
||
@staticmethod | ||
def Mount(request, | ||
target, | ||
options=(), | ||
channel_credentials=None, | ||
call_credentials=None, | ||
insecure=False, | ||
compression=None, | ||
wait_for_ready=None, | ||
timeout=None, | ||
metadata=None): | ||
return grpc.experimental.unary_unary(request, target, '/ShareManagerService/Mount', | ||
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, | ||
google_dot_protobuf_dot_empty__pb2.Empty.FromString, | ||
options, channel_credentials, | ||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.