Commit be49fe6d authored by Tross Yvormes's avatar Tross Yvormes
Browse files

Initial commit

parents
#!/bin/bash
python -m grpc_tools.protoc -I ./proto/ --python_out=./ --grpc_python_out=./ proto/grpc_minder2_murmur/*.proto
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: grpc_minder2_murmur/database.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from grpc_minder2_murmur import docker_pb2 as grpc__minder2__murmur_dot_docker__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='grpc_minder2_murmur/database.proto',
package='grpc_minder2_murmur.database',
syntax='proto3',
serialized_options=None,
serialized_pb=_b('\n\"grpc_minder2_murmur/database.proto\x12\x1cgrpc_minder2_murmur.database\x1a grpc_minder2_murmur/docker.proto\"z\n\x11\x44\x61tabaseContainer\x12\x11\n\tserver_id\x18\x01 \x01(\t\x12\r\n\x05image\x18\x02 \x01(\t\x12\x0f\n\x07network\x18\x03 \x01(\t\x12\x32\n\x05ports\x18\x04 \x03(\x0b\x32#.grpc_minder2_murmur.docker.PortMap\"t\n\x0e\x44\x65stroyRequest\x12\x42\n\tcontainer\x18\x01 \x01(\x0b\x32/.grpc_minder2_murmur.database.DatabaseContainer\x12\x0f\n\x07volumes\x18\x02 \x01(\x08\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\x62\x06proto3')
,
dependencies=[grpc__minder2__murmur_dot_docker__pb2.DESCRIPTOR,])
_DATABASECONTAINER = _descriptor.Descriptor(
name='DatabaseContainer',
full_name='grpc_minder2_murmur.database.DatabaseContainer',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='server_id', full_name='grpc_minder2_murmur.database.DatabaseContainer.server_id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='image', full_name='grpc_minder2_murmur.database.DatabaseContainer.image', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='network', full_name='grpc_minder2_murmur.database.DatabaseContainer.network', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='ports', full_name='grpc_minder2_murmur.database.DatabaseContainer.ports', index=3,
number=4, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=102,
serialized_end=224,
)
_DESTROYREQUEST = _descriptor.Descriptor(
name='DestroyRequest',
full_name='grpc_minder2_murmur.database.DestroyRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='container', full_name='grpc_minder2_murmur.database.DestroyRequest.container', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='volumes', full_name='grpc_minder2_murmur.database.DestroyRequest.volumes', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='force', full_name='grpc_minder2_murmur.database.DestroyRequest.force', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=226,
serialized_end=342,
)
_DATABASECONTAINER.fields_by_name['ports'].message_type = grpc__minder2__murmur_dot_docker__pb2._PORTMAP
_DESTROYREQUEST.fields_by_name['container'].message_type = _DATABASECONTAINER
DESCRIPTOR.message_types_by_name['DatabaseContainer'] = _DATABASECONTAINER
DESCRIPTOR.message_types_by_name['DestroyRequest'] = _DESTROYREQUEST
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
DatabaseContainer = _reflection.GeneratedProtocolMessageType('DatabaseContainer', (_message.Message,), dict(
DESCRIPTOR = _DATABASECONTAINER,
__module__ = 'grpc_minder2_murmur.database_pb2'
# @@protoc_insertion_point(class_scope:grpc_minder2_murmur.database.DatabaseContainer)
))
_sym_db.RegisterMessage(DatabaseContainer)
DestroyRequest = _reflection.GeneratedProtocolMessageType('DestroyRequest', (_message.Message,), dict(
DESCRIPTOR = _DESTROYREQUEST,
__module__ = 'grpc_minder2_murmur.database_pb2'
# @@protoc_insertion_point(class_scope:grpc_minder2_murmur.database.DestroyRequest)
))
_sym_db.RegisterMessage(DestroyRequest)
# @@protoc_insertion_point(module_scope)
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: grpc_minder2_murmur/docker.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='grpc_minder2_murmur/docker.proto',
package='grpc_minder2_murmur.docker',
syntax='proto3',
serialized_options=None,
serialized_pb=_b('\n grpc_minder2_murmur/docker.proto\x12\x1agrpc_minder2_murmur.docker\"9\n\x07PortMap\x12\x16\n\x0e\x63ontainer_port\x18\x01 \x01(\t\x12\x16\n\x0epublished_port\x18\x02 \x01(\rb\x06proto3')
)
_PORTMAP = _descriptor.Descriptor(
name='PortMap',
full_name='grpc_minder2_murmur.docker.PortMap',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='container_port', full_name='grpc_minder2_murmur.docker.PortMap.container_port', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='published_port', full_name='grpc_minder2_murmur.docker.PortMap.published_port', index=1,
number=2, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=64,
serialized_end=121,
)
DESCRIPTOR.message_types_by_name['PortMap'] = _PORTMAP
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
PortMap = _reflection.GeneratedProtocolMessageType('PortMap', (_message.Message,), dict(
DESCRIPTOR = _PORTMAP,
__module__ = 'grpc_minder2_murmur.docker_pb2'
# @@protoc_insertion_point(class_scope:grpc_minder2_murmur.docker.PortMap)
))
_sym_db.RegisterMessage(PortMap)
# @@protoc_insertion_point(module_scope)
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: grpc_minder2_murmur/main.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from grpc_minder2_murmur import murmur_pb2 as grpc__minder2__murmur_dot_murmur__pb2
from grpc_minder2_murmur import database_pb2 as grpc__minder2__murmur_dot_database__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='grpc_minder2_murmur/main.proto',
package='grpc_minder2_murmur',
syntax='proto3',
serialized_options=None,
serialized_pb=_b('\n\x1egrpc_minder2_murmur/main.proto\x12\x13grpc_minder2_murmur\x1a grpc_minder2_murmur/murmur.proto\x1a\"grpc_minder2_murmur/database.proto\"\x06\n\x04Void2\x99\x02\n\rMurmurService\x12P\n\x06\x43reate\x12+.grpc_minder2_murmur.murmur.MurmurContainer\x1a\x19.grpc_minder2_murmur.Void\x12P\n\x07\x44\x65stroy\x12*.grpc_minder2_murmur.murmur.DestroyRequest\x1a\x19.grpc_minder2_murmur.Void\x12\x64\n\x08GetImage\x12+.grpc_minder2_murmur.murmur.MurmurContainer\x1a+.grpc_minder2_murmur.murmur.MurmurContainer2\xbb\x01\n\x0f\x44\x61tabaseService\x12T\n\x06\x43reate\x12/.grpc_minder2_murmur.database.DatabaseContainer\x1a\x19.grpc_minder2_murmur.Void\x12R\n\x07\x44\x65stroy\x12,.grpc_minder2_murmur.database.DestroyRequest\x1a\x19.grpc_minder2_murmur.Voidb\x06proto3')
,
dependencies=[grpc__minder2__murmur_dot_murmur__pb2.DESCRIPTOR,grpc__minder2__murmur_dot_database__pb2.DESCRIPTOR,])
_VOID = _descriptor.Descriptor(
name='Void',
full_name='grpc_minder2_murmur.Void',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=125,
serialized_end=131,
)
DESCRIPTOR.message_types_by_name['Void'] = _VOID
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
Void = _reflection.GeneratedProtocolMessageType('Void', (_message.Message,), dict(
DESCRIPTOR = _VOID,
__module__ = 'grpc_minder2_murmur.main_pb2'
# @@protoc_insertion_point(class_scope:grpc_minder2_murmur.Void)
))
_sym_db.RegisterMessage(Void)
_MURMURSERVICE = _descriptor.ServiceDescriptor(
name='MurmurService',
full_name='grpc_minder2_murmur.MurmurService',
file=DESCRIPTOR,
index=0,
serialized_options=None,
serialized_start=134,
serialized_end=415,
methods=[
_descriptor.MethodDescriptor(
name='Create',
full_name='grpc_minder2_murmur.MurmurService.Create',
index=0,
containing_service=None,
input_type=grpc__minder2__murmur_dot_murmur__pb2._MURMURCONTAINER,
output_type=_VOID,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='Destroy',
full_name='grpc_minder2_murmur.MurmurService.Destroy',
index=1,
containing_service=None,
input_type=grpc__minder2__murmur_dot_murmur__pb2._DESTROYREQUEST,
output_type=_VOID,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='GetImage',
full_name='grpc_minder2_murmur.MurmurService.GetImage',
index=2,
containing_service=None,
input_type=grpc__minder2__murmur_dot_murmur__pb2._MURMURCONTAINER,
output_type=grpc__minder2__murmur_dot_murmur__pb2._MURMURCONTAINER,
serialized_options=None,
),
])
_sym_db.RegisterServiceDescriptor(_MURMURSERVICE)
DESCRIPTOR.services_by_name['MurmurService'] = _MURMURSERVICE
_DATABASESERVICE = _descriptor.ServiceDescriptor(
name='DatabaseService',
full_name='grpc_minder2_murmur.DatabaseService',
file=DESCRIPTOR,
index=1,
serialized_options=None,
serialized_start=418,
serialized_end=605,
methods=[
_descriptor.MethodDescriptor(
name='Create',
full_name='grpc_minder2_murmur.DatabaseService.Create',
index=0,
containing_service=None,
input_type=grpc__minder2__murmur_dot_database__pb2._DATABASECONTAINER,
output_type=_VOID,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='Destroy',
full_name='grpc_minder2_murmur.DatabaseService.Destroy',
index=1,
containing_service=None,
input_type=grpc__minder2__murmur_dot_database__pb2._DESTROYREQUEST,
output_type=_VOID,
serialized_options=None,
),
])
_sym_db.RegisterServiceDescriptor(_DATABASESERVICE)
DESCRIPTOR.services_by_name['DatabaseService'] = _DATABASESERVICE
# @@protoc_insertion_point(module_scope)
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from grpc_minder2_murmur import database_pb2 as grpc__minder2__murmur_dot_database__pb2
from grpc_minder2_murmur import main_pb2 as grpc__minder2__murmur_dot_main__pb2
from grpc_minder2_murmur import murmur_pb2 as grpc__minder2__murmur_dot_murmur__pb2
class MurmurServiceStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Create = channel.unary_unary(
'/grpc_minder2_murmur.MurmurService/Create',
request_serializer=grpc__minder2__murmur_dot_murmur__pb2.MurmurContainer.SerializeToString,
response_deserializer=grpc__minder2__murmur_dot_main__pb2.Void.FromString,
)
self.Destroy = channel.unary_unary(
'/grpc_minder2_murmur.MurmurService/Destroy',
request_serializer=grpc__minder2__murmur_dot_murmur__pb2.DestroyRequest.SerializeToString,
response_deserializer=grpc__minder2__murmur_dot_main__pb2.Void.FromString,
)
self.GetImage = channel.unary_unary(
'/grpc_minder2_murmur.MurmurService/GetImage',
request_serializer=grpc__minder2__murmur_dot_murmur__pb2.MurmurContainer.SerializeToString,
response_deserializer=grpc__minder2__murmur_dot_murmur__pb2.MurmurContainer.FromString,
)
class MurmurServiceServicer(object):
# missing associated documentation comment in .proto file
pass
def Create(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def Destroy(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetImage(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_MurmurServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'Create': grpc.unary_unary_rpc_method_handler(
servicer.Create,
request_deserializer=grpc__minder2__murmur_dot_murmur__pb2.MurmurContainer.FromString,
response_serializer=grpc__minder2__murmur_dot_main__pb2.Void.SerializeToString,
),
'Destroy': grpc.unary_unary_rpc_method_handler(
servicer.Destroy,
request_deserializer=grpc__minder2__murmur_dot_murmur__pb2.DestroyRequest.FromString,
response_serializer=grpc__minder2__murmur_dot_main__pb2.Void.SerializeToString,
),
'GetImage': grpc.unary_unary_rpc_method_handler(
servicer.GetImage,
request_deserializer=grpc__minder2__murmur_dot_murmur__pb2.MurmurContainer.FromString,
response_serializer=grpc__minder2__murmur_dot_murmur__pb2.MurmurContainer.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'grpc_minder2_murmur.MurmurService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
class DatabaseServiceStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Create = channel.unary_unary(
'/grpc_minder2_murmur.DatabaseService/Create',
request_serializer=grpc__minder2__murmur_dot_database__pb2.DatabaseContainer.SerializeToString,
response_deserializer=grpc__minder2__murmur_dot_main__pb2.Void.FromString,
)
self.Destroy = channel.unary_unary(
'/grpc_minder2_murmur.DatabaseService/Destroy',
request_serializer=grpc__minder2__murmur_dot_database__pb2.DestroyRequest.SerializeToString,
response_deserializer=grpc__minder2__murmur_dot_main__pb2.Void.FromString,
)
class DatabaseServiceServicer(object):
# missing associated documentation comment in .proto file
pass
def Create(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def Destroy(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_DatabaseServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'Create': grpc.unary_unary_rpc_method_handler(
servicer.Create,
request_deserializer=grpc__minder2__murmur_dot_database__pb2.DatabaseContainer.FromString,
response_serializer=grpc__minder2__murmur_dot_main__pb2.Void.SerializeToString,
),
'Destroy': grpc.unary_unary_rpc_method_handler(
servicer.Destroy,
request_deserializer=grpc__minder2__murmur_dot_database__pb2.DestroyRequest.FromString,
response_serializer=grpc__minder2__murmur_dot_main__pb2.Void.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'grpc_minder2_murmur.DatabaseService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: grpc_minder2_murmur/murmur.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from grpc_minder2_murmur import docker_pb2 as grpc__minder2__murmur_dot_docker__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='grpc_minder2_murmur/murmur.proto',
package='grpc_minder2_murmur.murmur',
syntax='proto3',
serialized_options=None,
serialized_pb=_b('\n grpc_minder2_murmur/murmur.proto\x12\x1agrpc_minder2_murmur.murmur\x1a grpc_minder2_murmur/docker.proto\"x\n\x0fMurmurContainer\x12\x11\n\tserver_id\x18\x01 \x01(\t\x12\r\n\x05image\x18\x02 \x01(\t\x12\x0f\n\x07network\x18\x03 \x01(\t\x12\x32\n\x05ports\x18\x04 \x03(\x0b\x32#.grpc_minder2_murmur.docker.PortMap\"p\n\x0e\x44\x65stroyRequest\x12>\n\tcontainer\x18\x01 \x01(\x0b\x32+.grpc_minder2_murmur.murmur.MurmurContainer\x12\x0f\n\x07volumes\x18\x02 \x01(\x08\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\x62\x06proto3')
,
dependencies=[grpc__minder2__murmur_dot_docker__pb2.DESCRIPTOR,])
_MURMURCONTAINER = _descriptor.Descriptor(
name='MurmurContainer',
full_name='grpc_minder2_murmur.murmur.MurmurContainer',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='server_id', full_name='grpc_minder2_murmur.murmur.MurmurContainer.server_id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='image', full_name='grpc_minder2_murmur.murmur.MurmurContainer.image', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='network', full_name='grpc_minder2_murmur.murmur.MurmurContainer.network', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='ports', full_name='grpc_minder2_murmur.murmur.MurmurContainer.ports', index=3,