poiesis.core.ports package¶
Submodules¶
poiesis.core.ports.kubernetes module¶
Container orchestrator port.
- class poiesis.core.ports.kubernetes.KubernetesPort[source]¶
Bases:
ABCContainer orchestrator port.
- abstractmethod async create_job(job)[source]¶
Create a Kubernetes Job.
- Parameters:
job (
V1Job) – The Kubernetes Job object.- Return type:
str
- abstractmethod async create_pod(pod)[source]¶
Create a task execution pod.
- Parameters:
pod (
V1Pod) – The pod object.- Return type:
str
- abstractmethod async create_pvc(pvc)[source]¶
Create a Persistent Volume Claim.
- Parameters:
pvc (
V1PersistentVolumeClaim) – The Persistent Volume Claim object.- Return type:
str
- abstractmethod async delete_pvc(name)[source]¶
Delete a Persistent Volume Claim.
- Parameters:
name (
str) – The name of the Persistent Volume Claim.- Return type:
None
- abstractmethod async get_job(name)[source]¶
Get a Kubernetes Job.
- Parameters:
name (
str) – The name of the Job.- Return type:
V1Job
- abstractmethod async get_pod(name)[source]¶
Get a specific pod.
- Parameters:
name (
str) – The name of the pod.- Return type:
V1Pod
poiesis.core.ports.message_broker module¶
Messaging/Eventing ports.
- class poiesis.core.ports.message_broker.Message(message, status=<factory>, timestamp=<factory>)[source]¶
Bases:
objectBase message class for all messages in the system.
-
message:
str¶
-
status:
MessageStatus¶
-
timestamp:
datetime¶
-
message:
- class poiesis.core.ports.message_broker.MessageBroker[source]¶
Bases:
ABCAbstract base class for message broker implementations.
Module contents¶
Ports for the core components.