flyte 0.0.1b0__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.
Potentially problematic release.
This version of flyte might be problematic. Click here for more details.
- flyte/__init__.py +62 -0
- flyte/_api_commons.py +3 -0
- flyte/_bin/__init__.py +0 -0
- flyte/_bin/runtime.py +126 -0
- flyte/_build.py +25 -0
- flyte/_cache/__init__.py +12 -0
- flyte/_cache/cache.py +146 -0
- flyte/_cache/defaults.py +9 -0
- flyte/_cache/policy_function_body.py +42 -0
- flyte/_cli/__init__.py +0 -0
- flyte/_cli/_common.py +287 -0
- flyte/_cli/_create.py +42 -0
- flyte/_cli/_delete.py +23 -0
- flyte/_cli/_deploy.py +140 -0
- flyte/_cli/_get.py +235 -0
- flyte/_cli/_run.py +152 -0
- flyte/_cli/main.py +72 -0
- flyte/_code_bundle/__init__.py +8 -0
- flyte/_code_bundle/_ignore.py +113 -0
- flyte/_code_bundle/_packaging.py +187 -0
- flyte/_code_bundle/_utils.py +339 -0
- flyte/_code_bundle/bundle.py +178 -0
- flyte/_context.py +146 -0
- flyte/_datastructures.py +342 -0
- flyte/_deploy.py +202 -0
- flyte/_doc.py +29 -0
- flyte/_docstring.py +32 -0
- flyte/_environment.py +43 -0
- flyte/_group.py +31 -0
- flyte/_hash.py +23 -0
- flyte/_image.py +760 -0
- flyte/_initialize.py +634 -0
- flyte/_interface.py +84 -0
- flyte/_internal/__init__.py +3 -0
- flyte/_internal/controllers/__init__.py +115 -0
- flyte/_internal/controllers/_local_controller.py +118 -0
- flyte/_internal/controllers/_trace.py +40 -0
- flyte/_internal/controllers/pbhash.py +39 -0
- flyte/_internal/controllers/remote/__init__.py +40 -0
- flyte/_internal/controllers/remote/_action.py +141 -0
- flyte/_internal/controllers/remote/_client.py +43 -0
- flyte/_internal/controllers/remote/_controller.py +361 -0
- flyte/_internal/controllers/remote/_core.py +402 -0
- flyte/_internal/controllers/remote/_informer.py +361 -0
- flyte/_internal/controllers/remote/_service_protocol.py +50 -0
- flyte/_internal/imagebuild/__init__.py +11 -0
- flyte/_internal/imagebuild/docker_builder.py +416 -0
- flyte/_internal/imagebuild/image_builder.py +241 -0
- flyte/_internal/imagebuild/remote_builder.py +0 -0
- flyte/_internal/resolvers/__init__.py +0 -0
- flyte/_internal/resolvers/_task_module.py +54 -0
- flyte/_internal/resolvers/common.py +31 -0
- flyte/_internal/resolvers/default.py +28 -0
- flyte/_internal/runtime/__init__.py +0 -0
- flyte/_internal/runtime/convert.py +199 -0
- flyte/_internal/runtime/entrypoints.py +135 -0
- flyte/_internal/runtime/io.py +136 -0
- flyte/_internal/runtime/resources_serde.py +138 -0
- flyte/_internal/runtime/task_serde.py +210 -0
- flyte/_internal/runtime/taskrunner.py +190 -0
- flyte/_internal/runtime/types_serde.py +54 -0
- flyte/_logging.py +124 -0
- flyte/_protos/__init__.py +0 -0
- flyte/_protos/common/authorization_pb2.py +66 -0
- flyte/_protos/common/authorization_pb2.pyi +108 -0
- flyte/_protos/common/authorization_pb2_grpc.py +4 -0
- flyte/_protos/common/identifier_pb2.py +71 -0
- flyte/_protos/common/identifier_pb2.pyi +82 -0
- flyte/_protos/common/identifier_pb2_grpc.py +4 -0
- flyte/_protos/common/identity_pb2.py +48 -0
- flyte/_protos/common/identity_pb2.pyi +72 -0
- flyte/_protos/common/identity_pb2_grpc.py +4 -0
- flyte/_protos/common/list_pb2.py +36 -0
- flyte/_protos/common/list_pb2.pyi +69 -0
- flyte/_protos/common/list_pb2_grpc.py +4 -0
- flyte/_protos/common/policy_pb2.py +37 -0
- flyte/_protos/common/policy_pb2.pyi +27 -0
- flyte/_protos/common/policy_pb2_grpc.py +4 -0
- flyte/_protos/common/role_pb2.py +37 -0
- flyte/_protos/common/role_pb2.pyi +53 -0
- flyte/_protos/common/role_pb2_grpc.py +4 -0
- flyte/_protos/common/runtime_version_pb2.py +28 -0
- flyte/_protos/common/runtime_version_pb2.pyi +24 -0
- flyte/_protos/common/runtime_version_pb2_grpc.py +4 -0
- flyte/_protos/logs/dataplane/payload_pb2.py +96 -0
- flyte/_protos/logs/dataplane/payload_pb2.pyi +168 -0
- flyte/_protos/logs/dataplane/payload_pb2_grpc.py +4 -0
- flyte/_protos/secret/definition_pb2.py +49 -0
- flyte/_protos/secret/definition_pb2.pyi +93 -0
- flyte/_protos/secret/definition_pb2_grpc.py +4 -0
- flyte/_protos/secret/payload_pb2.py +62 -0
- flyte/_protos/secret/payload_pb2.pyi +94 -0
- flyte/_protos/secret/payload_pb2_grpc.py +4 -0
- flyte/_protos/secret/secret_pb2.py +38 -0
- flyte/_protos/secret/secret_pb2.pyi +6 -0
- flyte/_protos/secret/secret_pb2_grpc.py +198 -0
- flyte/_protos/secret/secret_pb2_grpc_grpc.py +198 -0
- flyte/_protos/validate/validate/validate_pb2.py +76 -0
- flyte/_protos/workflow/node_execution_service_pb2.py +26 -0
- flyte/_protos/workflow/node_execution_service_pb2.pyi +4 -0
- flyte/_protos/workflow/node_execution_service_pb2_grpc.py +32 -0
- flyte/_protos/workflow/queue_service_pb2.py +106 -0
- flyte/_protos/workflow/queue_service_pb2.pyi +141 -0
- flyte/_protos/workflow/queue_service_pb2_grpc.py +172 -0
- flyte/_protos/workflow/run_definition_pb2.py +128 -0
- flyte/_protos/workflow/run_definition_pb2.pyi +310 -0
- flyte/_protos/workflow/run_definition_pb2_grpc.py +4 -0
- flyte/_protos/workflow/run_logs_service_pb2.py +41 -0
- flyte/_protos/workflow/run_logs_service_pb2.pyi +28 -0
- flyte/_protos/workflow/run_logs_service_pb2_grpc.py +69 -0
- flyte/_protos/workflow/run_service_pb2.py +133 -0
- flyte/_protos/workflow/run_service_pb2.pyi +175 -0
- flyte/_protos/workflow/run_service_pb2_grpc.py +412 -0
- flyte/_protos/workflow/state_service_pb2.py +58 -0
- flyte/_protos/workflow/state_service_pb2.pyi +71 -0
- flyte/_protos/workflow/state_service_pb2_grpc.py +138 -0
- flyte/_protos/workflow/task_definition_pb2.py +72 -0
- flyte/_protos/workflow/task_definition_pb2.pyi +65 -0
- flyte/_protos/workflow/task_definition_pb2_grpc.py +4 -0
- flyte/_protos/workflow/task_service_pb2.py +44 -0
- flyte/_protos/workflow/task_service_pb2.pyi +31 -0
- flyte/_protos/workflow/task_service_pb2_grpc.py +104 -0
- flyte/_resources.py +226 -0
- flyte/_retry.py +32 -0
- flyte/_reusable_environment.py +25 -0
- flyte/_run.py +411 -0
- flyte/_secret.py +61 -0
- flyte/_task.py +367 -0
- flyte/_task_environment.py +200 -0
- flyte/_timeout.py +47 -0
- flyte/_tools.py +27 -0
- flyte/_trace.py +128 -0
- flyte/_utils/__init__.py +20 -0
- flyte/_utils/asyn.py +119 -0
- flyte/_utils/coro_management.py +25 -0
- flyte/_utils/file_handling.py +72 -0
- flyte/_utils/helpers.py +108 -0
- flyte/_utils/lazy_module.py +54 -0
- flyte/_utils/uv_script_parser.py +49 -0
- flyte/_version.py +21 -0
- flyte/connectors/__init__.py +0 -0
- flyte/errors.py +143 -0
- flyte/extras/__init__.py +5 -0
- flyte/extras/_container.py +273 -0
- flyte/io/__init__.py +11 -0
- flyte/io/_dataframe.py +0 -0
- flyte/io/_dir.py +448 -0
- flyte/io/_file.py +468 -0
- flyte/io/pickle/__init__.py +0 -0
- flyte/io/pickle/transformer.py +117 -0
- flyte/io/structured_dataset/__init__.py +129 -0
- flyte/io/structured_dataset/basic_dfs.py +219 -0
- flyte/io/structured_dataset/structured_dataset.py +1061 -0
- flyte/py.typed +0 -0
- flyte/remote/__init__.py +25 -0
- flyte/remote/_client/__init__.py +0 -0
- flyte/remote/_client/_protocols.py +131 -0
- flyte/remote/_client/auth/__init__.py +12 -0
- flyte/remote/_client/auth/_authenticators/__init__.py +0 -0
- flyte/remote/_client/auth/_authenticators/base.py +397 -0
- flyte/remote/_client/auth/_authenticators/client_credentials.py +73 -0
- flyte/remote/_client/auth/_authenticators/device_code.py +118 -0
- flyte/remote/_client/auth/_authenticators/external_command.py +79 -0
- flyte/remote/_client/auth/_authenticators/factory.py +200 -0
- flyte/remote/_client/auth/_authenticators/pkce.py +516 -0
- flyte/remote/_client/auth/_channel.py +184 -0
- flyte/remote/_client/auth/_client_config.py +83 -0
- flyte/remote/_client/auth/_default_html.py +32 -0
- flyte/remote/_client/auth/_grpc_utils/__init__.py +0 -0
- flyte/remote/_client/auth/_grpc_utils/auth_interceptor.py +288 -0
- flyte/remote/_client/auth/_grpc_utils/default_metadata_interceptor.py +151 -0
- flyte/remote/_client/auth/_keyring.py +143 -0
- flyte/remote/_client/auth/_token_client.py +260 -0
- flyte/remote/_client/auth/errors.py +16 -0
- flyte/remote/_client/controlplane.py +95 -0
- flyte/remote/_console.py +18 -0
- flyte/remote/_data.py +155 -0
- flyte/remote/_logs.py +116 -0
- flyte/remote/_project.py +86 -0
- flyte/remote/_run.py +873 -0
- flyte/remote/_secret.py +132 -0
- flyte/remote/_task.py +227 -0
- flyte/report/__init__.py +3 -0
- flyte/report/_report.py +178 -0
- flyte/report/_template.html +124 -0
- flyte/storage/__init__.py +24 -0
- flyte/storage/_remote_fs.py +34 -0
- flyte/storage/_storage.py +251 -0
- flyte/storage/_utils.py +5 -0
- flyte/types/__init__.py +13 -0
- flyte/types/_interface.py +25 -0
- flyte/types/_renderer.py +162 -0
- flyte/types/_string_literals.py +120 -0
- flyte/types/_type_engine.py +2210 -0
- flyte/types/_utils.py +80 -0
- flyte-0.0.1b0.dist-info/METADATA +179 -0
- flyte-0.0.1b0.dist-info/RECORD +390 -0
- flyte-0.0.1b0.dist-info/WHEEL +5 -0
- flyte-0.0.1b0.dist-info/entry_points.txt +3 -0
- flyte-0.0.1b0.dist-info/top_level.txt +1 -0
- union/__init__.py +54 -0
- union/_api_commons.py +3 -0
- union/_bin/__init__.py +0 -0
- union/_bin/runtime.py +113 -0
- union/_build.py +25 -0
- union/_cache/__init__.py +12 -0
- union/_cache/cache.py +141 -0
- union/_cache/defaults.py +9 -0
- union/_cache/policy_function_body.py +42 -0
- union/_cli/__init__.py +0 -0
- union/_cli/_common.py +263 -0
- union/_cli/_create.py +40 -0
- union/_cli/_delete.py +23 -0
- union/_cli/_deploy.py +120 -0
- union/_cli/_get.py +162 -0
- union/_cli/_params.py +579 -0
- union/_cli/_run.py +150 -0
- union/_cli/main.py +72 -0
- union/_code_bundle/__init__.py +8 -0
- union/_code_bundle/_ignore.py +113 -0
- union/_code_bundle/_packaging.py +187 -0
- union/_code_bundle/_utils.py +342 -0
- union/_code_bundle/bundle.py +176 -0
- union/_context.py +146 -0
- union/_datastructures.py +295 -0
- union/_deploy.py +185 -0
- union/_doc.py +29 -0
- union/_docstring.py +26 -0
- union/_environment.py +43 -0
- union/_group.py +31 -0
- union/_hash.py +23 -0
- union/_image.py +760 -0
- union/_initialize.py +585 -0
- union/_interface.py +84 -0
- union/_internal/__init__.py +3 -0
- union/_internal/controllers/__init__.py +77 -0
- union/_internal/controllers/_local_controller.py +77 -0
- union/_internal/controllers/pbhash.py +39 -0
- union/_internal/controllers/remote/__init__.py +40 -0
- union/_internal/controllers/remote/_action.py +131 -0
- union/_internal/controllers/remote/_client.py +43 -0
- union/_internal/controllers/remote/_controller.py +169 -0
- union/_internal/controllers/remote/_core.py +341 -0
- union/_internal/controllers/remote/_informer.py +260 -0
- union/_internal/controllers/remote/_service_protocol.py +44 -0
- union/_internal/imagebuild/__init__.py +11 -0
- union/_internal/imagebuild/docker_builder.py +416 -0
- union/_internal/imagebuild/image_builder.py +243 -0
- union/_internal/imagebuild/remote_builder.py +0 -0
- union/_internal/resolvers/__init__.py +0 -0
- union/_internal/resolvers/_task_module.py +31 -0
- union/_internal/resolvers/common.py +24 -0
- union/_internal/resolvers/default.py +27 -0
- union/_internal/runtime/__init__.py +0 -0
- union/_internal/runtime/convert.py +163 -0
- union/_internal/runtime/entrypoints.py +121 -0
- union/_internal/runtime/io.py +136 -0
- union/_internal/runtime/resources_serde.py +134 -0
- union/_internal/runtime/task_serde.py +202 -0
- union/_internal/runtime/taskrunner.py +179 -0
- union/_internal/runtime/types_serde.py +53 -0
- union/_logging.py +124 -0
- union/_protos/__init__.py +0 -0
- union/_protos/common/authorization_pb2.py +66 -0
- union/_protos/common/authorization_pb2.pyi +106 -0
- union/_protos/common/authorization_pb2_grpc.py +4 -0
- union/_protos/common/identifier_pb2.py +71 -0
- union/_protos/common/identifier_pb2.pyi +82 -0
- union/_protos/common/identifier_pb2_grpc.py +4 -0
- union/_protos/common/identity_pb2.py +48 -0
- union/_protos/common/identity_pb2.pyi +72 -0
- union/_protos/common/identity_pb2_grpc.py +4 -0
- union/_protos/common/list_pb2.py +36 -0
- union/_protos/common/list_pb2.pyi +69 -0
- union/_protos/common/list_pb2_grpc.py +4 -0
- union/_protos/common/policy_pb2.py +37 -0
- union/_protos/common/policy_pb2.pyi +27 -0
- union/_protos/common/policy_pb2_grpc.py +4 -0
- union/_protos/common/role_pb2.py +37 -0
- union/_protos/common/role_pb2.pyi +51 -0
- union/_protos/common/role_pb2_grpc.py +4 -0
- union/_protos/common/runtime_version_pb2.py +28 -0
- union/_protos/common/runtime_version_pb2.pyi +24 -0
- union/_protos/common/runtime_version_pb2_grpc.py +4 -0
- union/_protos/logs/dataplane/payload_pb2.py +96 -0
- union/_protos/logs/dataplane/payload_pb2.pyi +168 -0
- union/_protos/logs/dataplane/payload_pb2_grpc.py +4 -0
- union/_protos/secret/definition_pb2.py +49 -0
- union/_protos/secret/definition_pb2.pyi +93 -0
- union/_protos/secret/definition_pb2_grpc.py +4 -0
- union/_protos/secret/payload_pb2.py +62 -0
- union/_protos/secret/payload_pb2.pyi +94 -0
- union/_protos/secret/payload_pb2_grpc.py +4 -0
- union/_protos/secret/secret_pb2.py +38 -0
- union/_protos/secret/secret_pb2.pyi +6 -0
- union/_protos/secret/secret_pb2_grpc.py +198 -0
- union/_protos/validate/validate/validate_pb2.py +76 -0
- union/_protos/workflow/node_execution_service_pb2.py +26 -0
- union/_protos/workflow/node_execution_service_pb2.pyi +4 -0
- union/_protos/workflow/node_execution_service_pb2_grpc.py +32 -0
- union/_protos/workflow/queue_service_pb2.py +75 -0
- union/_protos/workflow/queue_service_pb2.pyi +103 -0
- union/_protos/workflow/queue_service_pb2_grpc.py +172 -0
- union/_protos/workflow/run_definition_pb2.py +100 -0
- union/_protos/workflow/run_definition_pb2.pyi +256 -0
- union/_protos/workflow/run_definition_pb2_grpc.py +4 -0
- union/_protos/workflow/run_logs_service_pb2.py +41 -0
- union/_protos/workflow/run_logs_service_pb2.pyi +28 -0
- union/_protos/workflow/run_logs_service_pb2_grpc.py +69 -0
- union/_protos/workflow/run_service_pb2.py +133 -0
- union/_protos/workflow/run_service_pb2.pyi +173 -0
- union/_protos/workflow/run_service_pb2_grpc.py +412 -0
- union/_protos/workflow/state_service_pb2.py +58 -0
- union/_protos/workflow/state_service_pb2.pyi +69 -0
- union/_protos/workflow/state_service_pb2_grpc.py +138 -0
- union/_protos/workflow/task_definition_pb2.py +72 -0
- union/_protos/workflow/task_definition_pb2.pyi +65 -0
- union/_protos/workflow/task_definition_pb2_grpc.py +4 -0
- union/_protos/workflow/task_service_pb2.py +44 -0
- union/_protos/workflow/task_service_pb2.pyi +31 -0
- union/_protos/workflow/task_service_pb2_grpc.py +104 -0
- union/_resources.py +226 -0
- union/_retry.py +32 -0
- union/_reusable_environment.py +25 -0
- union/_run.py +374 -0
- union/_secret.py +61 -0
- union/_task.py +354 -0
- union/_task_environment.py +186 -0
- union/_timeout.py +47 -0
- union/_tools.py +27 -0
- union/_utils/__init__.py +11 -0
- union/_utils/asyn.py +119 -0
- union/_utils/file_handling.py +71 -0
- union/_utils/helpers.py +46 -0
- union/_utils/lazy_module.py +54 -0
- union/_utils/uv_script_parser.py +49 -0
- union/_version.py +21 -0
- union/connectors/__init__.py +0 -0
- union/errors.py +128 -0
- union/extras/__init__.py +5 -0
- union/extras/_container.py +263 -0
- union/io/__init__.py +11 -0
- union/io/_dataframe.py +0 -0
- union/io/_dir.py +425 -0
- union/io/_file.py +418 -0
- union/io/pickle/__init__.py +0 -0
- union/io/pickle/transformer.py +117 -0
- union/io/structured_dataset/__init__.py +122 -0
- union/io/structured_dataset/basic_dfs.py +219 -0
- union/io/structured_dataset/structured_dataset.py +1057 -0
- union/py.typed +0 -0
- union/remote/__init__.py +23 -0
- union/remote/_client/__init__.py +0 -0
- union/remote/_client/_protocols.py +129 -0
- union/remote/_client/auth/__init__.py +12 -0
- union/remote/_client/auth/_authenticators/__init__.py +0 -0
- union/remote/_client/auth/_authenticators/base.py +391 -0
- union/remote/_client/auth/_authenticators/client_credentials.py +73 -0
- union/remote/_client/auth/_authenticators/device_code.py +120 -0
- union/remote/_client/auth/_authenticators/external_command.py +77 -0
- union/remote/_client/auth/_authenticators/factory.py +200 -0
- union/remote/_client/auth/_authenticators/pkce.py +515 -0
- union/remote/_client/auth/_channel.py +184 -0
- union/remote/_client/auth/_client_config.py +83 -0
- union/remote/_client/auth/_default_html.py +32 -0
- union/remote/_client/auth/_grpc_utils/__init__.py +0 -0
- union/remote/_client/auth/_grpc_utils/auth_interceptor.py +204 -0
- union/remote/_client/auth/_grpc_utils/default_metadata_interceptor.py +144 -0
- union/remote/_client/auth/_keyring.py +154 -0
- union/remote/_client/auth/_token_client.py +258 -0
- union/remote/_client/auth/errors.py +16 -0
- union/remote/_client/controlplane.py +86 -0
- union/remote/_data.py +149 -0
- union/remote/_logs.py +74 -0
- union/remote/_project.py +86 -0
- union/remote/_run.py +820 -0
- union/remote/_secret.py +132 -0
- union/remote/_task.py +193 -0
- union/report/__init__.py +3 -0
- union/report/_report.py +178 -0
- union/report/_template.html +124 -0
- union/storage/__init__.py +24 -0
- union/storage/_remote_fs.py +34 -0
- union/storage/_storage.py +247 -0
- union/storage/_utils.py +5 -0
- union/types/__init__.py +11 -0
- union/types/_renderer.py +162 -0
- union/types/_string_literals.py +120 -0
- union/types/_type_engine.py +2131 -0
- union/types/_utils.py +80 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: secret/definition.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.common import identifier_pb2 as common_dot_identifier__pb2
|
|
15
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
16
|
+
from flyte._protos.validate.validate import validate_pb2 as validate_dot_validate__pb2
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17secret/definition.proto\x12\x0f\x63loudidl.secret\x1a\x17\x63ommon/identifier.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\"\x95\x01\n\nSecretSpec\x12#\n\x0cstring_value\x18\x01 \x01(\tH\x00R\x0bstringValue\x12#\n\x0c\x62inary_value\x18\x02 \x01(\x0cH\x00R\x0b\x62inaryValue\x12/\n\x04type\x18\x03 \x01(\x0e\x32\x1b.cloudidl.secret.SecretTypeR\x04typeB\x0c\n\x05value\x12\x03\xf8\x42\x01\"\x97\x01\n\x10SecretIdentifier\x12-\n\x04name\x18\x01 \x01(\tB\x19\xfa\x42\x16r\x14\x10\x01\x32\x10^[-a-zA-Z0-9_]+$R\x04name\x12\"\n\x0corganization\x18\x02 \x01(\tR\x0corganization\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12\x18\n\x07project\x18\x04 \x01(\tR\x07project\"\xc4\x01\n\x0eSecretMetadata\x12=\n\x0c\x63reated_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0b\x63reatedTime\x12\x42\n\rsecret_status\x18\x02 \x01(\x0b\x32\x1d.cloudidl.secret.SecretStatusR\x0csecretStatus\x12/\n\x04type\x18\x03 \x01(\x0e\x32\x1b.cloudidl.secret.SecretTypeR\x04type\"\xa2\x01\n\x0cSecretStatus\x12\x45\n\x0eoverall_status\x18\x01 \x01(\x0e\x32\x1e.cloudidl.secret.OverallStatusR\roverallStatus\x12K\n\x0e\x63luster_status\x18\x02 \x03(\x0b\x32$.cloudidl.secret.ClusterSecretStatusR\rclusterStatus\"\xa3\x01\n\x13\x43lusterSecretStatus\x12<\n\x07\x63luster\x18\x01 \x01(\x0b\x32\".cloudidl.common.ClusterIdentifierR\x07\x63luster\x12N\n\x0fpresence_status\x18\x02 \x01(\x0e\x32%.cloudidl.secret.SecretPresenceStatusR\x0epresenceStatus\"\x85\x01\n\x06Secret\x12\x31\n\x02id\x18\x01 \x01(\x0b\x32!.cloudidl.secret.SecretIdentifierR\x02id\x12H\n\x0fsecret_metadata\x18\x02 \x01(\x0b\x32\x1f.cloudidl.secret.SecretMetadataR\x0esecretMetadata*H\n\nSecretType\x12\x17\n\x13SECRET_TYPE_GENERIC\x10\x00\x12!\n\x1dSECRET_TYPE_IMAGE_PULL_SECRET\x10\x01*^\n\rOverallStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x15\n\x11PARTIALLY_PRESENT\x10\x01\x12\x11\n\rFULLY_PRESENT\x10\x02\x12\x12\n\x0eUNKNOWN_STATUS\x10\x03*=\n\x14SecretPresenceStatus\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07MISSING\x10\x01\x12\x0b\n\x07PRESENT\x10\x02\x42\xb0\x01\n\x13\x63om.cloudidl.secretB\x0f\x44\x65\x66initionProtoH\x02P\x01Z)github.com/unionai/cloud/gen/pb-go/secret\xa2\x02\x03\x43SX\xaa\x02\x0f\x43loudidl.Secret\xca\x02\x0f\x43loudidl\\Secret\xe2\x02\x1b\x43loudidl\\Secret\\GPBMetadata\xea\x02\x10\x43loudidl::Secretb\x06proto3')
|
|
20
|
+
|
|
21
|
+
_globals = globals()
|
|
22
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
23
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'secret.definition_pb2', _globals)
|
|
24
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
25
|
+
DESCRIPTOR._options = None
|
|
26
|
+
DESCRIPTOR._serialized_options = b'\n\023com.cloudidl.secretB\017DefinitionProtoH\002P\001Z)github.com/unionai/cloud/gen/pb-go/secret\242\002\003CSX\252\002\017Cloudidl.Secret\312\002\017Cloudidl\\Secret\342\002\033Cloudidl\\Secret\\GPBMetadata\352\002\020Cloudidl::Secret'
|
|
27
|
+
_SECRETSPEC.oneofs_by_name['value']._options = None
|
|
28
|
+
_SECRETSPEC.oneofs_by_name['value']._serialized_options = b'\370B\001'
|
|
29
|
+
_SECRETIDENTIFIER.fields_by_name['name']._options = None
|
|
30
|
+
_SECRETIDENTIFIER.fields_by_name['name']._serialized_options = b'\372B\026r\024\020\0012\020^[-a-zA-Z0-9_]+$'
|
|
31
|
+
_globals['_SECRETTYPE']._serialized_start=1099
|
|
32
|
+
_globals['_SECRETTYPE']._serialized_end=1171
|
|
33
|
+
_globals['_OVERALLSTATUS']._serialized_start=1173
|
|
34
|
+
_globals['_OVERALLSTATUS']._serialized_end=1267
|
|
35
|
+
_globals['_SECRETPRESENCESTATUS']._serialized_start=1269
|
|
36
|
+
_globals['_SECRETPRESENCESTATUS']._serialized_end=1330
|
|
37
|
+
_globals['_SECRETSPEC']._serialized_start=128
|
|
38
|
+
_globals['_SECRETSPEC']._serialized_end=277
|
|
39
|
+
_globals['_SECRETIDENTIFIER']._serialized_start=280
|
|
40
|
+
_globals['_SECRETIDENTIFIER']._serialized_end=431
|
|
41
|
+
_globals['_SECRETMETADATA']._serialized_start=434
|
|
42
|
+
_globals['_SECRETMETADATA']._serialized_end=630
|
|
43
|
+
_globals['_SECRETSTATUS']._serialized_start=633
|
|
44
|
+
_globals['_SECRETSTATUS']._serialized_end=795
|
|
45
|
+
_globals['_CLUSTERSECRETSTATUS']._serialized_start=798
|
|
46
|
+
_globals['_CLUSTERSECRETSTATUS']._serialized_end=961
|
|
47
|
+
_globals['_SECRET']._serialized_start=964
|
|
48
|
+
_globals['_SECRET']._serialized_end=1097
|
|
49
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
from flyte._protos.common import identifier_pb2 as _identifier_pb2
|
|
2
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
3
|
+
from flyte._protos.validate.validate import validate_pb2 as _validate_pb2
|
|
4
|
+
from google.protobuf.internal import containers as _containers
|
|
5
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import message as _message
|
|
8
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
9
|
+
|
|
10
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
11
|
+
|
|
12
|
+
class SecretType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
13
|
+
__slots__ = []
|
|
14
|
+
SECRET_TYPE_GENERIC: _ClassVar[SecretType]
|
|
15
|
+
SECRET_TYPE_IMAGE_PULL_SECRET: _ClassVar[SecretType]
|
|
16
|
+
|
|
17
|
+
class OverallStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
18
|
+
__slots__ = []
|
|
19
|
+
UNSPECIFIED: _ClassVar[OverallStatus]
|
|
20
|
+
PARTIALLY_PRESENT: _ClassVar[OverallStatus]
|
|
21
|
+
FULLY_PRESENT: _ClassVar[OverallStatus]
|
|
22
|
+
UNKNOWN_STATUS: _ClassVar[OverallStatus]
|
|
23
|
+
|
|
24
|
+
class SecretPresenceStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
25
|
+
__slots__ = []
|
|
26
|
+
UNKNOWN: _ClassVar[SecretPresenceStatus]
|
|
27
|
+
MISSING: _ClassVar[SecretPresenceStatus]
|
|
28
|
+
PRESENT: _ClassVar[SecretPresenceStatus]
|
|
29
|
+
SECRET_TYPE_GENERIC: SecretType
|
|
30
|
+
SECRET_TYPE_IMAGE_PULL_SECRET: SecretType
|
|
31
|
+
UNSPECIFIED: OverallStatus
|
|
32
|
+
PARTIALLY_PRESENT: OverallStatus
|
|
33
|
+
FULLY_PRESENT: OverallStatus
|
|
34
|
+
UNKNOWN_STATUS: OverallStatus
|
|
35
|
+
UNKNOWN: SecretPresenceStatus
|
|
36
|
+
MISSING: SecretPresenceStatus
|
|
37
|
+
PRESENT: SecretPresenceStatus
|
|
38
|
+
|
|
39
|
+
class SecretSpec(_message.Message):
|
|
40
|
+
__slots__ = ["string_value", "binary_value", "type"]
|
|
41
|
+
STRING_VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
+
BINARY_VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
string_value: str
|
|
45
|
+
binary_value: bytes
|
|
46
|
+
type: SecretType
|
|
47
|
+
def __init__(self, string_value: _Optional[str] = ..., binary_value: _Optional[bytes] = ..., type: _Optional[_Union[SecretType, str]] = ...) -> None: ...
|
|
48
|
+
|
|
49
|
+
class SecretIdentifier(_message.Message):
|
|
50
|
+
__slots__ = ["name", "organization", "domain", "project"]
|
|
51
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
ORGANIZATION_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
DOMAIN_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
PROJECT_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
name: str
|
|
56
|
+
organization: str
|
|
57
|
+
domain: str
|
|
58
|
+
project: str
|
|
59
|
+
def __init__(self, name: _Optional[str] = ..., organization: _Optional[str] = ..., domain: _Optional[str] = ..., project: _Optional[str] = ...) -> None: ...
|
|
60
|
+
|
|
61
|
+
class SecretMetadata(_message.Message):
|
|
62
|
+
__slots__ = ["created_time", "secret_status", "type"]
|
|
63
|
+
CREATED_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
64
|
+
SECRET_STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
created_time: _timestamp_pb2.Timestamp
|
|
67
|
+
secret_status: SecretStatus
|
|
68
|
+
type: SecretType
|
|
69
|
+
def __init__(self, created_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., secret_status: _Optional[_Union[SecretStatus, _Mapping]] = ..., type: _Optional[_Union[SecretType, str]] = ...) -> None: ...
|
|
70
|
+
|
|
71
|
+
class SecretStatus(_message.Message):
|
|
72
|
+
__slots__ = ["overall_status", "cluster_status"]
|
|
73
|
+
OVERALL_STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
74
|
+
CLUSTER_STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
75
|
+
overall_status: OverallStatus
|
|
76
|
+
cluster_status: _containers.RepeatedCompositeFieldContainer[ClusterSecretStatus]
|
|
77
|
+
def __init__(self, overall_status: _Optional[_Union[OverallStatus, str]] = ..., cluster_status: _Optional[_Iterable[_Union[ClusterSecretStatus, _Mapping]]] = ...) -> None: ...
|
|
78
|
+
|
|
79
|
+
class ClusterSecretStatus(_message.Message):
|
|
80
|
+
__slots__ = ["cluster", "presence_status"]
|
|
81
|
+
CLUSTER_FIELD_NUMBER: _ClassVar[int]
|
|
82
|
+
PRESENCE_STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
83
|
+
cluster: _identifier_pb2.ClusterIdentifier
|
|
84
|
+
presence_status: SecretPresenceStatus
|
|
85
|
+
def __init__(self, cluster: _Optional[_Union[_identifier_pb2.ClusterIdentifier, _Mapping]] = ..., presence_status: _Optional[_Union[SecretPresenceStatus, str]] = ...) -> None: ...
|
|
86
|
+
|
|
87
|
+
class Secret(_message.Message):
|
|
88
|
+
__slots__ = ["id", "secret_metadata"]
|
|
89
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
90
|
+
SECRET_METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
91
|
+
id: SecretIdentifier
|
|
92
|
+
secret_metadata: SecretMetadata
|
|
93
|
+
def __init__(self, id: _Optional[_Union[SecretIdentifier, _Mapping]] = ..., secret_metadata: _Optional[_Union[SecretMetadata, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: secret/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.secret import definition_pb2 as secret_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\x14secret/payload.proto\x12\x0f\x63loudidl.secret\x1a\x17secret/definition.proto\x1a\x17validate/validate.proto\"\x90\x01\n\x13\x43reateSecretRequest\x12;\n\x02id\x18\x01 \x01(\x0b\x32!.cloudidl.secret.SecretIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x02id\x12<\n\x0bsecret_spec\x18\x02 \x01(\x0b\x32\x1b.cloudidl.secret.SecretSpecR\nsecretSpec\"\x16\n\x14\x43reateSecretResponse\"\x90\x01\n\x13UpdateSecretRequest\x12;\n\x02id\x18\x01 \x01(\x0b\x32!.cloudidl.secret.SecretIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x02id\x12<\n\x0bsecret_spec\x18\x02 \x01(\x0b\x32\x1b.cloudidl.secret.SecretSpecR\nsecretSpec\"\x16\n\x14UpdateSecretResponse\"O\n\x10GetSecretRequest\x12;\n\x02id\x18\x01 \x01(\x0b\x32!.cloudidl.secret.SecretIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x02id\"D\n\x11GetSecretResponse\x12/\n\x06secret\x18\x01 \x01(\x0b\x32\x17.cloudidl.secret.SecretR\x06secret\"R\n\x13\x44\x65leteSecretRequest\x12;\n\x02id\x18\x01 \x01(\x0b\x32!.cloudidl.secret.SecretIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x02id\"\x16\n\x14\x44\x65leteSecretResponse\"\xc4\x02\n\x12ListSecretsRequest\x12\"\n\x0corganization\x18\x01 \x01(\tR\x0corganization\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x18\n\x07project\x18\x03 \x01(\tR\x07project\x12\x14\n\x05limit\x18\x04 \x01(\x05R\x05limit\x12\x14\n\x05token\x18\x05 \x01(\tR\x05token\x12g\n\x12per_cluster_tokens\x18\x06 \x03(\x0b\x32\x39.cloudidl.secret.ListSecretsRequest.PerClusterTokensEntryR\x10perClusterTokens\x1a\x43\n\x15PerClusterTokensEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x8d\x02\n\x13ListSecretsResponse\x12\x31\n\x07secrets\x18\x01 \x03(\x0b\x32\x17.cloudidl.secret.SecretR\x07secrets\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12h\n\x12per_cluster_tokens\x18\x03 \x03(\x0b\x32:.cloudidl.secret.ListSecretsResponse.PerClusterTokensEntryR\x10perClusterTokens\x1a\x43\n\x15PerClusterTokensEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\xad\x01\n\x13\x63om.cloudidl.secretB\x0cPayloadProtoH\x02P\x01Z)github.com/unionai/cloud/gen/pb-go/secret\xa2\x02\x03\x43SX\xaa\x02\x0f\x43loudidl.Secret\xca\x02\x0f\x43loudidl\\Secret\xe2\x02\x1b\x43loudidl\\Secret\\GPBMetadata\xea\x02\x10\x43loudidl::Secretb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_globals = globals()
|
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'secret.payload_pb2', _globals)
|
|
23
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
+
DESCRIPTOR._options = None
|
|
25
|
+
DESCRIPTOR._serialized_options = b'\n\023com.cloudidl.secretB\014PayloadProtoH\002P\001Z)github.com/unionai/cloud/gen/pb-go/secret\242\002\003CSX\252\002\017Cloudidl.Secret\312\002\017Cloudidl\\Secret\342\002\033Cloudidl\\Secret\\GPBMetadata\352\002\020Cloudidl::Secret'
|
|
26
|
+
_CREATESECRETREQUEST.fields_by_name['id']._options = None
|
|
27
|
+
_CREATESECRETREQUEST.fields_by_name['id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
28
|
+
_UPDATESECRETREQUEST.fields_by_name['id']._options = None
|
|
29
|
+
_UPDATESECRETREQUEST.fields_by_name['id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
30
|
+
_GETSECRETREQUEST.fields_by_name['id']._options = None
|
|
31
|
+
_GETSECRETREQUEST.fields_by_name['id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
32
|
+
_DELETESECRETREQUEST.fields_by_name['id']._options = None
|
|
33
|
+
_DELETESECRETREQUEST.fields_by_name['id']._serialized_options = b'\372B\005\212\001\002\020\001'
|
|
34
|
+
_LISTSECRETSREQUEST_PERCLUSTERTOKENSENTRY._options = None
|
|
35
|
+
_LISTSECRETSREQUEST_PERCLUSTERTOKENSENTRY._serialized_options = b'8\001'
|
|
36
|
+
_LISTSECRETSRESPONSE_PERCLUSTERTOKENSENTRY._options = None
|
|
37
|
+
_LISTSECRETSRESPONSE_PERCLUSTERTOKENSENTRY._serialized_options = b'8\001'
|
|
38
|
+
_globals['_CREATESECRETREQUEST']._serialized_start=92
|
|
39
|
+
_globals['_CREATESECRETREQUEST']._serialized_end=236
|
|
40
|
+
_globals['_CREATESECRETRESPONSE']._serialized_start=238
|
|
41
|
+
_globals['_CREATESECRETRESPONSE']._serialized_end=260
|
|
42
|
+
_globals['_UPDATESECRETREQUEST']._serialized_start=263
|
|
43
|
+
_globals['_UPDATESECRETREQUEST']._serialized_end=407
|
|
44
|
+
_globals['_UPDATESECRETRESPONSE']._serialized_start=409
|
|
45
|
+
_globals['_UPDATESECRETRESPONSE']._serialized_end=431
|
|
46
|
+
_globals['_GETSECRETREQUEST']._serialized_start=433
|
|
47
|
+
_globals['_GETSECRETREQUEST']._serialized_end=512
|
|
48
|
+
_globals['_GETSECRETRESPONSE']._serialized_start=514
|
|
49
|
+
_globals['_GETSECRETRESPONSE']._serialized_end=582
|
|
50
|
+
_globals['_DELETESECRETREQUEST']._serialized_start=584
|
|
51
|
+
_globals['_DELETESECRETREQUEST']._serialized_end=666
|
|
52
|
+
_globals['_DELETESECRETRESPONSE']._serialized_start=668
|
|
53
|
+
_globals['_DELETESECRETRESPONSE']._serialized_end=690
|
|
54
|
+
_globals['_LISTSECRETSREQUEST']._serialized_start=693
|
|
55
|
+
_globals['_LISTSECRETSREQUEST']._serialized_end=1017
|
|
56
|
+
_globals['_LISTSECRETSREQUEST_PERCLUSTERTOKENSENTRY']._serialized_start=950
|
|
57
|
+
_globals['_LISTSECRETSREQUEST_PERCLUSTERTOKENSENTRY']._serialized_end=1017
|
|
58
|
+
_globals['_LISTSECRETSRESPONSE']._serialized_start=1020
|
|
59
|
+
_globals['_LISTSECRETSRESPONSE']._serialized_end=1289
|
|
60
|
+
_globals['_LISTSECRETSRESPONSE_PERCLUSTERTOKENSENTRY']._serialized_start=950
|
|
61
|
+
_globals['_LISTSECRETSRESPONSE_PERCLUSTERTOKENSENTRY']._serialized_end=1017
|
|
62
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
from flyte._protos.secret import definition_pb2 as _definition_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 import descriptor as _descriptor
|
|
5
|
+
from google.protobuf import message as _message
|
|
6
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
7
|
+
|
|
8
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
9
|
+
|
|
10
|
+
class CreateSecretRequest(_message.Message):
|
|
11
|
+
__slots__ = ["id", "secret_spec"]
|
|
12
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
13
|
+
SECRET_SPEC_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
id: _definition_pb2.SecretIdentifier
|
|
15
|
+
secret_spec: _definition_pb2.SecretSpec
|
|
16
|
+
def __init__(self, id: _Optional[_Union[_definition_pb2.SecretIdentifier, _Mapping]] = ..., secret_spec: _Optional[_Union[_definition_pb2.SecretSpec, _Mapping]] = ...) -> None: ...
|
|
17
|
+
|
|
18
|
+
class CreateSecretResponse(_message.Message):
|
|
19
|
+
__slots__ = []
|
|
20
|
+
def __init__(self) -> None: ...
|
|
21
|
+
|
|
22
|
+
class UpdateSecretRequest(_message.Message):
|
|
23
|
+
__slots__ = ["id", "secret_spec"]
|
|
24
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
+
SECRET_SPEC_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
+
id: _definition_pb2.SecretIdentifier
|
|
27
|
+
secret_spec: _definition_pb2.SecretSpec
|
|
28
|
+
def __init__(self, id: _Optional[_Union[_definition_pb2.SecretIdentifier, _Mapping]] = ..., secret_spec: _Optional[_Union[_definition_pb2.SecretSpec, _Mapping]] = ...) -> None: ...
|
|
29
|
+
|
|
30
|
+
class UpdateSecretResponse(_message.Message):
|
|
31
|
+
__slots__ = []
|
|
32
|
+
def __init__(self) -> None: ...
|
|
33
|
+
|
|
34
|
+
class GetSecretRequest(_message.Message):
|
|
35
|
+
__slots__ = ["id"]
|
|
36
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
id: _definition_pb2.SecretIdentifier
|
|
38
|
+
def __init__(self, id: _Optional[_Union[_definition_pb2.SecretIdentifier, _Mapping]] = ...) -> None: ...
|
|
39
|
+
|
|
40
|
+
class GetSecretResponse(_message.Message):
|
|
41
|
+
__slots__ = ["secret"]
|
|
42
|
+
SECRET_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
secret: _definition_pb2.Secret
|
|
44
|
+
def __init__(self, secret: _Optional[_Union[_definition_pb2.Secret, _Mapping]] = ...) -> None: ...
|
|
45
|
+
|
|
46
|
+
class DeleteSecretRequest(_message.Message):
|
|
47
|
+
__slots__ = ["id"]
|
|
48
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
id: _definition_pb2.SecretIdentifier
|
|
50
|
+
def __init__(self, id: _Optional[_Union[_definition_pb2.SecretIdentifier, _Mapping]] = ...) -> None: ...
|
|
51
|
+
|
|
52
|
+
class DeleteSecretResponse(_message.Message):
|
|
53
|
+
__slots__ = []
|
|
54
|
+
def __init__(self) -> None: ...
|
|
55
|
+
|
|
56
|
+
class ListSecretsRequest(_message.Message):
|
|
57
|
+
__slots__ = ["organization", "domain", "project", "limit", "token", "per_cluster_tokens"]
|
|
58
|
+
class PerClusterTokensEntry(_message.Message):
|
|
59
|
+
__slots__ = ["key", "value"]
|
|
60
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
61
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
62
|
+
key: str
|
|
63
|
+
value: str
|
|
64
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
65
|
+
ORGANIZATION_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
DOMAIN_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
+
PROJECT_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
+
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
|
69
|
+
TOKEN_FIELD_NUMBER: _ClassVar[int]
|
|
70
|
+
PER_CLUSTER_TOKENS_FIELD_NUMBER: _ClassVar[int]
|
|
71
|
+
organization: str
|
|
72
|
+
domain: str
|
|
73
|
+
project: str
|
|
74
|
+
limit: int
|
|
75
|
+
token: str
|
|
76
|
+
per_cluster_tokens: _containers.ScalarMap[str, str]
|
|
77
|
+
def __init__(self, organization: _Optional[str] = ..., domain: _Optional[str] = ..., project: _Optional[str] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., per_cluster_tokens: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
|
78
|
+
|
|
79
|
+
class ListSecretsResponse(_message.Message):
|
|
80
|
+
__slots__ = ["secrets", "token", "per_cluster_tokens"]
|
|
81
|
+
class PerClusterTokensEntry(_message.Message):
|
|
82
|
+
__slots__ = ["key", "value"]
|
|
83
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
84
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
85
|
+
key: str
|
|
86
|
+
value: str
|
|
87
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
88
|
+
SECRETS_FIELD_NUMBER: _ClassVar[int]
|
|
89
|
+
TOKEN_FIELD_NUMBER: _ClassVar[int]
|
|
90
|
+
PER_CLUSTER_TOKENS_FIELD_NUMBER: _ClassVar[int]
|
|
91
|
+
secrets: _containers.RepeatedCompositeFieldContainer[_definition_pb2.Secret]
|
|
92
|
+
token: str
|
|
93
|
+
per_cluster_tokens: _containers.ScalarMap[str, str]
|
|
94
|
+
def __init__(self, secrets: _Optional[_Iterable[_Union[_definition_pb2.Secret, _Mapping]]] = ..., token: _Optional[str] = ..., per_cluster_tokens: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: secret/secret.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.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
15
|
+
from flyte._protos.secret import payload_pb2 as secret_dot_payload__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13secret/secret.proto\x12\x0f\x63loudidl.secret\x1a\x1cgoogle/api/annotations.proto\x1a\x14secret/payload.proto2\x86\x05\n\rSecretService\x12w\n\x0c\x43reateSecret\x12$.cloudidl.secret.CreateSecretRequest\x1a%.cloudidl.secret.CreateSecretResponse\"\x1a\x82\xd3\xe4\x93\x02\x14\"\x0f/secrets/api/v1:\x01*\x12\x86\x01\n\x0cUpdateSecret\x12$.cloudidl.secret.UpdateSecretRequest\x1a%.cloudidl.secret.UpdateSecretResponse\")\x82\xd3\xe4\x93\x02#\x1a\x1e/secrets/api/v1/name/{id.name}:\x01*\x12z\n\tGetSecret\x12!.cloudidl.secret.GetSecretRequest\x1a\".cloudidl.secret.GetSecretResponse\"&\x82\xd3\xe4\x93\x02 \x12\x1e/secrets/api/v1/name/{id.name}\x12\x83\x01\n\x0c\x44\x65leteSecret\x12$.cloudidl.secret.DeleteSecretRequest\x1a%.cloudidl.secret.DeleteSecretResponse\"&\x82\xd3\xe4\x93\x02 *\x1e/secrets/api/v1/name/{id.name}\x12q\n\x0bListSecrets\x12#.cloudidl.secret.ListSecretsRequest\x1a$.cloudidl.secret.ListSecretsResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/secrets/api/v1B\xac\x01\n\x13\x63om.cloudidl.secretB\x0bSecretProtoH\x02P\x01Z)github.com/unionai/cloud/gen/pb-go/secret\xa2\x02\x03\x43SX\xaa\x02\x0f\x43loudidl.Secret\xca\x02\x0f\x43loudidl\\Secret\xe2\x02\x1b\x43loudidl\\Secret\\GPBMetadata\xea\x02\x10\x43loudidl::Secretb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_globals = globals()
|
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'secret.secret_pb2', _globals)
|
|
23
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
+
DESCRIPTOR._options = None
|
|
25
|
+
DESCRIPTOR._serialized_options = b'\n\023com.cloudidl.secretB\013SecretProtoH\002P\001Z)github.com/unionai/cloud/gen/pb-go/secret\242\002\003CSX\252\002\017Cloudidl.Secret\312\002\017Cloudidl\\Secret\342\002\033Cloudidl\\Secret\\GPBMetadata\352\002\020Cloudidl::Secret'
|
|
26
|
+
_SECRETSERVICE.methods_by_name['CreateSecret']._options = None
|
|
27
|
+
_SECRETSERVICE.methods_by_name['CreateSecret']._serialized_options = b'\202\323\344\223\002\024\"\017/secrets/api/v1:\001*'
|
|
28
|
+
_SECRETSERVICE.methods_by_name['UpdateSecret']._options = None
|
|
29
|
+
_SECRETSERVICE.methods_by_name['UpdateSecret']._serialized_options = b'\202\323\344\223\002#\032\036/secrets/api/v1/name/{id.name}:\001*'
|
|
30
|
+
_SECRETSERVICE.methods_by_name['GetSecret']._options = None
|
|
31
|
+
_SECRETSERVICE.methods_by_name['GetSecret']._serialized_options = b'\202\323\344\223\002 \022\036/secrets/api/v1/name/{id.name}'
|
|
32
|
+
_SECRETSERVICE.methods_by_name['DeleteSecret']._options = None
|
|
33
|
+
_SECRETSERVICE.methods_by_name['DeleteSecret']._serialized_options = b'\202\323\344\223\002 *\036/secrets/api/v1/name/{id.name}'
|
|
34
|
+
_SECRETSERVICE.methods_by_name['ListSecrets']._options = None
|
|
35
|
+
_SECRETSERVICE.methods_by_name['ListSecrets']._serialized_options = b'\202\323\344\223\002\021\022\017/secrets/api/v1'
|
|
36
|
+
_globals['_SECRETSERVICE']._serialized_start=93
|
|
37
|
+
_globals['_SECRETSERVICE']._serialized_end=739
|
|
38
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,198 @@
|
|
|
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.secret import payload_pb2 as secret_dot_payload__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SecretServiceStub(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.CreateSecret = channel.unary_unary(
|
|
18
|
+
'/cloudidl.secret.SecretService/CreateSecret',
|
|
19
|
+
request_serializer=secret_dot_payload__pb2.CreateSecretRequest.SerializeToString,
|
|
20
|
+
response_deserializer=secret_dot_payload__pb2.CreateSecretResponse.FromString,
|
|
21
|
+
)
|
|
22
|
+
self.UpdateSecret = channel.unary_unary(
|
|
23
|
+
'/cloudidl.secret.SecretService/UpdateSecret',
|
|
24
|
+
request_serializer=secret_dot_payload__pb2.UpdateSecretRequest.SerializeToString,
|
|
25
|
+
response_deserializer=secret_dot_payload__pb2.UpdateSecretResponse.FromString,
|
|
26
|
+
)
|
|
27
|
+
self.GetSecret = channel.unary_unary(
|
|
28
|
+
'/cloudidl.secret.SecretService/GetSecret',
|
|
29
|
+
request_serializer=secret_dot_payload__pb2.GetSecretRequest.SerializeToString,
|
|
30
|
+
response_deserializer=secret_dot_payload__pb2.GetSecretResponse.FromString,
|
|
31
|
+
)
|
|
32
|
+
self.DeleteSecret = channel.unary_unary(
|
|
33
|
+
'/cloudidl.secret.SecretService/DeleteSecret',
|
|
34
|
+
request_serializer=secret_dot_payload__pb2.DeleteSecretRequest.SerializeToString,
|
|
35
|
+
response_deserializer=secret_dot_payload__pb2.DeleteSecretResponse.FromString,
|
|
36
|
+
)
|
|
37
|
+
self.ListSecrets = channel.unary_unary(
|
|
38
|
+
'/cloudidl.secret.SecretService/ListSecrets',
|
|
39
|
+
request_serializer=secret_dot_payload__pb2.ListSecretsRequest.SerializeToString,
|
|
40
|
+
response_deserializer=secret_dot_payload__pb2.ListSecretsResponse.FromString,
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class SecretServiceServicer(object):
|
|
45
|
+
"""Missing associated documentation comment in .proto file."""
|
|
46
|
+
|
|
47
|
+
def CreateSecret(self, request, context):
|
|
48
|
+
"""Missing associated documentation comment in .proto file."""
|
|
49
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
50
|
+
context.set_details('Method not implemented!')
|
|
51
|
+
raise NotImplementedError('Method not implemented!')
|
|
52
|
+
|
|
53
|
+
def UpdateSecret(self, request, context):
|
|
54
|
+
"""Missing associated documentation comment in .proto file."""
|
|
55
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
56
|
+
context.set_details('Method not implemented!')
|
|
57
|
+
raise NotImplementedError('Method not implemented!')
|
|
58
|
+
|
|
59
|
+
def GetSecret(self, request, context):
|
|
60
|
+
"""Missing associated documentation comment in .proto file."""
|
|
61
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
62
|
+
context.set_details('Method not implemented!')
|
|
63
|
+
raise NotImplementedError('Method not implemented!')
|
|
64
|
+
|
|
65
|
+
def DeleteSecret(self, request, context):
|
|
66
|
+
"""Missing associated documentation comment in .proto file."""
|
|
67
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
68
|
+
context.set_details('Method not implemented!')
|
|
69
|
+
raise NotImplementedError('Method not implemented!')
|
|
70
|
+
|
|
71
|
+
def ListSecrets(self, request, context):
|
|
72
|
+
"""Missing associated documentation comment in .proto file."""
|
|
73
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
74
|
+
context.set_details('Method not implemented!')
|
|
75
|
+
raise NotImplementedError('Method not implemented!')
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def add_SecretServiceServicer_to_server(servicer, server):
|
|
79
|
+
rpc_method_handlers = {
|
|
80
|
+
'CreateSecret': grpc.unary_unary_rpc_method_handler(
|
|
81
|
+
servicer.CreateSecret,
|
|
82
|
+
request_deserializer=secret_dot_payload__pb2.CreateSecretRequest.FromString,
|
|
83
|
+
response_serializer=secret_dot_payload__pb2.CreateSecretResponse.SerializeToString,
|
|
84
|
+
),
|
|
85
|
+
'UpdateSecret': grpc.unary_unary_rpc_method_handler(
|
|
86
|
+
servicer.UpdateSecret,
|
|
87
|
+
request_deserializer=secret_dot_payload__pb2.UpdateSecretRequest.FromString,
|
|
88
|
+
response_serializer=secret_dot_payload__pb2.UpdateSecretResponse.SerializeToString,
|
|
89
|
+
),
|
|
90
|
+
'GetSecret': grpc.unary_unary_rpc_method_handler(
|
|
91
|
+
servicer.GetSecret,
|
|
92
|
+
request_deserializer=secret_dot_payload__pb2.GetSecretRequest.FromString,
|
|
93
|
+
response_serializer=secret_dot_payload__pb2.GetSecretResponse.SerializeToString,
|
|
94
|
+
),
|
|
95
|
+
'DeleteSecret': grpc.unary_unary_rpc_method_handler(
|
|
96
|
+
servicer.DeleteSecret,
|
|
97
|
+
request_deserializer=secret_dot_payload__pb2.DeleteSecretRequest.FromString,
|
|
98
|
+
response_serializer=secret_dot_payload__pb2.DeleteSecretResponse.SerializeToString,
|
|
99
|
+
),
|
|
100
|
+
'ListSecrets': grpc.unary_unary_rpc_method_handler(
|
|
101
|
+
servicer.ListSecrets,
|
|
102
|
+
request_deserializer=secret_dot_payload__pb2.ListSecretsRequest.FromString,
|
|
103
|
+
response_serializer=secret_dot_payload__pb2.ListSecretsResponse.SerializeToString,
|
|
104
|
+
),
|
|
105
|
+
}
|
|
106
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
107
|
+
'cloudidl.secret.SecretService', rpc_method_handlers)
|
|
108
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
# This class is part of an EXPERIMENTAL API.
|
|
112
|
+
class SecretService(object):
|
|
113
|
+
"""Missing associated documentation comment in .proto file."""
|
|
114
|
+
|
|
115
|
+
@staticmethod
|
|
116
|
+
def CreateSecret(request,
|
|
117
|
+
target,
|
|
118
|
+
options=(),
|
|
119
|
+
channel_credentials=None,
|
|
120
|
+
call_credentials=None,
|
|
121
|
+
insecure=False,
|
|
122
|
+
compression=None,
|
|
123
|
+
wait_for_ready=None,
|
|
124
|
+
timeout=None,
|
|
125
|
+
metadata=None):
|
|
126
|
+
return grpc.experimental.unary_unary(request, target, '/cloudidl.secret.SecretService/CreateSecret',
|
|
127
|
+
secret_dot_payload__pb2.CreateSecretRequest.SerializeToString,
|
|
128
|
+
secret_dot_payload__pb2.CreateSecretResponse.FromString,
|
|
129
|
+
options, channel_credentials,
|
|
130
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
131
|
+
|
|
132
|
+
@staticmethod
|
|
133
|
+
def UpdateSecret(request,
|
|
134
|
+
target,
|
|
135
|
+
options=(),
|
|
136
|
+
channel_credentials=None,
|
|
137
|
+
call_credentials=None,
|
|
138
|
+
insecure=False,
|
|
139
|
+
compression=None,
|
|
140
|
+
wait_for_ready=None,
|
|
141
|
+
timeout=None,
|
|
142
|
+
metadata=None):
|
|
143
|
+
return grpc.experimental.unary_unary(request, target, '/cloudidl.secret.SecretService/UpdateSecret',
|
|
144
|
+
secret_dot_payload__pb2.UpdateSecretRequest.SerializeToString,
|
|
145
|
+
secret_dot_payload__pb2.UpdateSecretResponse.FromString,
|
|
146
|
+
options, channel_credentials,
|
|
147
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
148
|
+
|
|
149
|
+
@staticmethod
|
|
150
|
+
def GetSecret(request,
|
|
151
|
+
target,
|
|
152
|
+
options=(),
|
|
153
|
+
channel_credentials=None,
|
|
154
|
+
call_credentials=None,
|
|
155
|
+
insecure=False,
|
|
156
|
+
compression=None,
|
|
157
|
+
wait_for_ready=None,
|
|
158
|
+
timeout=None,
|
|
159
|
+
metadata=None):
|
|
160
|
+
return grpc.experimental.unary_unary(request, target, '/cloudidl.secret.SecretService/GetSecret',
|
|
161
|
+
secret_dot_payload__pb2.GetSecretRequest.SerializeToString,
|
|
162
|
+
secret_dot_payload__pb2.GetSecretResponse.FromString,
|
|
163
|
+
options, channel_credentials,
|
|
164
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
165
|
+
|
|
166
|
+
@staticmethod
|
|
167
|
+
def DeleteSecret(request,
|
|
168
|
+
target,
|
|
169
|
+
options=(),
|
|
170
|
+
channel_credentials=None,
|
|
171
|
+
call_credentials=None,
|
|
172
|
+
insecure=False,
|
|
173
|
+
compression=None,
|
|
174
|
+
wait_for_ready=None,
|
|
175
|
+
timeout=None,
|
|
176
|
+
metadata=None):
|
|
177
|
+
return grpc.experimental.unary_unary(request, target, '/cloudidl.secret.SecretService/DeleteSecret',
|
|
178
|
+
secret_dot_payload__pb2.DeleteSecretRequest.SerializeToString,
|
|
179
|
+
secret_dot_payload__pb2.DeleteSecretResponse.FromString,
|
|
180
|
+
options, channel_credentials,
|
|
181
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
182
|
+
|
|
183
|
+
@staticmethod
|
|
184
|
+
def ListSecrets(request,
|
|
185
|
+
target,
|
|
186
|
+
options=(),
|
|
187
|
+
channel_credentials=None,
|
|
188
|
+
call_credentials=None,
|
|
189
|
+
insecure=False,
|
|
190
|
+
compression=None,
|
|
191
|
+
wait_for_ready=None,
|
|
192
|
+
timeout=None,
|
|
193
|
+
metadata=None):
|
|
194
|
+
return grpc.experimental.unary_unary(request, target, '/cloudidl.secret.SecretService/ListSecrets',
|
|
195
|
+
secret_dot_payload__pb2.ListSecretsRequest.SerializeToString,
|
|
196
|
+
secret_dot_payload__pb2.ListSecretsResponse.FromString,
|
|
197
|
+
options, channel_credentials,
|
|
198
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|