xcl-lang 0.5.3__py3-none-win_amd64.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.
- xcl/__init__.py +122 -0
- xcl/_bin/xcl-core.exe +0 -0
- xcl/_client.py +114 -0
- xcl/_core/__init__.py +7 -0
- xcl/_core/core_pb2.py +125 -0
- xcl/_core/core_pb2.pyi +375 -0
- xcl/_core/transport_pb2.py +39 -0
- xcl/_core/transport_pb2.pyi +27 -0
- xcl/_entity.py +181 -0
- xcl/_errors.py +440 -0
- xcl/_functions.py +41 -0
- xcl/_poll.py +210 -0
- xcl/_schema.py +506 -0
- xcl/_transport/__init__.py +33 -0
- xcl/_transport/inprocess.py +263 -0
- xcl/_transport/select.py +68 -0
- xcl/_transport/subprocess.py +534 -0
- xcl/_types.py +135 -0
- xcl/_version.py +8 -0
- xcl/aio.py +312 -0
- xcl/config.py +235 -0
- xcl/diff.py +122 -0
- xcl/events.py +77 -0
- xcl/mask.py +60 -0
- xcl/registry.py +152 -0
- xcl_lang-0.5.3.dist-info/METADATA +313 -0
- xcl_lang-0.5.3.dist-info/RECORD +29 -0
- xcl_lang-0.5.3.dist-info/WHEEL +4 -0
- xcl_lang-0.5.3.dist-info/licenses/LICENSE +202 -0
xcl/__init__.py
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"""XCL, the declarative configuration language, for Python.
|
|
2
|
+
|
|
3
|
+
The package, published as ``xcl-lang`` and imported as ``xcl``, drives the xcl
|
|
4
|
+
engine, a small program bundled in the wheel and run as a subprocess, the same
|
|
5
|
+
way on every platform, so a Python program validates, diffs, applies, loads and
|
|
6
|
+
destroys configuration exactly as a Go program does, uses the same Go plugins,
|
|
7
|
+
and adds its own Python functions to configuration. ``import xcl`` starts
|
|
8
|
+
nothing: the engine starts the first time a configuration is created, is
|
|
9
|
+
shared by every configuration, and stops when the last one is closed.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from xcl._errors import (
|
|
13
|
+
CancelledError,
|
|
14
|
+
ConfigError,
|
|
15
|
+
EmptyConfigurationError,
|
|
16
|
+
EngineExitedError,
|
|
17
|
+
EngineNotFoundError,
|
|
18
|
+
EngineVersionError,
|
|
19
|
+
Error,
|
|
20
|
+
ForkedProcessError,
|
|
21
|
+
FunctionNameClashError,
|
|
22
|
+
InternalBindingError,
|
|
23
|
+
InternalError,
|
|
24
|
+
InvalidArgumentError,
|
|
25
|
+
InvalidFunctionError,
|
|
26
|
+
InvalidSavedDataError,
|
|
27
|
+
InvalidTypeError,
|
|
28
|
+
MaskNotReversibleError,
|
|
29
|
+
NotAnEntityError,
|
|
30
|
+
NotEncodableError,
|
|
31
|
+
NotFoundError,
|
|
32
|
+
NotRegisteredError,
|
|
33
|
+
NotTypeableError,
|
|
34
|
+
NotUniqueError,
|
|
35
|
+
OperationInProgressError,
|
|
36
|
+
PluginLoadError,
|
|
37
|
+
PluginNotFoundError,
|
|
38
|
+
PluginVerificationError,
|
|
39
|
+
Problem,
|
|
40
|
+
ProviderError,
|
|
41
|
+
TypeFormError,
|
|
42
|
+
TypeMismatchError,
|
|
43
|
+
TypeNameClashError,
|
|
44
|
+
UnknownTypeError,
|
|
45
|
+
UnrecoverableError,
|
|
46
|
+
UnregisteredTypeError,
|
|
47
|
+
)
|
|
48
|
+
from xcl._entity import Entity, Meta, Resource, entity
|
|
49
|
+
from xcl._schema import SchemaError
|
|
50
|
+
from xcl._types import UNKNOWN, Computed, Sensitive, field
|
|
51
|
+
from xcl._poll import StateStore
|
|
52
|
+
from xcl._version import __version__
|
|
53
|
+
from xcl import mask
|
|
54
|
+
from xcl.config import Config
|
|
55
|
+
from xcl.diff import Change, Diff, ResourceDiff, Summary
|
|
56
|
+
from xcl.events import Event
|
|
57
|
+
from xcl.registry import GitHubRegistry, LocalRegistry
|
|
58
|
+
|
|
59
|
+
__all__ = [
|
|
60
|
+
"__version__",
|
|
61
|
+
"Config",
|
|
62
|
+
"LocalRegistry",
|
|
63
|
+
"GitHubRegistry",
|
|
64
|
+
"StateStore",
|
|
65
|
+
"Event",
|
|
66
|
+
"Diff",
|
|
67
|
+
"ResourceDiff",
|
|
68
|
+
"Change",
|
|
69
|
+
"Summary",
|
|
70
|
+
"mask",
|
|
71
|
+
"entity",
|
|
72
|
+
"Resource",
|
|
73
|
+
"Entity",
|
|
74
|
+
"Meta",
|
|
75
|
+
"Sensitive",
|
|
76
|
+
"Computed",
|
|
77
|
+
"field",
|
|
78
|
+
"UNKNOWN",
|
|
79
|
+
"SchemaError",
|
|
80
|
+
"Error",
|
|
81
|
+
"Problem",
|
|
82
|
+
"NotFoundError",
|
|
83
|
+
"NotUniqueError",
|
|
84
|
+
"UnknownTypeError",
|
|
85
|
+
"NotTypeableError",
|
|
86
|
+
"NotRegisteredError",
|
|
87
|
+
"TypeMismatchError",
|
|
88
|
+
"NotAnEntityError",
|
|
89
|
+
"TypeNameClashError",
|
|
90
|
+
"TypeFormError",
|
|
91
|
+
"InvalidTypeError",
|
|
92
|
+
"FunctionNameClashError",
|
|
93
|
+
"InvalidFunctionError",
|
|
94
|
+
"PluginLoadError",
|
|
95
|
+
"PluginNotFoundError",
|
|
96
|
+
"PluginVerificationError",
|
|
97
|
+
"EmptyConfigurationError",
|
|
98
|
+
"UnregisteredTypeError",
|
|
99
|
+
"InvalidSavedDataError",
|
|
100
|
+
"NotEncodableError",
|
|
101
|
+
"UnrecoverableError",
|
|
102
|
+
"MaskNotReversibleError",
|
|
103
|
+
"ConfigError",
|
|
104
|
+
"ProviderError",
|
|
105
|
+
"CancelledError",
|
|
106
|
+
"OperationInProgressError",
|
|
107
|
+
"InvalidArgumentError",
|
|
108
|
+
"InternalError",
|
|
109
|
+
"ForkedProcessError",
|
|
110
|
+
"EngineVersionError",
|
|
111
|
+
"EngineNotFoundError",
|
|
112
|
+
"EngineExitedError",
|
|
113
|
+
"InternalBindingError",
|
|
114
|
+
"engine_version",
|
|
115
|
+
]
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
def engine_version() -> str:
|
|
119
|
+
"""The version the bundled engine reports, loading it if it is not loaded yet."""
|
|
120
|
+
from xcl._client import default_client
|
|
121
|
+
|
|
122
|
+
return default_client().engine_version()
|
xcl/_bin/xcl-core.exe
ADDED
|
Binary file
|
xcl/_client.py
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"""The typed client: CoreService messages in, messages out.
|
|
2
|
+
|
|
3
|
+
The client is built from the generated descriptor at run time, so nothing
|
|
4
|
+
beyond the message classes is generated. ``call`` serialises a request,
|
|
5
|
+
passes it to the transport, and decodes the response into the method's
|
|
6
|
+
output class, or raises the exception registered for the engine's error
|
|
7
|
+
code. On first use it checks that the engine's version equals the package's.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
import threading
|
|
13
|
+
from typing import Any
|
|
14
|
+
|
|
15
|
+
from google.protobuf import message_factory
|
|
16
|
+
|
|
17
|
+
from xcl import _errors
|
|
18
|
+
from xcl._core import core_pb2
|
|
19
|
+
from xcl._transport import Transport
|
|
20
|
+
from xcl._version import __version__
|
|
21
|
+
|
|
22
|
+
STATUS_OK = 0
|
|
23
|
+
STATUS_ERROR = 1
|
|
24
|
+
|
|
25
|
+
_SERVICE = core_pb2.DESCRIPTOR.services_by_name["CoreService"]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def normalise_version(version: str) -> str:
|
|
29
|
+
"""The form versions are compared in: the tag's leading ``v`` removed."""
|
|
30
|
+
return version[1:] if version.startswith("v") else version
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class Client:
|
|
34
|
+
"""Dispatches CoreService methods over a transport."""
|
|
35
|
+
|
|
36
|
+
def __init__(self, transport: Transport, *, check_version: bool = True) -> None:
|
|
37
|
+
self._transport = transport
|
|
38
|
+
self._check_version = check_version
|
|
39
|
+
self._checked = False
|
|
40
|
+
self._lock = threading.Lock()
|
|
41
|
+
self._engine_version: str | None = None
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def transport(self) -> Transport:
|
|
45
|
+
return self._transport
|
|
46
|
+
|
|
47
|
+
def call(self, handle: int, method: str, request: Any) -> Any:
|
|
48
|
+
"""Call ``method`` with ``request`` on ``handle`` and return the decoded response.
|
|
49
|
+
|
|
50
|
+
A status of 1 raises the exception for the engine's error code; a
|
|
51
|
+
negative status raises :class:`InternalBindingError`.
|
|
52
|
+
"""
|
|
53
|
+
self._ensure_version()
|
|
54
|
+
return self._call(handle, method, request)
|
|
55
|
+
|
|
56
|
+
def _call(self, handle: int, method: str, request: Any) -> Any:
|
|
57
|
+
descriptor = _SERVICE.methods_by_name[method]
|
|
58
|
+
status, body = self._transport.call(handle, method, request.SerializeToString())
|
|
59
|
+
if status == STATUS_ERROR:
|
|
60
|
+
raise _errors.from_proto(core_pb2.Error.FromString(body))
|
|
61
|
+
if status != STATUS_OK:
|
|
62
|
+
raise _errors.InternalBindingError(method, status)
|
|
63
|
+
return message_factory.GetMessageClass(descriptor.output_type).FromString(body)
|
|
64
|
+
|
|
65
|
+
def release(self, handle: int) -> None:
|
|
66
|
+
"""Free the configuration behind ``handle``."""
|
|
67
|
+
status = self._transport.release(handle)
|
|
68
|
+
if status != STATUS_OK:
|
|
69
|
+
raise _errors.InternalBindingError("Release", status)
|
|
70
|
+
|
|
71
|
+
def engine_version(self) -> str:
|
|
72
|
+
"""The engine's version, as GetVersion reports it."""
|
|
73
|
+
self._ensure_version()
|
|
74
|
+
assert self._engine_version is not None
|
|
75
|
+
return self._engine_version
|
|
76
|
+
|
|
77
|
+
def _ensure_version(self) -> None:
|
|
78
|
+
if self._checked:
|
|
79
|
+
return
|
|
80
|
+
with self._lock:
|
|
81
|
+
if self._checked:
|
|
82
|
+
return
|
|
83
|
+
response = self._call(0, "GetVersion", core_pb2.GetVersionRequest())
|
|
84
|
+
self._engine_version = response.version
|
|
85
|
+
if self._check_version and normalise_version(response.version) != normalise_version(__version__):
|
|
86
|
+
raise _errors.EngineVersionError(
|
|
87
|
+
f"the xcl engine reports version {response.version}, but this is xcl-lang package "
|
|
88
|
+
f"version {__version__}; the xcl-lang package only runs against the engine of its own release",
|
|
89
|
+
package=__version__,
|
|
90
|
+
engine=response.version,
|
|
91
|
+
)
|
|
92
|
+
self._checked = True
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
_default_client: Client | None = None
|
|
96
|
+
_default_lock = threading.Lock()
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def default_client() -> Client:
|
|
100
|
+
"""The client every configuration uses unless given another.
|
|
101
|
+
|
|
102
|
+
Its transport is chosen on first use by
|
|
103
|
+
:func:`xcl._transport.select.select_transport`: the bundled engine
|
|
104
|
+
program, or the shared library when ``XCL_TRANSPORT=inprocess``. Nothing
|
|
105
|
+
is started until a call is made.
|
|
106
|
+
"""
|
|
107
|
+
global _default_client
|
|
108
|
+
if _default_client is None:
|
|
109
|
+
with _default_lock:
|
|
110
|
+
if _default_client is None:
|
|
111
|
+
from xcl._transport.select import select_transport
|
|
112
|
+
|
|
113
|
+
_default_client = Client(select_transport())
|
|
114
|
+
return _default_client
|
xcl/_core/__init__.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"""The CoreService message classes, generated from xcl's proto/xcl/core/v1.
|
|
2
|
+
|
|
3
|
+
``core_pb2`` is generated by ``make protos`` from the xcl checkout the package
|
|
4
|
+
is built against and committed, as xcl commits its own generated code. It is
|
|
5
|
+
the only generated code in the package: the client is built from its
|
|
6
|
+
descriptor at run time.
|
|
7
|
+
"""
|
xcl/_core/core_pb2.py
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: xcl/core/v1/core.proto
|
|
5
|
+
# Protobuf Python Version: 5.28.3
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
28,
|
|
16
|
+
3,
|
|
17
|
+
'',
|
|
18
|
+
'xcl/core/v1/core.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16xcl/core/v1/core.proto\x12\x0bxcl.core.v1\"\xac\x01\n\x05\x45rror\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x30\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32\x1f.xcl.core.v1.Error.DetailsEntry\x12\"\n\x06\x63\x61uses\x18\x04 \x03(\x0b\x32\x12.xcl.core.v1.Error\x1a.\n\x0c\x44\x65tailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x13\n\x11GetVersionRequest\":\n\x12GetVersionResponse\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x62i_version\x18\x02 \x01(\r\"\xc7\x02\n\x13\x43reateConfigRequest\x12)\n\nregistries\x18\x01 \x03(\x0b\x32\x15.xcl.core.v1.Registry\x12,\n\x0bstate_store\x18\x02 \x01(\x0b\x32\x17.xcl.core.v1.StateStore\x12%\n\nstate_mask\x18\x03 \x01(\x0b\x32\x11.xcl.core.v1.Mask\x12\x0e\n\x06\x65vents\x18\x04 \x01(\x08\x12\x19\n\x11\x65vent_buffer_size\x18\x05 \x01(\x05\x12/\n\nevent_data\x18\x06 \x01(\x0e\x32\x1b.xcl.core.v1.EventDataLevel\x12%\n\nevent_mask\x18\x07 \x01(\x0b\x32\x11.xcl.core.v1.Mask\x12\x15\n\rno_event_mask\x18\x08 \x01(\x08\x12\x16\n\x0evariables_json\x18\t \x01(\x0c\"&\n\x14\x43reateConfigResponse\x12\x0e\n\x06handle\x18\x01 \x01(\x04\"n\n\x08Registry\x12+\n\x05local\x18\x01 \x01(\x0b\x32\x1a.xcl.core.v1.LocalRegistryH\x00\x12-\n\x06github\x18\x02 \x01(\x0b\x32\x1b.xcl.core.v1.GitHubRegistryH\x00\x42\x06\n\x04kind\"\xb9\x01\n\rLocalRegistry\x12\x16\n\x0eplugin_pattern\x18\x01 \x01(\t\x12(\n\x05types\x18\x02 \x03(\x0b\x32\x19.xcl.core.v1.DeclaredType\x12\x18\n\x10\x65xternal_plugins\x18\x03 \x03(\t\x12\x1a\n\x12plugin_directories\x18\x04 \x03(\t\x12\x30\n\tfunctions\x18\x05 \x03(\x0b\x32\x1d.xcl.core.v1.DeclaredFunction\"I\n\x0c\x44\x65\x63laredType\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0f\n\x07subtype\x18\x02 \x01(\t\x12\x0e\n\x06schema\x18\x03 \x01(\x0cJ\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06\"3\n\x10\x44\x65\x63laredFunction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tsignature\x18\x02 \x01(\x0c\"\xaf\x01\n\x0eGitHubRegistry\x12*\n\x07plugins\x18\x01 \x03(\x0b\x32\x19.xcl.core.v1.GitHubPlugin\x12\x11\n\tcache_dir\x18\x02 \x01(\t\x12\x14\n\x0ctrusted_keys\x18\x03 \x03(\t\x12\r\n\x05token\x18\x04 \x01(\t\x12\x0f\n\x07\x61pi_url\x18\x05 \x01(\t\x12(\n\x05types\x18\x06 \x03(\x0b\x32\x19.xcl.core.v1.DeclaredType\"3\n\x0cGitHubPlugin\x12\x12\n\nrepository\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\"4\n\nStateStore\x12\x0e\n\x04path\x18\x01 \x01(\tH\x00\x12\x0e\n\x04host\x18\x02 \x01(\x08H\x00\x42\x06\n\x04kind\"d\n\x04Mask\x12\x17\n\raes256gcm_key\x18\x01 \x01(\x0cH\x00\x12\x19\n\x0fhmac_sha256_key\x18\x02 \x01(\x0cH\x00\x12\x10\n\x06redact\x18\x03 \x01(\x08H\x00\x12\x0e\n\x04omit\x18\x04 \x01(\x08H\x00\x42\x06\n\x04kind\"%\n\x14StartValidateRequest\x12\r\n\x05paths\x18\x01 \x03(\t\"\"\n\x11StartApplyRequest\x12\r\n\x05paths\x18\x01 \x03(\t\";\n\x10StartDiffRequest\x12\r\n\x05paths\x18\x01 \x03(\t\x12\x18\n\x10reveal_sensitive\x18\x02 \x01(\x08\"\x15\n\x13StartDestroyRequest\"\x12\n\x10StartLoadRequest\".\n\x16StartOperationResponse\x12\x14\n\x0coperation_id\x18\x01 \x01(\x04\"%\n\rCancelRequest\x12\x14\n\x0coperation_id\x18\x01 \x01(\x04\"\x10\n\x0e\x43\x61ncelResponse\"\x1e\n\x0bPollRequest\x12\x0f\n\x07wait_ms\x18\x01 \x01(\r\"\xcd\x01\n\x0cPollResponse\x12\'\n\x05state\x18\x02 \x01(\x0b\x32\x16.xcl.core.v1.StateTaskH\x00\x12#\n\x05\x65vent\x18\x03 \x01(\x0b\x32\x12.xcl.core.v1.EventH\x00\x12\x32\n\x08\x66inished\x18\x04 \x01(\x0b\x32\x1e.xcl.core.v1.OperationFinishedH\x00\x12-\n\x08\x66unction\x18\x05 \x01(\x0b\x32\x19.xcl.core.v1.FunctionTaskH\x00\x42\x06\n\x04taskJ\x04\x08\x01\x10\x02\"\xa2\x01\n\tStateTask\x12\x0f\n\x07task_id\x18\x01 \x01(\x04\x12\x14\n\x0coperation_id\x18\x02 \x01(\x04\x12)\n\x04kind\x18\x03 \x01(\x0e\x32\x1b.xcl.core.v1.StateTask.Kind\x12\x10\n\x08\x65ntities\x18\x04 \x03(\x0c\"1\n\x04Kind\x12\x08\n\x04LOAD\x10\x00\x12\x08\n\x04SAVE\x10\x01\x12\n\n\x06\x45XISTS\x10\x02\x12\t\n\x05\x43LEAR\x10\x03\"Q\n\x0c\x46unctionTask\x12\x0f\n\x07task_id\x18\x01 \x01(\x04\x12\x14\n\x0coperation_id\x18\x02 \x01(\x04\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x0c\n\x04\x61rgs\x18\x04 \x01(\x0c\"\xe6\x01\n\x05\x45vent\x12\x16\n\x0etime_unix_nano\x18\x01 \x01(\x03\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t\x12\r\n\x05phase\x18\x04 \x01(\t\x12\x15\n\rresource_type\x18\x05 \x01(\t\x12\x13\n\x0bresource_id\x18\x06 \x01(\t\x12\x0c\n\x04\x66ile\x18\x07 \x01(\t\x12\x15\n\rduration_nano\x18\x08 \x01(\x03\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.xcl.core.v1.Error\x12\x0c\n\x04\x64\x61ta\x18\n \x01(\x0c\x12\x11\n\tmeta_json\x18\x0b \x01(\x0c\"_\n\x11OperationFinished\x12\x14\n\x0coperation_id\x18\x01 \x01(\x04\x12!\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x12.xcl.core.v1.Error\x12\x11\n\tdiff_json\x18\x03 \x01(\x0c\"\x8e\x01\n\x0f\x43ompleteRequest\x12\x0f\n\x07task_id\x18\x01 \x01(\x04\x12)\n\x05state\x18\x03 \x01(\x0b\x32\x18.xcl.core.v1.StateResultH\x00\x12/\n\x08\x66unction\x18\x04 \x01(\x0b\x32\x1b.xcl.core.v1.FunctionResultH\x00\x42\x08\n\x06resultJ\x04\x08\x02\x10\x03\"\x12\n\x10\x43ompleteResponse\"R\n\x0bStateResult\x12\x10\n\x08\x65ntities\x18\x01 \x03(\x0c\x12\x0e\n\x06\x65xists\x18\x02 \x01(\x08\x12!\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x12.xcl.core.v1.Error\"C\n\x0e\x46unctionResult\x12\x0e\n\x06result\x18\x01 \x01(\x0c\x12!\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x12.xcl.core.v1.Error\"\x11\n\x0f\x45ntitiesRequest\"$\n\x10\x45ntitiesResponse\x12\x10\n\x08\x65ntities\x18\x01 \x03(\x0c\"\x1e\n\x0b\x46indRequest\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\" \n\x0e\x45ntityResponse\x12\x0e\n\x06\x65ntity\x18\x01 \x01(\x0c\"!\n\x11\x46indByTypeRequest\x12\x0c\n\x04path\x18\x01 \x03(\t\"\x10\n\x0eOutputsRequest\"\'\n\x0fOutputsResponse\x12\x14\n\x0coutputs_json\x18\x01 \x01(\x0c\"=\n\x18\x45ncodeSavedEntityRequest\x12\x0e\n\x06\x65ntity\x18\x01 \x01(\x0c\x12\x11\n\thighlight\x18\x02 \x01(\x08\")\n\x19\x45ncodeSavedEntityResponse\x12\x0c\n\x04text\x18\x01 \x01(\x0c*S\n\x0e\x45ventDataLevel\x12\x13\n\x0f\x45VENT_DATA_NONE\x10\x00\x12\x12\n\x0e\x45VENT_DATA_RAW\x10\x01\x12\x18\n\x14\x45VENT_DATA_PROCESSED\x10\x02\x32\xe6\t\n\x0b\x43oreService\x12M\n\nGetVersion\x12\x1e.xcl.core.v1.GetVersionRequest\x1a\x1f.xcl.core.v1.GetVersionResponse\x12S\n\x0c\x43reateConfig\x12 .xcl.core.v1.CreateConfigRequest\x1a!.xcl.core.v1.CreateConfigResponse\x12W\n\rStartValidate\x12!.xcl.core.v1.StartValidateRequest\x1a#.xcl.core.v1.StartOperationResponse\x12Q\n\nStartApply\x12\x1e.xcl.core.v1.StartApplyRequest\x1a#.xcl.core.v1.StartOperationResponse\x12O\n\tStartDiff\x12\x1d.xcl.core.v1.StartDiffRequest\x1a#.xcl.core.v1.StartOperationResponse\x12U\n\x0cStartDestroy\x12 .xcl.core.v1.StartDestroyRequest\x1a#.xcl.core.v1.StartOperationResponse\x12O\n\tStartLoad\x12\x1d.xcl.core.v1.StartLoadRequest\x1a#.xcl.core.v1.StartOperationResponse\x12\x41\n\x06\x43\x61ncel\x12\x1a.xcl.core.v1.CancelRequest\x1a\x1b.xcl.core.v1.CancelResponse\x12;\n\x04Poll\x12\x18.xcl.core.v1.PollRequest\x1a\x19.xcl.core.v1.PollResponse\x12G\n\x08\x43omplete\x12\x1c.xcl.core.v1.CompleteRequest\x1a\x1d.xcl.core.v1.CompleteResponse\x12G\n\x08\x45ntities\x12\x1c.xcl.core.v1.EntitiesRequest\x1a\x1d.xcl.core.v1.EntitiesResponse\x12=\n\x04\x46ind\x12\x18.xcl.core.v1.FindRequest\x1a\x1b.xcl.core.v1.EntityResponse\x12K\n\nFindByType\x12\x1e.xcl.core.v1.FindByTypeRequest\x1a\x1d.xcl.core.v1.EntitiesResponse\x12\x46\n\x07\x46indOne\x12\x1e.xcl.core.v1.FindByTypeRequest\x1a\x1b.xcl.core.v1.EntityResponse\x12\x44\n\x07Outputs\x12\x1b.xcl.core.v1.OutputsRequest\x1a\x1c.xcl.core.v1.OutputsResponse\x12\x62\n\x11\x45ncodeSavedEntity\x12%.xcl.core.v1.EncodeSavedEntityRequest\x1a&.xcl.core.v1.EncodeSavedEntityResponseB6Z4github.com/jumppad-labs/xcl/coreservice/proto;corepbb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'xcl.core.v1.core_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z4github.com/jumppad-labs/xcl/coreservice/proto;corepb'
|
|
35
|
+
_globals['_ERROR_DETAILSENTRY']._loaded_options = None
|
|
36
|
+
_globals['_ERROR_DETAILSENTRY']._serialized_options = b'8\001'
|
|
37
|
+
_globals['_EVENTDATALEVEL']._serialized_start=3223
|
|
38
|
+
_globals['_EVENTDATALEVEL']._serialized_end=3306
|
|
39
|
+
_globals['_ERROR']._serialized_start=40
|
|
40
|
+
_globals['_ERROR']._serialized_end=212
|
|
41
|
+
_globals['_ERROR_DETAILSENTRY']._serialized_start=166
|
|
42
|
+
_globals['_ERROR_DETAILSENTRY']._serialized_end=212
|
|
43
|
+
_globals['_GETVERSIONREQUEST']._serialized_start=214
|
|
44
|
+
_globals['_GETVERSIONREQUEST']._serialized_end=233
|
|
45
|
+
_globals['_GETVERSIONRESPONSE']._serialized_start=235
|
|
46
|
+
_globals['_GETVERSIONRESPONSE']._serialized_end=293
|
|
47
|
+
_globals['_CREATECONFIGREQUEST']._serialized_start=296
|
|
48
|
+
_globals['_CREATECONFIGREQUEST']._serialized_end=623
|
|
49
|
+
_globals['_CREATECONFIGRESPONSE']._serialized_start=625
|
|
50
|
+
_globals['_CREATECONFIGRESPONSE']._serialized_end=663
|
|
51
|
+
_globals['_REGISTRY']._serialized_start=665
|
|
52
|
+
_globals['_REGISTRY']._serialized_end=775
|
|
53
|
+
_globals['_LOCALREGISTRY']._serialized_start=778
|
|
54
|
+
_globals['_LOCALREGISTRY']._serialized_end=963
|
|
55
|
+
_globals['_DECLAREDTYPE']._serialized_start=965
|
|
56
|
+
_globals['_DECLAREDTYPE']._serialized_end=1038
|
|
57
|
+
_globals['_DECLAREDFUNCTION']._serialized_start=1040
|
|
58
|
+
_globals['_DECLAREDFUNCTION']._serialized_end=1091
|
|
59
|
+
_globals['_GITHUBREGISTRY']._serialized_start=1094
|
|
60
|
+
_globals['_GITHUBREGISTRY']._serialized_end=1269
|
|
61
|
+
_globals['_GITHUBPLUGIN']._serialized_start=1271
|
|
62
|
+
_globals['_GITHUBPLUGIN']._serialized_end=1322
|
|
63
|
+
_globals['_STATESTORE']._serialized_start=1324
|
|
64
|
+
_globals['_STATESTORE']._serialized_end=1376
|
|
65
|
+
_globals['_MASK']._serialized_start=1378
|
|
66
|
+
_globals['_MASK']._serialized_end=1478
|
|
67
|
+
_globals['_STARTVALIDATEREQUEST']._serialized_start=1480
|
|
68
|
+
_globals['_STARTVALIDATEREQUEST']._serialized_end=1517
|
|
69
|
+
_globals['_STARTAPPLYREQUEST']._serialized_start=1519
|
|
70
|
+
_globals['_STARTAPPLYREQUEST']._serialized_end=1553
|
|
71
|
+
_globals['_STARTDIFFREQUEST']._serialized_start=1555
|
|
72
|
+
_globals['_STARTDIFFREQUEST']._serialized_end=1614
|
|
73
|
+
_globals['_STARTDESTROYREQUEST']._serialized_start=1616
|
|
74
|
+
_globals['_STARTDESTROYREQUEST']._serialized_end=1637
|
|
75
|
+
_globals['_STARTLOADREQUEST']._serialized_start=1639
|
|
76
|
+
_globals['_STARTLOADREQUEST']._serialized_end=1657
|
|
77
|
+
_globals['_STARTOPERATIONRESPONSE']._serialized_start=1659
|
|
78
|
+
_globals['_STARTOPERATIONRESPONSE']._serialized_end=1705
|
|
79
|
+
_globals['_CANCELREQUEST']._serialized_start=1707
|
|
80
|
+
_globals['_CANCELREQUEST']._serialized_end=1744
|
|
81
|
+
_globals['_CANCELRESPONSE']._serialized_start=1746
|
|
82
|
+
_globals['_CANCELRESPONSE']._serialized_end=1762
|
|
83
|
+
_globals['_POLLREQUEST']._serialized_start=1764
|
|
84
|
+
_globals['_POLLREQUEST']._serialized_end=1794
|
|
85
|
+
_globals['_POLLRESPONSE']._serialized_start=1797
|
|
86
|
+
_globals['_POLLRESPONSE']._serialized_end=2002
|
|
87
|
+
_globals['_STATETASK']._serialized_start=2005
|
|
88
|
+
_globals['_STATETASK']._serialized_end=2167
|
|
89
|
+
_globals['_STATETASK_KIND']._serialized_start=2118
|
|
90
|
+
_globals['_STATETASK_KIND']._serialized_end=2167
|
|
91
|
+
_globals['_FUNCTIONTASK']._serialized_start=2169
|
|
92
|
+
_globals['_FUNCTIONTASK']._serialized_end=2250
|
|
93
|
+
_globals['_EVENT']._serialized_start=2253
|
|
94
|
+
_globals['_EVENT']._serialized_end=2483
|
|
95
|
+
_globals['_OPERATIONFINISHED']._serialized_start=2485
|
|
96
|
+
_globals['_OPERATIONFINISHED']._serialized_end=2580
|
|
97
|
+
_globals['_COMPLETEREQUEST']._serialized_start=2583
|
|
98
|
+
_globals['_COMPLETEREQUEST']._serialized_end=2725
|
|
99
|
+
_globals['_COMPLETERESPONSE']._serialized_start=2727
|
|
100
|
+
_globals['_COMPLETERESPONSE']._serialized_end=2745
|
|
101
|
+
_globals['_STATERESULT']._serialized_start=2747
|
|
102
|
+
_globals['_STATERESULT']._serialized_end=2829
|
|
103
|
+
_globals['_FUNCTIONRESULT']._serialized_start=2831
|
|
104
|
+
_globals['_FUNCTIONRESULT']._serialized_end=2898
|
|
105
|
+
_globals['_ENTITIESREQUEST']._serialized_start=2900
|
|
106
|
+
_globals['_ENTITIESREQUEST']._serialized_end=2917
|
|
107
|
+
_globals['_ENTITIESRESPONSE']._serialized_start=2919
|
|
108
|
+
_globals['_ENTITIESRESPONSE']._serialized_end=2955
|
|
109
|
+
_globals['_FINDREQUEST']._serialized_start=2957
|
|
110
|
+
_globals['_FINDREQUEST']._serialized_end=2987
|
|
111
|
+
_globals['_ENTITYRESPONSE']._serialized_start=2989
|
|
112
|
+
_globals['_ENTITYRESPONSE']._serialized_end=3021
|
|
113
|
+
_globals['_FINDBYTYPEREQUEST']._serialized_start=3023
|
|
114
|
+
_globals['_FINDBYTYPEREQUEST']._serialized_end=3056
|
|
115
|
+
_globals['_OUTPUTSREQUEST']._serialized_start=3058
|
|
116
|
+
_globals['_OUTPUTSREQUEST']._serialized_end=3074
|
|
117
|
+
_globals['_OUTPUTSRESPONSE']._serialized_start=3076
|
|
118
|
+
_globals['_OUTPUTSRESPONSE']._serialized_end=3115
|
|
119
|
+
_globals['_ENCODESAVEDENTITYREQUEST']._serialized_start=3117
|
|
120
|
+
_globals['_ENCODESAVEDENTITYREQUEST']._serialized_end=3178
|
|
121
|
+
_globals['_ENCODESAVEDENTITYRESPONSE']._serialized_start=3180
|
|
122
|
+
_globals['_ENCODESAVEDENTITYRESPONSE']._serialized_end=3221
|
|
123
|
+
_globals['_CORESERVICE']._serialized_start=3309
|
|
124
|
+
_globals['_CORESERVICE']._serialized_end=4563
|
|
125
|
+
# @@protoc_insertion_point(module_scope)
|