Skip to content

Commit

Permalink
update protos
Browse files Browse the repository at this point in the history
  • Loading branch information
andriykohut committed Apr 17, 2024
1 parent 5dec50d commit b5b7ee2
Show file tree
Hide file tree
Showing 32 changed files with 1,160 additions and 815 deletions.
15 changes: 4 additions & 11 deletions docker-compose.yml → compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.5"

services:
volumes-provisioner:
image: hasnat/volumes-provisioner
Expand All @@ -10,23 +8,18 @@ services:
network_mode: none

cert-gen:
image: eventstore/es-gencert-cli:1.0.2
image: eventstore/es-gencert-cli
entrypoint: bash
user: "1000:1000"
command: >
-c "mkdir -p ./certs && cd /certs
&& es-gencert-cli create-ca
&& es-gencert-cli create-node -out ./node1 -ip-addresses 127.0.0.1,172.30.240.11 -dns-names localhost
&& es-gencert-cli create-node -out ./node2 -ip-addresses 127.0.0.1,172.30.240.12 -dns-names localhost
&& es-gencert-cli create-node -out ./node3 -ip-addresses 127.0.0.1,172.30.240.13 -dns-names localhost
&& find . -type f -print0 | xargs -0 chmod 666"
-c "mkdir -p ./certs && cd /certs && es-gencert-cli create-ca && es-gencert-cli create-node -out ./node1 -ip-addresses 127.0.0.1,172.30.240.11 -dns-names localhost && es-gencert-cli create-node -out ./node2 -ip-addresses 127.0.0.1,172.30.240.12 -dns-names localhost && es-gencert-cli create-node -out ./node3 -ip-addresses 127.0.0.1,172.30.240.13 -dns-names localhost && find . -type f -print0 | xargs -0 chmod 666"
volumes:
- "./certs:/certs"
depends_on:
- volumes-provisioner

esdb-node1:
image: eventstore/eventstore:21.10.7-bionic
image: eventstore/eventstore:24.2.0
env_file:
- shared.env
environment:
Expand Down Expand Up @@ -107,4 +100,4 @@ networks:
ipam:
driver: default
config:
- subnet: 172.30.240.0/24
- subnet: 172.30.240.0/24
70 changes: 35 additions & 35 deletions esdb/generated/cluster_pb2.py

Large diffs are not rendered by default.

182 changes: 93 additions & 89 deletions esdb/generated/cluster_pb2.pyi

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion esdb/generated/code_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions esdb/generated/code_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""

import builtins
import google.protobuf.descriptor
import google.protobuf.internal.enum_type_wrapper
Expand Down
2 changes: 1 addition & 1 deletion esdb/generated/gossip_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 10 additions & 9 deletions esdb/generated/gossip_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""

import builtins
import collections.abc
import google.protobuf.descriptor
Expand All @@ -19,7 +20,7 @@ else:

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

@typing_extensions.final
@typing.final
class ClusterInfo(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

Expand All @@ -31,11 +32,11 @@ class ClusterInfo(google.protobuf.message.Message):
*,
members: collections.abc.Iterable[global___MemberInfo] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["members", b"members"]) -> None: ...
def ClearField(self, field_name: typing.Literal["members", b"members"]) -> None: ...

global___ClusterInfo = ClusterInfo

@typing_extensions.final
@typing.final
class EndPoint(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

Expand All @@ -49,11 +50,11 @@ class EndPoint(google.protobuf.message.Message):
address: builtins.str = ...,
port: builtins.int = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "port", b"port"]) -> None: ...
def ClearField(self, field_name: typing.Literal["address", b"address", "port", b"port"]) -> None: ...

global___EndPoint = EndPoint

@typing_extensions.final
@typing.final
class MemberInfo(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

Expand Down Expand Up @@ -103,12 +104,12 @@ class MemberInfo(google.protobuf.message.Message):
STATE_FIELD_NUMBER: builtins.int
IS_ALIVE_FIELD_NUMBER: builtins.int
HTTP_END_POINT_FIELD_NUMBER: builtins.int
@property
def instance_id(self) -> shared_pb2.UUID: ...
time_stamp: builtins.int
state: global___MemberInfo.VNodeState.ValueType
is_alive: builtins.bool
@property
def instance_id(self) -> shared_pb2.UUID: ...
@property
def http_end_point(self) -> global___EndPoint: ...
def __init__(
self,
Expand All @@ -119,7 +120,7 @@ class MemberInfo(google.protobuf.message.Message):
is_alive: builtins.bool = ...,
http_end_point: global___EndPoint | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["http_end_point", b"http_end_point", "instance_id", b"instance_id"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["http_end_point", b"http_end_point", "instance_id", b"instance_id", "is_alive", b"is_alive", "state", b"state", "time_stamp", b"time_stamp"]) -> None: ...
def HasField(self, field_name: typing.Literal["http_end_point", b"http_end_point", "instance_id", b"instance_id"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["http_end_point", b"http_end_point", "instance_id", b"instance_id", "is_alive", b"is_alive", "state", b"state", "time_stamp", b"time_stamp"]) -> None: ...

global___MemberInfo = MemberInfo
2 changes: 1 addition & 1 deletion esdb/generated/monitoring_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 8 additions & 12 deletions esdb/generated/monitoring_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,17 @@
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""

import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import sys

if sys.version_info >= (3, 8):
import typing as typing_extensions
else:
import typing_extensions
import typing

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

@typing_extensions.final
@typing.final
class StatsReq(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

Expand All @@ -30,15 +26,15 @@ class StatsReq(google.protobuf.message.Message):
use_metadata: builtins.bool = ...,
refresh_time_period_in_ms: builtins.int = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["refresh_time_period_in_ms", b"refresh_time_period_in_ms", "use_metadata", b"use_metadata"]) -> None: ...
def ClearField(self, field_name: typing.Literal["refresh_time_period_in_ms", b"refresh_time_period_in_ms", "use_metadata", b"use_metadata"]) -> None: ...

global___StatsReq = StatsReq

@typing_extensions.final
@typing.final
class StatsResp(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

@typing_extensions.final
@typing.final
class StatsEntry(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

Expand All @@ -52,7 +48,7 @@ class StatsResp(google.protobuf.message.Message):
key: builtins.str = ...,
value: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...

STATS_FIELD_NUMBER: builtins.int
@property
Expand All @@ -62,6 +58,6 @@ class StatsResp(google.protobuf.message.Message):
*,
stats: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["stats", b"stats"]) -> None: ...
def ClearField(self, field_name: typing.Literal["stats", b"stats"]) -> None: ...

global___StatsResp = StatsResp
2 changes: 1 addition & 1 deletion esdb/generated/operations_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 15 additions & 14 deletions esdb/generated/operations_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""

import builtins
import google.protobuf.descriptor
import google.protobuf.internal.enum_type_wrapper
Expand All @@ -16,11 +17,11 @@ else:

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

@typing_extensions.final
@typing.final
class StartScavengeReq(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

@typing_extensions.final
@typing.final
class Options(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

Expand All @@ -34,7 +35,7 @@ class StartScavengeReq(google.protobuf.message.Message):
thread_count: builtins.int = ...,
start_from_chunk: builtins.int = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["start_from_chunk", b"start_from_chunk", "thread_count", b"thread_count"]) -> None: ...
def ClearField(self, field_name: typing.Literal["start_from_chunk", b"start_from_chunk", "thread_count", b"thread_count"]) -> None: ...

OPTIONS_FIELD_NUMBER: builtins.int
@property
Expand All @@ -44,16 +45,16 @@ class StartScavengeReq(google.protobuf.message.Message):
*,
options: global___StartScavengeReq.Options | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ...
def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ...

global___StartScavengeReq = StartScavengeReq

@typing_extensions.final
@typing.final
class StopScavengeReq(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

@typing_extensions.final
@typing.final
class Options(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

Expand All @@ -64,7 +65,7 @@ class StopScavengeReq(google.protobuf.message.Message):
*,
scavenge_id: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["scavenge_id", b"scavenge_id"]) -> None: ...
def ClearField(self, field_name: typing.Literal["scavenge_id", b"scavenge_id"]) -> None: ...

OPTIONS_FIELD_NUMBER: builtins.int
@property
Expand All @@ -74,12 +75,12 @@ class StopScavengeReq(google.protobuf.message.Message):
*,
options: global___StopScavengeReq.Options | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ...
def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ...

global___StopScavengeReq = StopScavengeReq

@typing_extensions.final
@typing.final
class ScavengeResp(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

Expand Down Expand Up @@ -108,11 +109,11 @@ class ScavengeResp(google.protobuf.message.Message):
scavenge_id: builtins.str = ...,
scavenge_result: global___ScavengeResp.ScavengeResult.ValueType = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["scavenge_id", b"scavenge_id", "scavenge_result", b"scavenge_result"]) -> None: ...
def ClearField(self, field_name: typing.Literal["scavenge_id", b"scavenge_id", "scavenge_result", b"scavenge_result"]) -> None: ...

global___ScavengeResp = ScavengeResp

@typing_extensions.final
@typing.final
class SetNodePriorityReq(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

Expand All @@ -123,6 +124,6 @@ class SetNodePriorityReq(google.protobuf.message.Message):
*,
priority: builtins.int = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["priority", b"priority"]) -> None: ...
def ClearField(self, field_name: typing.Literal["priority", b"priority"]) -> None: ...

global___SetNodePriorityReq = SetNodePriorityReq
2 changes: 1 addition & 1 deletion esdb/generated/persistent_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b5b7ee2

Please sign in to comment.