flyte 2.0.0b13__py3-none-any.whl → 2.0.0b30__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flyte/__init__.py +18 -2
- flyte/_bin/debug.py +38 -0
- flyte/_bin/runtime.py +62 -8
- flyte/_cache/cache.py +4 -2
- flyte/_cache/local_cache.py +216 -0
- flyte/_code_bundle/_ignore.py +12 -4
- flyte/_code_bundle/_packaging.py +13 -9
- flyte/_code_bundle/_utils.py +18 -10
- flyte/_code_bundle/bundle.py +17 -9
- flyte/_constants.py +1 -0
- flyte/_context.py +4 -1
- flyte/_custom_context.py +73 -0
- flyte/_debug/constants.py +38 -0
- flyte/_debug/utils.py +17 -0
- flyte/_debug/vscode.py +307 -0
- flyte/_deploy.py +235 -61
- flyte/_environment.py +20 -6
- flyte/_excepthook.py +1 -1
- flyte/_hash.py +1 -16
- flyte/_image.py +178 -81
- flyte/_initialize.py +132 -51
- flyte/_interface.py +39 -2
- flyte/_internal/controllers/__init__.py +4 -5
- flyte/_internal/controllers/_local_controller.py +70 -29
- flyte/_internal/controllers/_trace.py +1 -1
- flyte/_internal/controllers/remote/__init__.py +0 -2
- flyte/_internal/controllers/remote/_action.py +14 -16
- flyte/_internal/controllers/remote/_client.py +1 -1
- flyte/_internal/controllers/remote/_controller.py +68 -70
- flyte/_internal/controllers/remote/_core.py +127 -99
- flyte/_internal/controllers/remote/_informer.py +19 -10
- flyte/_internal/controllers/remote/_service_protocol.py +7 -7
- flyte/_internal/imagebuild/docker_builder.py +181 -69
- flyte/_internal/imagebuild/image_builder.py +0 -5
- flyte/_internal/imagebuild/remote_builder.py +155 -64
- flyte/_internal/imagebuild/utils.py +51 -2
- flyte/_internal/resolvers/_task_module.py +5 -38
- flyte/_internal/resolvers/default.py +2 -2
- flyte/_internal/runtime/convert.py +110 -21
- flyte/_internal/runtime/entrypoints.py +27 -1
- flyte/_internal/runtime/io.py +21 -8
- flyte/_internal/runtime/resources_serde.py +20 -6
- flyte/_internal/runtime/reuse.py +1 -1
- flyte/_internal/runtime/rusty.py +20 -5
- flyte/_internal/runtime/task_serde.py +34 -19
- flyte/_internal/runtime/taskrunner.py +22 -4
- flyte/_internal/runtime/trigger_serde.py +160 -0
- flyte/_internal/runtime/types_serde.py +1 -1
- flyte/_keyring/__init__.py +0 -0
- flyte/_keyring/file.py +115 -0
- flyte/_logging.py +201 -39
- flyte/_map.py +111 -14
- flyte/_module.py +70 -0
- flyte/_pod.py +4 -3
- flyte/_resources.py +213 -31
- flyte/_run.py +110 -39
- flyte/_task.py +75 -16
- flyte/_task_environment.py +105 -29
- flyte/_task_plugins.py +4 -2
- flyte/_trace.py +5 -0
- flyte/_trigger.py +1000 -0
- flyte/_utils/__init__.py +2 -1
- flyte/_utils/asyn.py +3 -1
- flyte/_utils/coro_management.py +2 -1
- flyte/_utils/docker_credentials.py +173 -0
- flyte/_utils/module_loader.py +17 -2
- flyte/_version.py +3 -3
- flyte/cli/_abort.py +3 -3
- flyte/cli/_build.py +3 -6
- flyte/cli/_common.py +78 -7
- flyte/cli/_create.py +182 -4
- flyte/cli/_delete.py +23 -1
- flyte/cli/_deploy.py +63 -16
- flyte/cli/_get.py +79 -34
- flyte/cli/_params.py +26 -10
- flyte/cli/_plugins.py +209 -0
- flyte/cli/_run.py +151 -26
- flyte/cli/_serve.py +64 -0
- flyte/cli/_update.py +37 -0
- flyte/cli/_user.py +17 -0
- flyte/cli/main.py +30 -4
- flyte/config/_config.py +10 -6
- flyte/config/_internal.py +1 -0
- flyte/config/_reader.py +29 -8
- flyte/connectors/__init__.py +11 -0
- flyte/connectors/_connector.py +270 -0
- flyte/connectors/_server.py +197 -0
- flyte/connectors/utils.py +135 -0
- flyte/errors.py +22 -2
- flyte/extend.py +8 -1
- flyte/extras/_container.py +6 -1
- flyte/git/__init__.py +3 -0
- flyte/git/_config.py +21 -0
- flyte/io/__init__.py +2 -0
- flyte/io/_dataframe/__init__.py +2 -0
- flyte/io/_dataframe/basic_dfs.py +17 -8
- flyte/io/_dataframe/dataframe.py +98 -132
- flyte/io/_dir.py +575 -113
- flyte/io/_file.py +582 -139
- flyte/io/_hashing_io.py +342 -0
- flyte/models.py +74 -15
- flyte/remote/__init__.py +6 -1
- flyte/remote/_action.py +34 -26
- flyte/remote/_client/_protocols.py +39 -4
- flyte/remote/_client/auth/_authenticators/device_code.py +4 -5
- flyte/remote/_client/auth/_authenticators/pkce.py +1 -1
- flyte/remote/_client/auth/_channel.py +10 -6
- flyte/remote/_client/controlplane.py +17 -5
- flyte/remote/_console.py +3 -2
- flyte/remote/_data.py +6 -6
- flyte/remote/_logs.py +3 -3
- flyte/remote/_run.py +64 -8
- flyte/remote/_secret.py +26 -17
- flyte/remote/_task.py +75 -33
- flyte/remote/_trigger.py +306 -0
- flyte/remote/_user.py +33 -0
- flyte/report/_report.py +1 -1
- flyte/storage/__init__.py +6 -1
- flyte/storage/_config.py +5 -1
- flyte/storage/_parallel_reader.py +274 -0
- flyte/storage/_storage.py +200 -103
- flyte/types/__init__.py +16 -0
- flyte/types/_interface.py +2 -2
- flyte/types/_pickle.py +35 -8
- flyte/types/_string_literals.py +8 -9
- flyte/types/_type_engine.py +40 -70
- flyte/types/_utils.py +1 -1
- flyte-2.0.0b30.data/scripts/debug.py +38 -0
- {flyte-2.0.0b13.data → flyte-2.0.0b30.data}/scripts/runtime.py +62 -8
- {flyte-2.0.0b13.dist-info → flyte-2.0.0b30.dist-info}/METADATA +11 -3
- flyte-2.0.0b30.dist-info/RECORD +192 -0
- {flyte-2.0.0b13.dist-info → flyte-2.0.0b30.dist-info}/entry_points.txt +3 -0
- flyte/_protos/common/authorization_pb2.py +0 -66
- flyte/_protos/common/authorization_pb2.pyi +0 -108
- flyte/_protos/common/authorization_pb2_grpc.py +0 -4
- flyte/_protos/common/identifier_pb2.py +0 -93
- flyte/_protos/common/identifier_pb2.pyi +0 -110
- flyte/_protos/common/identifier_pb2_grpc.py +0 -4
- flyte/_protos/common/identity_pb2.py +0 -48
- flyte/_protos/common/identity_pb2.pyi +0 -72
- flyte/_protos/common/identity_pb2_grpc.py +0 -4
- flyte/_protos/common/list_pb2.py +0 -36
- flyte/_protos/common/list_pb2.pyi +0 -71
- flyte/_protos/common/list_pb2_grpc.py +0 -4
- flyte/_protos/common/policy_pb2.py +0 -37
- flyte/_protos/common/policy_pb2.pyi +0 -27
- flyte/_protos/common/policy_pb2_grpc.py +0 -4
- flyte/_protos/common/role_pb2.py +0 -37
- flyte/_protos/common/role_pb2.pyi +0 -53
- flyte/_protos/common/role_pb2_grpc.py +0 -4
- flyte/_protos/common/runtime_version_pb2.py +0 -28
- flyte/_protos/common/runtime_version_pb2.pyi +0 -24
- flyte/_protos/common/runtime_version_pb2_grpc.py +0 -4
- flyte/_protos/imagebuilder/definition_pb2.py +0 -59
- flyte/_protos/imagebuilder/definition_pb2.pyi +0 -140
- flyte/_protos/imagebuilder/definition_pb2_grpc.py +0 -4
- flyte/_protos/imagebuilder/payload_pb2.py +0 -32
- flyte/_protos/imagebuilder/payload_pb2.pyi +0 -21
- flyte/_protos/imagebuilder/payload_pb2_grpc.py +0 -4
- flyte/_protos/imagebuilder/service_pb2.py +0 -29
- flyte/_protos/imagebuilder/service_pb2.pyi +0 -5
- flyte/_protos/imagebuilder/service_pb2_grpc.py +0 -66
- flyte/_protos/logs/dataplane/payload_pb2.py +0 -100
- flyte/_protos/logs/dataplane/payload_pb2.pyi +0 -177
- flyte/_protos/logs/dataplane/payload_pb2_grpc.py +0 -4
- flyte/_protos/secret/definition_pb2.py +0 -49
- flyte/_protos/secret/definition_pb2.pyi +0 -93
- flyte/_protos/secret/definition_pb2_grpc.py +0 -4
- flyte/_protos/secret/payload_pb2.py +0 -62
- flyte/_protos/secret/payload_pb2.pyi +0 -94
- flyte/_protos/secret/payload_pb2_grpc.py +0 -4
- flyte/_protos/secret/secret_pb2.py +0 -38
- flyte/_protos/secret/secret_pb2.pyi +0 -6
- flyte/_protos/secret/secret_pb2_grpc.py +0 -198
- flyte/_protos/secret/secret_pb2_grpc_grpc.py +0 -198
- flyte/_protos/validate/validate/validate_pb2.py +0 -76
- flyte/_protos/workflow/common_pb2.py +0 -27
- flyte/_protos/workflow/common_pb2.pyi +0 -14
- flyte/_protos/workflow/common_pb2_grpc.py +0 -4
- flyte/_protos/workflow/environment_pb2.py +0 -29
- flyte/_protos/workflow/environment_pb2.pyi +0 -12
- flyte/_protos/workflow/environment_pb2_grpc.py +0 -4
- flyte/_protos/workflow/node_execution_service_pb2.py +0 -26
- flyte/_protos/workflow/node_execution_service_pb2.pyi +0 -4
- flyte/_protos/workflow/node_execution_service_pb2_grpc.py +0 -32
- flyte/_protos/workflow/queue_service_pb2.py +0 -109
- flyte/_protos/workflow/queue_service_pb2.pyi +0 -166
- flyte/_protos/workflow/queue_service_pb2_grpc.py +0 -172
- flyte/_protos/workflow/run_definition_pb2.py +0 -121
- flyte/_protos/workflow/run_definition_pb2.pyi +0 -327
- flyte/_protos/workflow/run_definition_pb2_grpc.py +0 -4
- flyte/_protos/workflow/run_logs_service_pb2.py +0 -41
- flyte/_protos/workflow/run_logs_service_pb2.pyi +0 -28
- flyte/_protos/workflow/run_logs_service_pb2_grpc.py +0 -69
- flyte/_protos/workflow/run_service_pb2.py +0 -137
- flyte/_protos/workflow/run_service_pb2.pyi +0 -185
- flyte/_protos/workflow/run_service_pb2_grpc.py +0 -446
- flyte/_protos/workflow/state_service_pb2.py +0 -67
- flyte/_protos/workflow/state_service_pb2.pyi +0 -76
- flyte/_protos/workflow/state_service_pb2_grpc.py +0 -138
- flyte/_protos/workflow/task_definition_pb2.py +0 -79
- flyte/_protos/workflow/task_definition_pb2.pyi +0 -81
- flyte/_protos/workflow/task_definition_pb2_grpc.py +0 -4
- flyte/_protos/workflow/task_service_pb2.py +0 -60
- flyte/_protos/workflow/task_service_pb2.pyi +0 -59
- flyte/_protos/workflow/task_service_pb2_grpc.py +0 -138
- flyte-2.0.0b13.dist-info/RECORD +0 -239
- /flyte/{_protos → _debug}/__init__.py +0 -0
- {flyte-2.0.0b13.dist-info → flyte-2.0.0b30.dist-info}/WHEEL +0 -0
- {flyte-2.0.0b13.dist-info → flyte-2.0.0b30.dist-info}/licenses/LICENSE +0 -0
- {flyte-2.0.0b13.dist-info → flyte-2.0.0b30.dist-info}/top_level.txt +0 -0
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
from flyte._protos.validate.validate import validate_pb2 as _validate_pb2
|
|
2
|
-
from google.protobuf.internal import containers as _containers
|
|
3
|
-
from google.protobuf import descriptor as _descriptor
|
|
4
|
-
from google.protobuf import message as _message
|
|
5
|
-
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
6
|
-
|
|
7
|
-
DESCRIPTOR: _descriptor.FileDescriptor
|
|
8
|
-
|
|
9
|
-
class ImageIdentifier(_message.Message):
|
|
10
|
-
__slots__ = ["name"]
|
|
11
|
-
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
12
|
-
name: str
|
|
13
|
-
def __init__(self, name: _Optional[str] = ...) -> None: ...
|
|
14
|
-
|
|
15
|
-
class Image(_message.Message):
|
|
16
|
-
__slots__ = ["id", "fqin"]
|
|
17
|
-
ID_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
-
FQIN_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
-
id: ImageIdentifier
|
|
20
|
-
fqin: str
|
|
21
|
-
def __init__(self, id: _Optional[_Union[ImageIdentifier, _Mapping]] = ..., fqin: _Optional[str] = ...) -> None: ...
|
|
22
|
-
|
|
23
|
-
class AptPackages(_message.Message):
|
|
24
|
-
__slots__ = ["packages"]
|
|
25
|
-
PACKAGES_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
-
packages: _containers.RepeatedScalarFieldContainer[str]
|
|
27
|
-
def __init__(self, packages: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
28
|
-
|
|
29
|
-
class PipOptions(_message.Message):
|
|
30
|
-
__slots__ = ["index_url", "extra_index_urls", "pre", "extra_args"]
|
|
31
|
-
INDEX_URL_FIELD_NUMBER: _ClassVar[int]
|
|
32
|
-
EXTRA_INDEX_URLS_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
-
PRE_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
-
EXTRA_ARGS_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
-
index_url: str
|
|
36
|
-
extra_index_urls: _containers.RepeatedScalarFieldContainer[str]
|
|
37
|
-
pre: bool
|
|
38
|
-
extra_args: str
|
|
39
|
-
def __init__(self, index_url: _Optional[str] = ..., extra_index_urls: _Optional[_Iterable[str]] = ..., pre: bool = ..., extra_args: _Optional[str] = ...) -> None: ...
|
|
40
|
-
|
|
41
|
-
class PipPackages(_message.Message):
|
|
42
|
-
__slots__ = ["packages", "options"]
|
|
43
|
-
PACKAGES_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
-
OPTIONS_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
-
packages: _containers.RepeatedScalarFieldContainer[str]
|
|
46
|
-
options: PipOptions
|
|
47
|
-
def __init__(self, packages: _Optional[_Iterable[str]] = ..., options: _Optional[_Union[PipOptions, _Mapping]] = ...) -> None: ...
|
|
48
|
-
|
|
49
|
-
class Requirements(_message.Message):
|
|
50
|
-
__slots__ = ["file", "options"]
|
|
51
|
-
FILE_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
-
OPTIONS_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
-
file: str
|
|
54
|
-
options: PipOptions
|
|
55
|
-
def __init__(self, file: _Optional[str] = ..., options: _Optional[_Union[PipOptions, _Mapping]] = ...) -> None: ...
|
|
56
|
-
|
|
57
|
-
class PythonWheels(_message.Message):
|
|
58
|
-
__slots__ = ["dir", "options"]
|
|
59
|
-
DIR_FIELD_NUMBER: _ClassVar[int]
|
|
60
|
-
OPTIONS_FIELD_NUMBER: _ClassVar[int]
|
|
61
|
-
dir: str
|
|
62
|
-
options: PipOptions
|
|
63
|
-
def __init__(self, dir: _Optional[str] = ..., options: _Optional[_Union[PipOptions, _Mapping]] = ...) -> None: ...
|
|
64
|
-
|
|
65
|
-
class UVProject(_message.Message):
|
|
66
|
-
__slots__ = ["pyproject", "uvlock", "options"]
|
|
67
|
-
PYPROJECT_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
-
UVLOCK_FIELD_NUMBER: _ClassVar[int]
|
|
69
|
-
OPTIONS_FIELD_NUMBER: _ClassVar[int]
|
|
70
|
-
pyproject: str
|
|
71
|
-
uvlock: str
|
|
72
|
-
options: PipOptions
|
|
73
|
-
def __init__(self, pyproject: _Optional[str] = ..., uvlock: _Optional[str] = ..., options: _Optional[_Union[PipOptions, _Mapping]] = ...) -> None: ...
|
|
74
|
-
|
|
75
|
-
class Commands(_message.Message):
|
|
76
|
-
__slots__ = ["cmd"]
|
|
77
|
-
CMD_FIELD_NUMBER: _ClassVar[int]
|
|
78
|
-
cmd: _containers.RepeatedScalarFieldContainer[str]
|
|
79
|
-
def __init__(self, cmd: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
80
|
-
|
|
81
|
-
class WorkDir(_message.Message):
|
|
82
|
-
__slots__ = ["workdir"]
|
|
83
|
-
WORKDIR_FIELD_NUMBER: _ClassVar[int]
|
|
84
|
-
workdir: str
|
|
85
|
-
def __init__(self, workdir: _Optional[str] = ...) -> None: ...
|
|
86
|
-
|
|
87
|
-
class CopyConfig(_message.Message):
|
|
88
|
-
__slots__ = ["src", "dst"]
|
|
89
|
-
SRC_FIELD_NUMBER: _ClassVar[int]
|
|
90
|
-
DST_FIELD_NUMBER: _ClassVar[int]
|
|
91
|
-
src: str
|
|
92
|
-
dst: str
|
|
93
|
-
def __init__(self, src: _Optional[str] = ..., dst: _Optional[str] = ...) -> None: ...
|
|
94
|
-
|
|
95
|
-
class Env(_message.Message):
|
|
96
|
-
__slots__ = ["env_variables"]
|
|
97
|
-
class EnvVariablesEntry(_message.Message):
|
|
98
|
-
__slots__ = ["key", "value"]
|
|
99
|
-
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
100
|
-
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
101
|
-
key: str
|
|
102
|
-
value: str
|
|
103
|
-
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
104
|
-
ENV_VARIABLES_FIELD_NUMBER: _ClassVar[int]
|
|
105
|
-
env_variables: _containers.ScalarMap[str, str]
|
|
106
|
-
def __init__(self, env_variables: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
|
107
|
-
|
|
108
|
-
class Layer(_message.Message):
|
|
109
|
-
__slots__ = ["apt_packages", "pip_packages", "commands", "requirements", "python_wheels", "workdir", "copy_config", "uv_project", "env"]
|
|
110
|
-
APT_PACKAGES_FIELD_NUMBER: _ClassVar[int]
|
|
111
|
-
PIP_PACKAGES_FIELD_NUMBER: _ClassVar[int]
|
|
112
|
-
COMMANDS_FIELD_NUMBER: _ClassVar[int]
|
|
113
|
-
REQUIREMENTS_FIELD_NUMBER: _ClassVar[int]
|
|
114
|
-
PYTHON_WHEELS_FIELD_NUMBER: _ClassVar[int]
|
|
115
|
-
WORKDIR_FIELD_NUMBER: _ClassVar[int]
|
|
116
|
-
COPY_CONFIG_FIELD_NUMBER: _ClassVar[int]
|
|
117
|
-
UV_PROJECT_FIELD_NUMBER: _ClassVar[int]
|
|
118
|
-
ENV_FIELD_NUMBER: _ClassVar[int]
|
|
119
|
-
apt_packages: AptPackages
|
|
120
|
-
pip_packages: PipPackages
|
|
121
|
-
commands: Commands
|
|
122
|
-
requirements: Requirements
|
|
123
|
-
python_wheels: PythonWheels
|
|
124
|
-
workdir: WorkDir
|
|
125
|
-
copy_config: CopyConfig
|
|
126
|
-
uv_project: UVProject
|
|
127
|
-
env: Env
|
|
128
|
-
def __init__(self, apt_packages: _Optional[_Union[AptPackages, _Mapping]] = ..., pip_packages: _Optional[_Union[PipPackages, _Mapping]] = ..., commands: _Optional[_Union[Commands, _Mapping]] = ..., requirements: _Optional[_Union[Requirements, _Mapping]] = ..., python_wheels: _Optional[_Union[PythonWheels, _Mapping]] = ..., workdir: _Optional[_Union[WorkDir, _Mapping]] = ..., copy_config: _Optional[_Union[CopyConfig, _Mapping]] = ..., uv_project: _Optional[_Union[UVProject, _Mapping]] = ..., env: _Optional[_Union[Env, _Mapping]] = ...) -> None: ...
|
|
129
|
-
|
|
130
|
-
class ImageSpec(_message.Message):
|
|
131
|
-
__slots__ = ["base_image", "python_version", "layers", "platform"]
|
|
132
|
-
BASE_IMAGE_FIELD_NUMBER: _ClassVar[int]
|
|
133
|
-
PYTHON_VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
134
|
-
LAYERS_FIELD_NUMBER: _ClassVar[int]
|
|
135
|
-
PLATFORM_FIELD_NUMBER: _ClassVar[int]
|
|
136
|
-
base_image: str
|
|
137
|
-
python_version: str
|
|
138
|
-
layers: _containers.RepeatedCompositeFieldContainer[Layer]
|
|
139
|
-
platform: _containers.RepeatedScalarFieldContainer[str]
|
|
140
|
-
def __init__(self, base_image: _Optional[str] = ..., python_version: _Optional[str] = ..., layers: _Optional[_Iterable[_Union[Layer, _Mapping]]] = ..., platform: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# source: imagebuilder/payload.proto
|
|
4
|
-
"""Generated protocol buffer code."""
|
|
5
|
-
from google.protobuf import descriptor as _descriptor
|
|
6
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
-
from google.protobuf.internal import builder as _builder
|
|
9
|
-
# @@protoc_insertion_point(imports)
|
|
10
|
-
|
|
11
|
-
_sym_db = _symbol_database.Default()
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
from flyte._protos.imagebuilder import definition_pb2 as imagebuilder_dot_definition__pb2
|
|
15
|
-
from flyte._protos.validate.validate import validate_pb2 as validate_dot_validate__pb2
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1aimagebuilder/payload.proto\x12\x15\x63loudidl.imagebuilder\x1a\x1dimagebuilder/definition.proto\x1a\x17validate/validate.proto\"w\n\x0fGetImageRequest\x12@\n\x02id\x18\x01 \x01(\x0b\x32&.cloudidl.imagebuilder.ImageIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x02id\x12\"\n\x0corganization\x18\x02 \x01(\tR\x0corganization\"F\n\x10GetImageResponse\x12\x32\n\x05image\x18\x01 \x01(\x0b\x32\x1c.cloudidl.imagebuilder.ImageR\x05imageB\xd1\x01\n\x19\x63om.cloudidl.imagebuilderB\x0cPayloadProtoH\x02P\x01Z/github.com/unionai/cloud/gen/pb-go/imagebuilder\xa2\x02\x03\x43IX\xaa\x02\x15\x43loudidl.Imagebuilder\xca\x02\x15\x43loudidl\\Imagebuilder\xe2\x02!Cloudidl\\Imagebuilder\\GPBMetadata\xea\x02\x16\x43loudidl::Imagebuilderb\x06proto3')
|
|
19
|
-
|
|
20
|
-
_globals = globals()
|
|
21
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'imagebuilder.payload_pb2', _globals)
|
|
23
|
-
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
-
DESCRIPTOR._options = None
|
|
25
|
-
DESCRIPTOR._serialized_options = b'\n\031com.cloudidl.imagebuilderB\014PayloadProtoH\002P\001Z/github.com/unionai/cloud/gen/pb-go/imagebuilder\242\002\003CIX\252\002\025Cloudidl.Imagebuilder\312\002\025Cloudidl\\Imagebuilder\342\002!Cloudidl\\Imagebuilder\\GPBMetadata\352\002\026Cloudidl::Imagebuilder'
|
|
26
|
-
_GETIMAGEREQUEST.fields_by_name['id']._options = None
|
|
27
|
-
_GETIMAGEREQUEST.fields_by_name['id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
28
|
-
_globals['_GETIMAGEREQUEST']._serialized_start=109
|
|
29
|
-
_globals['_GETIMAGEREQUEST']._serialized_end=228
|
|
30
|
-
_globals['_GETIMAGERESPONSE']._serialized_start=230
|
|
31
|
-
_globals['_GETIMAGERESPONSE']._serialized_end=300
|
|
32
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
from flyte._protos.imagebuilder import definition_pb2 as _definition_pb2
|
|
2
|
-
from flyte._protos.validate.validate import validate_pb2 as _validate_pb2
|
|
3
|
-
from google.protobuf import descriptor as _descriptor
|
|
4
|
-
from google.protobuf import message as _message
|
|
5
|
-
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
6
|
-
|
|
7
|
-
DESCRIPTOR: _descriptor.FileDescriptor
|
|
8
|
-
|
|
9
|
-
class GetImageRequest(_message.Message):
|
|
10
|
-
__slots__ = ["id", "organization"]
|
|
11
|
-
ID_FIELD_NUMBER: _ClassVar[int]
|
|
12
|
-
ORGANIZATION_FIELD_NUMBER: _ClassVar[int]
|
|
13
|
-
id: _definition_pb2.ImageIdentifier
|
|
14
|
-
organization: str
|
|
15
|
-
def __init__(self, id: _Optional[_Union[_definition_pb2.ImageIdentifier, _Mapping]] = ..., organization: _Optional[str] = ...) -> None: ...
|
|
16
|
-
|
|
17
|
-
class GetImageResponse(_message.Message):
|
|
18
|
-
__slots__ = ["image"]
|
|
19
|
-
IMAGE_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
-
image: _definition_pb2.Image
|
|
21
|
-
def __init__(self, image: _Optional[_Union[_definition_pb2.Image, _Mapping]] = ...) -> None: ...
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# source: imagebuilder/service.proto
|
|
4
|
-
"""Generated protocol buffer code."""
|
|
5
|
-
from google.protobuf import descriptor as _descriptor
|
|
6
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
-
from google.protobuf.internal import builder as _builder
|
|
9
|
-
# @@protoc_insertion_point(imports)
|
|
10
|
-
|
|
11
|
-
_sym_db = _symbol_database.Default()
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
from flyte._protos.imagebuilder import payload_pb2 as imagebuilder_dot_payload__pb2
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1aimagebuilder/service.proto\x12\x15\x63loudidl.imagebuilder\x1a\x1aimagebuilder/payload.proto2p\n\x0cImageService\x12`\n\x08GetImage\x12&.cloudidl.imagebuilder.GetImageRequest\x1a\'.cloudidl.imagebuilder.GetImageResponse\"\x03\x90\x02\x01\x42\xd1\x01\n\x19\x63om.cloudidl.imagebuilderB\x0cServiceProtoH\x02P\x01Z/github.com/unionai/cloud/gen/pb-go/imagebuilder\xa2\x02\x03\x43IX\xaa\x02\x15\x43loudidl.Imagebuilder\xca\x02\x15\x43loudidl\\Imagebuilder\xe2\x02!Cloudidl\\Imagebuilder\\GPBMetadata\xea\x02\x16\x43loudidl::Imagebuilderb\x06proto3')
|
|
18
|
-
|
|
19
|
-
_globals = globals()
|
|
20
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'imagebuilder.service_pb2', _globals)
|
|
22
|
-
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
-
DESCRIPTOR._options = None
|
|
24
|
-
DESCRIPTOR._serialized_options = b'\n\031com.cloudidl.imagebuilderB\014ServiceProtoH\002P\001Z/github.com/unionai/cloud/gen/pb-go/imagebuilder\242\002\003CIX\252\002\025Cloudidl.Imagebuilder\312\002\025Cloudidl\\Imagebuilder\342\002!Cloudidl\\Imagebuilder\\GPBMetadata\352\002\026Cloudidl::Imagebuilder'
|
|
25
|
-
_IMAGESERVICE.methods_by_name['GetImage']._options = None
|
|
26
|
-
_IMAGESERVICE.methods_by_name['GetImage']._serialized_options = b'\220\002\001'
|
|
27
|
-
_globals['_IMAGESERVICE']._serialized_start=81
|
|
28
|
-
_globals['_IMAGESERVICE']._serialized_end=193
|
|
29
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
-
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
-
import grpc
|
|
4
|
-
|
|
5
|
-
from flyte._protos.imagebuilder import payload_pb2 as imagebuilder_dot_payload__pb2
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class ImageServiceStub(object):
|
|
9
|
-
"""Missing associated documentation comment in .proto file."""
|
|
10
|
-
|
|
11
|
-
def __init__(self, channel):
|
|
12
|
-
"""Constructor.
|
|
13
|
-
|
|
14
|
-
Args:
|
|
15
|
-
channel: A grpc.Channel.
|
|
16
|
-
"""
|
|
17
|
-
self.GetImage = channel.unary_unary(
|
|
18
|
-
'/cloudidl.imagebuilder.ImageService/GetImage',
|
|
19
|
-
request_serializer=imagebuilder_dot_payload__pb2.GetImageRequest.SerializeToString,
|
|
20
|
-
response_deserializer=imagebuilder_dot_payload__pb2.GetImageResponse.FromString,
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class ImageServiceServicer(object):
|
|
25
|
-
"""Missing associated documentation comment in .proto file."""
|
|
26
|
-
|
|
27
|
-
def GetImage(self, request, context):
|
|
28
|
-
"""Missing associated documentation comment in .proto file."""
|
|
29
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
30
|
-
context.set_details('Method not implemented!')
|
|
31
|
-
raise NotImplementedError('Method not implemented!')
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
def add_ImageServiceServicer_to_server(servicer, server):
|
|
35
|
-
rpc_method_handlers = {
|
|
36
|
-
'GetImage': grpc.unary_unary_rpc_method_handler(
|
|
37
|
-
servicer.GetImage,
|
|
38
|
-
request_deserializer=imagebuilder_dot_payload__pb2.GetImageRequest.FromString,
|
|
39
|
-
response_serializer=imagebuilder_dot_payload__pb2.GetImageResponse.SerializeToString,
|
|
40
|
-
),
|
|
41
|
-
}
|
|
42
|
-
generic_handler = grpc.method_handlers_generic_handler(
|
|
43
|
-
'cloudidl.imagebuilder.ImageService', rpc_method_handlers)
|
|
44
|
-
server.add_generic_rpc_handlers((generic_handler,))
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
# This class is part of an EXPERIMENTAL API.
|
|
48
|
-
class ImageService(object):
|
|
49
|
-
"""Missing associated documentation comment in .proto file."""
|
|
50
|
-
|
|
51
|
-
@staticmethod
|
|
52
|
-
def GetImage(request,
|
|
53
|
-
target,
|
|
54
|
-
options=(),
|
|
55
|
-
channel_credentials=None,
|
|
56
|
-
call_credentials=None,
|
|
57
|
-
insecure=False,
|
|
58
|
-
compression=None,
|
|
59
|
-
wait_for_ready=None,
|
|
60
|
-
timeout=None,
|
|
61
|
-
metadata=None):
|
|
62
|
-
return grpc.experimental.unary_unary(request, target, '/cloudidl.imagebuilder.ImageService/GetImage',
|
|
63
|
-
imagebuilder_dot_payload__pb2.GetImageRequest.SerializeToString,
|
|
64
|
-
imagebuilder_dot_payload__pb2.GetImageResponse.FromString,
|
|
65
|
-
options, channel_credentials,
|
|
66
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# source: logs/dataplane/payload.proto
|
|
4
|
-
"""Generated protocol buffer code."""
|
|
5
|
-
from google.protobuf import descriptor as _descriptor
|
|
6
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
-
from google.protobuf.internal import builder as _builder
|
|
9
|
-
# @@protoc_insertion_point(imports)
|
|
10
|
-
|
|
11
|
-
_sym_db = _symbol_database.Default()
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
15
|
-
from flyte._protos.validate.validate import validate_pb2 as validate_dot_validate__pb2
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1clogs/dataplane/payload.proto\x12\x17\x63loudidl.logs.dataplane\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\"o\n\x0bPodResource\x12%\n\tnamespace\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\tnamespace\x12\x1b\n\x04name\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x04name\x12\x1c\n\tcontainer\x18\x03 \x01(\tR\tcontainer\"\xda\x01\n\x1cTailTaskExecutionLogsRequest\x12Z\n\x0flogging_context\x18\x01 \x01(\x0b\x32\'.cloudidl.logs.dataplane.LoggingContextB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x0eloggingContext\x12;\n\x06source\x18\x03 \x01(\x0e\x32#.cloudidl.logs.dataplane.LogsSourceR\x06source\x12\x1b\n\tno_follow\x18\x04 \x01(\x08R\x08noFollowJ\x04\x08\x02\x10\x03\"\xeb\x01\n\x1dTailTaskExecutionLogsResponse\x12Q\n\x04logs\x18\x01 \x01(\x0b\x32;.cloudidl.logs.dataplane.TailTaskExecutionLogsResponse.LogsH\x00R\x04logs\x1am\n\x04Logs\x12\x18\n\x05lines\x18\x01 \x03(\tB\x02\x18\x01R\x05lines\x12K\n\x10structured_lines\x18\x02 \x03(\x0b\x32 .cloudidl.logs.dataplane.LogLineR\x0fstructuredLinesB\x08\n\x06result\"\xf6\x04\n\x0eLoggingContext\x12*\n\x0c\x63luster_name\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x0b\x63lusterName\x12:\n\x14kubernetes_namespace\x18\x04 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x13kubernetesNamespace\x12\x37\n\x13kubernetes_pod_name\x18\x05 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x11kubernetesPodName\x12\x43\n\x19kubernetes_container_name\x18\x06 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x17kubernetesContainerName\x12[\n\x1c\x65xecution_attempt_start_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x19\x65xecutionAttemptStartTime\x12W\n\x1a\x65xecution_attempt_end_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x17\x65xecutionAttemptEndTime\x12t\n\x15kubernetes_pod_labels\x18\t \x03(\x0b\x32@.cloudidl.logs.dataplane.LoggingContext.KubernetesPodLabelsEntryR\x13kubernetesPodLabels\x1a\x46\n\x18KubernetesPodLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01J\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03\"\xf2\x01\n\x13\x43ontainerIdentifier\x12*\n\x0c\x63luster_name\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x0b\x63lusterName\x12:\n\x14kubernetes_namespace\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x13kubernetesNamespace\x12\x37\n\x13kubernetes_pod_name\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x11kubernetesPodName\x12:\n\x19kubernetes_container_name\x18\x04 \x01(\tR\x17kubernetesContainerName\"\xb7\x02\n\x11\x43ontainerSelector\x12*\n\x0c\x63luster_name\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x0b\x63lusterName\x12:\n\x14kubernetes_namespace\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x13kubernetesNamespace\x12;\n\x1akubernetes_pod_name_prefix\x18\x03 \x01(\tR\x17kubernetesPodNamePrefix\x12:\n\x19kubernetes_container_name\x18\x04 \x01(\tR\x17kubernetesContainerName\x12\x41\n\x1dkubernetes_pod_label_selector\x18\x05 \x01(\tR\x1akubernetesPodLabelSelector\"^\n\x0fLiveLogsOptions\x12$\n\x0elog_pod_status\x18\x01 \x01(\x08R\x0clogPodStatus\x12%\n\x0elog_timestamps\x18\x02 \x01(\x08R\rlogTimestamps\"\xd5\x03\n\x0fTailLogsRequest\x12L\n\tcontainer\x18\x01 \x01(\x0b\x32,.cloudidl.logs.dataplane.ContainerIdentifierH\x00R\tcontainer\x12[\n\x12\x63ontainer_selector\x18\x02 \x01(\x0b\x32*.cloudidl.logs.dataplane.ContainerSelectorH\x00R\x11\x63ontainerSelector\x12\x43\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01R\tstartTime\x12\x35\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12;\n\x06source\x18\x05 \x01(\x0e\x32#.cloudidl.logs.dataplane.LogsSourceR\x06source\x12T\n\x11live_logs_options\x18\x06 \x01(\x0b\x32(.cloudidl.logs.dataplane.LiveLogsOptionsR\x0fliveLogsOptionsB\x08\n\x06target\"\xa9\x01\n\x07LogLine\x12\x38\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ttimestamp\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12J\n\noriginator\x18\x03 \x01(\x0e\x32*.cloudidl.logs.dataplane.LogLineOriginatorR\noriginator\"\xf0\x01\n\x08LogLines\x12\x18\n\x05lines\x18\x01 \x03(\tB\x02\x18\x01R\x05lines\x12\'\n\x0f\x63ontainer_index\x18\x02 \x01(\rR\x0e\x63ontainerIndex\x12T\n\tcontainer\x18\x03 \x01(\x0b\x32,.cloudidl.logs.dataplane.ContainerIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\tcontainer\x12K\n\x10structured_lines\x18\x04 \x03(\x0b\x32 .cloudidl.logs.dataplane.LogLineR\x0fstructuredLines\"a\n\x11LogContainersList\x12L\n\ncontainers\x18\x01 \x03(\x0b\x32,.cloudidl.logs.dataplane.ContainerIdentifierR\ncontainers\"F\n\rLogLinesBatch\x12\x35\n\x04logs\x18\x01 \x03(\x0b\x32!.cloudidl.logs.dataplane.LogLinesR\x04logs\"\xd9\x01\n\x10TailLogsResponse\x12V\n\ncontainers\x18\x01 \x01(\x0b\x32*.cloudidl.logs.dataplane.LogContainersListB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\ncontainers\x12Z\n\x0flog_lines_batch\x18\x03 \x01(\x0b\x32&.cloudidl.logs.dataplane.LogLinesBatchB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\rlogLinesBatchB\x0b\n\x04resp\x12\x03\xf8\x42\x01J\x04\x08\x02\x10\x03*6\n\x11LogLineOriginator\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04USER\x10\x01\x12\n\n\x06SYSTEM\x10\x02*F\n\nLogsSource\x12\x15\n\x11LIVE_OR_PERSISTED\x10\x00\x12\r\n\tLIVE_ONLY\x10\x01\x12\x12\n\x0ePERSISTED_ONLY\x10\x02\x42\xde\x01\n\x1b\x63om.cloudidl.logs.dataplaneB\x0cPayloadProtoH\x02P\x01Z1github.com/unionai/cloud/gen/pb-go/logs/dataplane\xa2\x02\x03\x43LD\xaa\x02\x17\x43loudidl.Logs.Dataplane\xca\x02\x17\x43loudidl\\Logs\\Dataplane\xe2\x02#Cloudidl\\Logs\\Dataplane\\GPBMetadata\xea\x02\x19\x43loudidl::Logs::Dataplaneb\x06proto3')
|
|
19
|
-
|
|
20
|
-
_globals = globals()
|
|
21
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'logs.dataplane.payload_pb2', _globals)
|
|
23
|
-
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
-
DESCRIPTOR._options = None
|
|
25
|
-
DESCRIPTOR._serialized_options = b'\n\033com.cloudidl.logs.dataplaneB\014PayloadProtoH\002P\001Z1github.com/unionai/cloud/gen/pb-go/logs/dataplane\242\002\003CLD\252\002\027Cloudidl.Logs.Dataplane\312\002\027Cloudidl\\Logs\\Dataplane\342\002#Cloudidl\\Logs\\Dataplane\\GPBMetadata\352\002\031Cloudidl::Logs::Dataplane'
|
|
26
|
-
_PODRESOURCE.fields_by_name['namespace']._options = None
|
|
27
|
-
_PODRESOURCE.fields_by_name['namespace']._serialized_options = b'\372B\004r\002\020\001'
|
|
28
|
-
_PODRESOURCE.fields_by_name['name']._options = None
|
|
29
|
-
_PODRESOURCE.fields_by_name['name']._serialized_options = b'\372B\004r\002\020\001'
|
|
30
|
-
_TAILTASKEXECUTIONLOGSREQUEST.fields_by_name['logging_context']._options = None
|
|
31
|
-
_TAILTASKEXECUTIONLOGSREQUEST.fields_by_name['logging_context']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
32
|
-
_TAILTASKEXECUTIONLOGSRESPONSE_LOGS.fields_by_name['lines']._options = None
|
|
33
|
-
_TAILTASKEXECUTIONLOGSRESPONSE_LOGS.fields_by_name['lines']._serialized_options = b'\030\001'
|
|
34
|
-
_LOGGINGCONTEXT_KUBERNETESPODLABELSENTRY._options = None
|
|
35
|
-
_LOGGINGCONTEXT_KUBERNETESPODLABELSENTRY._serialized_options = b'8\001'
|
|
36
|
-
_LOGGINGCONTEXT.fields_by_name['cluster_name']._options = None
|
|
37
|
-
_LOGGINGCONTEXT.fields_by_name['cluster_name']._serialized_options = b'\372B\004r\002\020\001'
|
|
38
|
-
_LOGGINGCONTEXT.fields_by_name['kubernetes_namespace']._options = None
|
|
39
|
-
_LOGGINGCONTEXT.fields_by_name['kubernetes_namespace']._serialized_options = b'\372B\004r\002\020\001'
|
|
40
|
-
_LOGGINGCONTEXT.fields_by_name['kubernetes_pod_name']._options = None
|
|
41
|
-
_LOGGINGCONTEXT.fields_by_name['kubernetes_pod_name']._serialized_options = b'\372B\004r\002\020\001'
|
|
42
|
-
_LOGGINGCONTEXT.fields_by_name['kubernetes_container_name']._options = None
|
|
43
|
-
_LOGGINGCONTEXT.fields_by_name['kubernetes_container_name']._serialized_options = b'\372B\004r\002\020\001'
|
|
44
|
-
_CONTAINERIDENTIFIER.fields_by_name['cluster_name']._options = None
|
|
45
|
-
_CONTAINERIDENTIFIER.fields_by_name['cluster_name']._serialized_options = b'\372B\004r\002\020\001'
|
|
46
|
-
_CONTAINERIDENTIFIER.fields_by_name['kubernetes_namespace']._options = None
|
|
47
|
-
_CONTAINERIDENTIFIER.fields_by_name['kubernetes_namespace']._serialized_options = b'\372B\004r\002\020\001'
|
|
48
|
-
_CONTAINERIDENTIFIER.fields_by_name['kubernetes_pod_name']._options = None
|
|
49
|
-
_CONTAINERIDENTIFIER.fields_by_name['kubernetes_pod_name']._serialized_options = b'\372B\004r\002\020\001'
|
|
50
|
-
_CONTAINERSELECTOR.fields_by_name['cluster_name']._options = None
|
|
51
|
-
_CONTAINERSELECTOR.fields_by_name['cluster_name']._serialized_options = b'\372B\004r\002\020\001'
|
|
52
|
-
_CONTAINERSELECTOR.fields_by_name['kubernetes_namespace']._options = None
|
|
53
|
-
_CONTAINERSELECTOR.fields_by_name['kubernetes_namespace']._serialized_options = b'\372B\004r\002\020\001'
|
|
54
|
-
_TAILLOGSREQUEST.fields_by_name['start_time']._options = None
|
|
55
|
-
_TAILLOGSREQUEST.fields_by_name['start_time']._serialized_options = b'\372B\005\262\001\002\010\001'
|
|
56
|
-
_LOGLINES.fields_by_name['lines']._options = None
|
|
57
|
-
_LOGLINES.fields_by_name['lines']._serialized_options = b'\030\001'
|
|
58
|
-
_LOGLINES.fields_by_name['container']._options = None
|
|
59
|
-
_LOGLINES.fields_by_name['container']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
60
|
-
_TAILLOGSRESPONSE.oneofs_by_name['resp']._options = None
|
|
61
|
-
_TAILLOGSRESPONSE.oneofs_by_name['resp']._serialized_options = b'\370B\001'
|
|
62
|
-
_TAILLOGSRESPONSE.fields_by_name['containers']._options = None
|
|
63
|
-
_TAILLOGSRESPONSE.fields_by_name['containers']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
64
|
-
_TAILLOGSRESPONSE.fields_by_name['log_lines_batch']._options = None
|
|
65
|
-
_TAILLOGSRESPONSE.fields_by_name['log_lines_batch']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
66
|
-
_globals['_LOGLINEORIGINATOR']._serialized_start=3253
|
|
67
|
-
_globals['_LOGLINEORIGINATOR']._serialized_end=3307
|
|
68
|
-
_globals['_LOGSSOURCE']._serialized_start=3309
|
|
69
|
-
_globals['_LOGSSOURCE']._serialized_end=3379
|
|
70
|
-
_globals['_PODRESOURCE']._serialized_start=115
|
|
71
|
-
_globals['_PODRESOURCE']._serialized_end=226
|
|
72
|
-
_globals['_TAILTASKEXECUTIONLOGSREQUEST']._serialized_start=229
|
|
73
|
-
_globals['_TAILTASKEXECUTIONLOGSREQUEST']._serialized_end=447
|
|
74
|
-
_globals['_TAILTASKEXECUTIONLOGSRESPONSE']._serialized_start=450
|
|
75
|
-
_globals['_TAILTASKEXECUTIONLOGSRESPONSE']._serialized_end=685
|
|
76
|
-
_globals['_TAILTASKEXECUTIONLOGSRESPONSE_LOGS']._serialized_start=566
|
|
77
|
-
_globals['_TAILTASKEXECUTIONLOGSRESPONSE_LOGS']._serialized_end=675
|
|
78
|
-
_globals['_LOGGINGCONTEXT']._serialized_start=688
|
|
79
|
-
_globals['_LOGGINGCONTEXT']._serialized_end=1318
|
|
80
|
-
_globals['_LOGGINGCONTEXT_KUBERNETESPODLABELSENTRY']._serialized_start=1236
|
|
81
|
-
_globals['_LOGGINGCONTEXT_KUBERNETESPODLABELSENTRY']._serialized_end=1306
|
|
82
|
-
_globals['_CONTAINERIDENTIFIER']._serialized_start=1321
|
|
83
|
-
_globals['_CONTAINERIDENTIFIER']._serialized_end=1563
|
|
84
|
-
_globals['_CONTAINERSELECTOR']._serialized_start=1566
|
|
85
|
-
_globals['_CONTAINERSELECTOR']._serialized_end=1877
|
|
86
|
-
_globals['_LIVELOGSOPTIONS']._serialized_start=1879
|
|
87
|
-
_globals['_LIVELOGSOPTIONS']._serialized_end=1973
|
|
88
|
-
_globals['_TAILLOGSREQUEST']._serialized_start=1976
|
|
89
|
-
_globals['_TAILLOGSREQUEST']._serialized_end=2445
|
|
90
|
-
_globals['_LOGLINE']._serialized_start=2448
|
|
91
|
-
_globals['_LOGLINE']._serialized_end=2617
|
|
92
|
-
_globals['_LOGLINES']._serialized_start=2620
|
|
93
|
-
_globals['_LOGLINES']._serialized_end=2860
|
|
94
|
-
_globals['_LOGCONTAINERSLIST']._serialized_start=2862
|
|
95
|
-
_globals['_LOGCONTAINERSLIST']._serialized_end=2959
|
|
96
|
-
_globals['_LOGLINESBATCH']._serialized_start=2961
|
|
97
|
-
_globals['_LOGLINESBATCH']._serialized_end=3031
|
|
98
|
-
_globals['_TAILLOGSRESPONSE']._serialized_start=3034
|
|
99
|
-
_globals['_TAILLOGSRESPONSE']._serialized_end=3251
|
|
100
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
2
|
-
from flyte._protos.validate.validate import validate_pb2 as _validate_pb2
|
|
3
|
-
from google.protobuf.internal import containers as _containers
|
|
4
|
-
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
5
|
-
from google.protobuf import descriptor as _descriptor
|
|
6
|
-
from google.protobuf import message as _message
|
|
7
|
-
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
8
|
-
|
|
9
|
-
DESCRIPTOR: _descriptor.FileDescriptor
|
|
10
|
-
|
|
11
|
-
class LogLineOriginator(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
12
|
-
__slots__ = []
|
|
13
|
-
UNKNOWN: _ClassVar[LogLineOriginator]
|
|
14
|
-
USER: _ClassVar[LogLineOriginator]
|
|
15
|
-
SYSTEM: _ClassVar[LogLineOriginator]
|
|
16
|
-
|
|
17
|
-
class LogsSource(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
18
|
-
__slots__ = []
|
|
19
|
-
LIVE_OR_PERSISTED: _ClassVar[LogsSource]
|
|
20
|
-
LIVE_ONLY: _ClassVar[LogsSource]
|
|
21
|
-
PERSISTED_ONLY: _ClassVar[LogsSource]
|
|
22
|
-
UNKNOWN: LogLineOriginator
|
|
23
|
-
USER: LogLineOriginator
|
|
24
|
-
SYSTEM: LogLineOriginator
|
|
25
|
-
LIVE_OR_PERSISTED: LogsSource
|
|
26
|
-
LIVE_ONLY: LogsSource
|
|
27
|
-
PERSISTED_ONLY: LogsSource
|
|
28
|
-
|
|
29
|
-
class PodResource(_message.Message):
|
|
30
|
-
__slots__ = ["namespace", "name", "container"]
|
|
31
|
-
NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
|
32
|
-
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
-
CONTAINER_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
-
namespace: str
|
|
35
|
-
name: str
|
|
36
|
-
container: str
|
|
37
|
-
def __init__(self, namespace: _Optional[str] = ..., name: _Optional[str] = ..., container: _Optional[str] = ...) -> None: ...
|
|
38
|
-
|
|
39
|
-
class TailTaskExecutionLogsRequest(_message.Message):
|
|
40
|
-
__slots__ = ["logging_context", "source", "no_follow"]
|
|
41
|
-
LOGGING_CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
-
SOURCE_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
-
NO_FOLLOW_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
-
logging_context: LoggingContext
|
|
45
|
-
source: LogsSource
|
|
46
|
-
no_follow: bool
|
|
47
|
-
def __init__(self, logging_context: _Optional[_Union[LoggingContext, _Mapping]] = ..., source: _Optional[_Union[LogsSource, str]] = ..., no_follow: bool = ...) -> None: ...
|
|
48
|
-
|
|
49
|
-
class TailTaskExecutionLogsResponse(_message.Message):
|
|
50
|
-
__slots__ = ["logs"]
|
|
51
|
-
class Logs(_message.Message):
|
|
52
|
-
__slots__ = ["lines", "structured_lines"]
|
|
53
|
-
LINES_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
-
STRUCTURED_LINES_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
-
lines: _containers.RepeatedScalarFieldContainer[str]
|
|
56
|
-
structured_lines: _containers.RepeatedCompositeFieldContainer[LogLine]
|
|
57
|
-
def __init__(self, lines: _Optional[_Iterable[str]] = ..., structured_lines: _Optional[_Iterable[_Union[LogLine, _Mapping]]] = ...) -> None: ...
|
|
58
|
-
LOGS_FIELD_NUMBER: _ClassVar[int]
|
|
59
|
-
logs: TailTaskExecutionLogsResponse.Logs
|
|
60
|
-
def __init__(self, logs: _Optional[_Union[TailTaskExecutionLogsResponse.Logs, _Mapping]] = ...) -> None: ...
|
|
61
|
-
|
|
62
|
-
class LoggingContext(_message.Message):
|
|
63
|
-
__slots__ = ["cluster_name", "kubernetes_namespace", "kubernetes_pod_name", "kubernetes_container_name", "execution_attempt_start_time", "execution_attempt_end_time", "kubernetes_pod_labels"]
|
|
64
|
-
class KubernetesPodLabelsEntry(_message.Message):
|
|
65
|
-
__slots__ = ["key", "value"]
|
|
66
|
-
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
-
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
-
key: str
|
|
69
|
-
value: str
|
|
70
|
-
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
71
|
-
CLUSTER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
-
KUBERNETES_NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
|
73
|
-
KUBERNETES_POD_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
74
|
-
KUBERNETES_CONTAINER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
75
|
-
EXECUTION_ATTEMPT_START_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
76
|
-
EXECUTION_ATTEMPT_END_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
77
|
-
KUBERNETES_POD_LABELS_FIELD_NUMBER: _ClassVar[int]
|
|
78
|
-
cluster_name: str
|
|
79
|
-
kubernetes_namespace: str
|
|
80
|
-
kubernetes_pod_name: str
|
|
81
|
-
kubernetes_container_name: str
|
|
82
|
-
execution_attempt_start_time: _timestamp_pb2.Timestamp
|
|
83
|
-
execution_attempt_end_time: _timestamp_pb2.Timestamp
|
|
84
|
-
kubernetes_pod_labels: _containers.ScalarMap[str, str]
|
|
85
|
-
def __init__(self, cluster_name: _Optional[str] = ..., kubernetes_namespace: _Optional[str] = ..., kubernetes_pod_name: _Optional[str] = ..., kubernetes_container_name: _Optional[str] = ..., execution_attempt_start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., execution_attempt_end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., kubernetes_pod_labels: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
|
86
|
-
|
|
87
|
-
class ContainerIdentifier(_message.Message):
|
|
88
|
-
__slots__ = ["cluster_name", "kubernetes_namespace", "kubernetes_pod_name", "kubernetes_container_name"]
|
|
89
|
-
CLUSTER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
90
|
-
KUBERNETES_NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
|
91
|
-
KUBERNETES_POD_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
92
|
-
KUBERNETES_CONTAINER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
93
|
-
cluster_name: str
|
|
94
|
-
kubernetes_namespace: str
|
|
95
|
-
kubernetes_pod_name: str
|
|
96
|
-
kubernetes_container_name: str
|
|
97
|
-
def __init__(self, cluster_name: _Optional[str] = ..., kubernetes_namespace: _Optional[str] = ..., kubernetes_pod_name: _Optional[str] = ..., kubernetes_container_name: _Optional[str] = ...) -> None: ...
|
|
98
|
-
|
|
99
|
-
class ContainerSelector(_message.Message):
|
|
100
|
-
__slots__ = ["cluster_name", "kubernetes_namespace", "kubernetes_pod_name_prefix", "kubernetes_container_name", "kubernetes_pod_label_selector"]
|
|
101
|
-
CLUSTER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
102
|
-
KUBERNETES_NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
|
103
|
-
KUBERNETES_POD_NAME_PREFIX_FIELD_NUMBER: _ClassVar[int]
|
|
104
|
-
KUBERNETES_CONTAINER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
105
|
-
KUBERNETES_POD_LABEL_SELECTOR_FIELD_NUMBER: _ClassVar[int]
|
|
106
|
-
cluster_name: str
|
|
107
|
-
kubernetes_namespace: str
|
|
108
|
-
kubernetes_pod_name_prefix: str
|
|
109
|
-
kubernetes_container_name: str
|
|
110
|
-
kubernetes_pod_label_selector: str
|
|
111
|
-
def __init__(self, cluster_name: _Optional[str] = ..., kubernetes_namespace: _Optional[str] = ..., kubernetes_pod_name_prefix: _Optional[str] = ..., kubernetes_container_name: _Optional[str] = ..., kubernetes_pod_label_selector: _Optional[str] = ...) -> None: ...
|
|
112
|
-
|
|
113
|
-
class LiveLogsOptions(_message.Message):
|
|
114
|
-
__slots__ = ["log_pod_status", "log_timestamps"]
|
|
115
|
-
LOG_POD_STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
116
|
-
LOG_TIMESTAMPS_FIELD_NUMBER: _ClassVar[int]
|
|
117
|
-
log_pod_status: bool
|
|
118
|
-
log_timestamps: bool
|
|
119
|
-
def __init__(self, log_pod_status: bool = ..., log_timestamps: bool = ...) -> None: ...
|
|
120
|
-
|
|
121
|
-
class TailLogsRequest(_message.Message):
|
|
122
|
-
__slots__ = ["container", "container_selector", "start_time", "end_time", "source", "live_logs_options"]
|
|
123
|
-
CONTAINER_FIELD_NUMBER: _ClassVar[int]
|
|
124
|
-
CONTAINER_SELECTOR_FIELD_NUMBER: _ClassVar[int]
|
|
125
|
-
START_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
126
|
-
END_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
127
|
-
SOURCE_FIELD_NUMBER: _ClassVar[int]
|
|
128
|
-
LIVE_LOGS_OPTIONS_FIELD_NUMBER: _ClassVar[int]
|
|
129
|
-
container: ContainerIdentifier
|
|
130
|
-
container_selector: ContainerSelector
|
|
131
|
-
start_time: _timestamp_pb2.Timestamp
|
|
132
|
-
end_time: _timestamp_pb2.Timestamp
|
|
133
|
-
source: LogsSource
|
|
134
|
-
live_logs_options: LiveLogsOptions
|
|
135
|
-
def __init__(self, container: _Optional[_Union[ContainerIdentifier, _Mapping]] = ..., container_selector: _Optional[_Union[ContainerSelector, _Mapping]] = ..., start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., source: _Optional[_Union[LogsSource, str]] = ..., live_logs_options: _Optional[_Union[LiveLogsOptions, _Mapping]] = ...) -> None: ...
|
|
136
|
-
|
|
137
|
-
class LogLine(_message.Message):
|
|
138
|
-
__slots__ = ["timestamp", "message", "originator"]
|
|
139
|
-
TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
|
140
|
-
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
141
|
-
ORIGINATOR_FIELD_NUMBER: _ClassVar[int]
|
|
142
|
-
timestamp: _timestamp_pb2.Timestamp
|
|
143
|
-
message: str
|
|
144
|
-
originator: LogLineOriginator
|
|
145
|
-
def __init__(self, timestamp: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., message: _Optional[str] = ..., originator: _Optional[_Union[LogLineOriginator, str]] = ...) -> None: ...
|
|
146
|
-
|
|
147
|
-
class LogLines(_message.Message):
|
|
148
|
-
__slots__ = ["lines", "container_index", "container", "structured_lines"]
|
|
149
|
-
LINES_FIELD_NUMBER: _ClassVar[int]
|
|
150
|
-
CONTAINER_INDEX_FIELD_NUMBER: _ClassVar[int]
|
|
151
|
-
CONTAINER_FIELD_NUMBER: _ClassVar[int]
|
|
152
|
-
STRUCTURED_LINES_FIELD_NUMBER: _ClassVar[int]
|
|
153
|
-
lines: _containers.RepeatedScalarFieldContainer[str]
|
|
154
|
-
container_index: int
|
|
155
|
-
container: ContainerIdentifier
|
|
156
|
-
structured_lines: _containers.RepeatedCompositeFieldContainer[LogLine]
|
|
157
|
-
def __init__(self, lines: _Optional[_Iterable[str]] = ..., container_index: _Optional[int] = ..., container: _Optional[_Union[ContainerIdentifier, _Mapping]] = ..., structured_lines: _Optional[_Iterable[_Union[LogLine, _Mapping]]] = ...) -> None: ...
|
|
158
|
-
|
|
159
|
-
class LogContainersList(_message.Message):
|
|
160
|
-
__slots__ = ["containers"]
|
|
161
|
-
CONTAINERS_FIELD_NUMBER: _ClassVar[int]
|
|
162
|
-
containers: _containers.RepeatedCompositeFieldContainer[ContainerIdentifier]
|
|
163
|
-
def __init__(self, containers: _Optional[_Iterable[_Union[ContainerIdentifier, _Mapping]]] = ...) -> None: ...
|
|
164
|
-
|
|
165
|
-
class LogLinesBatch(_message.Message):
|
|
166
|
-
__slots__ = ["logs"]
|
|
167
|
-
LOGS_FIELD_NUMBER: _ClassVar[int]
|
|
168
|
-
logs: _containers.RepeatedCompositeFieldContainer[LogLines]
|
|
169
|
-
def __init__(self, logs: _Optional[_Iterable[_Union[LogLines, _Mapping]]] = ...) -> None: ...
|
|
170
|
-
|
|
171
|
-
class TailLogsResponse(_message.Message):
|
|
172
|
-
__slots__ = ["containers", "log_lines_batch"]
|
|
173
|
-
CONTAINERS_FIELD_NUMBER: _ClassVar[int]
|
|
174
|
-
LOG_LINES_BATCH_FIELD_NUMBER: _ClassVar[int]
|
|
175
|
-
containers: LogContainersList
|
|
176
|
-
log_lines_batch: LogLinesBatch
|
|
177
|
-
def __init__(self, containers: _Optional[_Union[LogContainersList, _Mapping]] = ..., log_lines_batch: _Optional[_Union[LogLinesBatch, _Mapping]] = ...) -> None: ...
|