blob: 4c54bcdff595b90143b0a43ec5b9334b830dcc5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Generated by the Protocol Buffers compiler. DO NOT EDIT!
# source: auth.proto
# plugin: grpclib.plugin.main
import abc
import grpclib.const
import grpclib.client
import auth_pb2
class AuthBase(abc.ABC):
@abc.abstractmethod
async def Credentials(self, stream):
pass
def __mapping__(self):
return {
'/moby.filesync.v1.Auth/Credentials': grpclib.const.Handler(
self.Credentials,
grpclib.const.Cardinality.UNARY_UNARY,
auth_pb2.CredentialsRequest,
auth_pb2.CredentialsResponse,
),
}
class AuthStub:
def __init__(self, channel: grpclib.client.Channel) -> None:
self.Credentials = grpclib.client.UnaryUnaryMethod(
channel,
'/moby.filesync.v1.Auth/Credentials',
auth_pb2.CredentialsRequest,
auth_pb2.CredentialsResponse,
)
|