nebu 0.1.4__py3-none-any.whl → 0.1.6__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.
@@ -18,6 +18,7 @@ from nebu.containers.models import (
18
18
  V1SSHKey,
19
19
  V1VolumePath,
20
20
  )
21
+ from nebu.meta import V1ResourceReference
21
22
 
22
23
 
23
24
  class Container:
@@ -362,3 +363,10 @@ class Container:
362
363
 
363
364
  containers_response = V1Containers.model_validate(response.json())
364
365
  return containers_response.containers
366
+
367
+ def ref(self) -> V1ResourceReference:
368
+ return V1ResourceReference(
369
+ kind="Container",
370
+ name=self.name,
371
+ namespace=self.namespace,
372
+ )
nebu/meta.py CHANGED
@@ -22,3 +22,12 @@ class V1ResourceMeta(BaseModel):
22
22
  created_by: str
23
23
  owner_ref: Optional[str] = None
24
24
  labels: Optional[Dict[str, str]] = None
25
+
26
+
27
+ class V1ResourceReference(BaseModel):
28
+ kind: str
29
+ name: str
30
+ namespace: str
31
+
32
+ def to_string(self) -> str:
33
+ return f"{self.name}.{self.namespace}.{self.kind}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Summary: A globally distributed container runtime
5
5
  Requires-Python: >=3.10.14
6
6
  Description-Content-Type: text/markdown
@@ -1,7 +1,7 @@
1
1
  nebu/__init__.py,sha256=EbdC8ZKnRTt6jkX0WN0p1pnaDEzb2InqZ1r8QZWzph0,195
2
2
  nebu/config.py,sha256=XBY7uKgcJX9d1HGxqqpx87o_9DuF3maUlUnKkcpUrKU,4565
3
- nebu/meta.py,sha256=AnvrtP0mc7a-YP4zVhErHPsU0FSmwMejYgKWnV8wqqE,566
4
- nebu/containers/container.py,sha256=sCi96l5CJ-wt0xf0ELjXN1MOTljzCzJ-qN-xgYs7Pw0,13217
3
+ nebu/meta.py,sha256=CzFHMND9seuewzq9zNNx9WTr6JvrCBExe7BLqDSr7lM,745
4
+ nebu/containers/container.py,sha256=JbqdzjsagdlPmB8J_IueVqWuLixPAQ6RW9PRVlnRiqE,13444
5
5
  nebu/containers/decorator.py,sha256=sZQ4ZwqQk_jLDJ-n9P6N0MlxvWL9Ac7eCPIHVxYq58c,5576
6
6
  nebu/containers/models.py,sha256=_d6BS6puoVWvyHhWX-74WFHJSOE8WJaFt2zGMTm9EEA,6782
7
7
  nebu/containers/server.py,sha256=yFa2Y9PzBn59E1HftKiv0iapPonli2rbGAiU6r-wwe0,2513
@@ -9,8 +9,8 @@ nebu/processors/models.py,sha256=6XSw4iM77XYJf6utm8QReN9fyMS0dK40a5sVwsC7RRA,197
9
9
  nebu/processors/processor.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  nebu/redis/models.py,sha256=coPovAcVXnOU1Xh_fpJL4PO3QctgK9nBe5QYoqEcnxg,1230
11
11
  nebu/services/service.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- nebu-0.1.4.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
13
- nebu-0.1.4.dist-info/METADATA,sha256=bfMCjbLisYyBt-JXZT1Bu9MS2aLePTjz1cWjcxpPKqc,1587
14
- nebu-0.1.4.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
15
- nebu-0.1.4.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
16
- nebu-0.1.4.dist-info/RECORD,,
12
+ nebu-0.1.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
13
+ nebu-0.1.6.dist-info/METADATA,sha256=1nMDXh8oVbrCvGVVkPCw26DJJZ26kZLBZu4odO8XGt8,1587
14
+ nebu-0.1.6.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
15
+ nebu-0.1.6.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
16
+ nebu-0.1.6.dist-info/RECORD,,
File without changes