daemon.models package

Module contents

class daemon.models.DaemonStatus(**data)[source]

Bases: pydantic.main.BaseModel

Pydantic model for DaemonStatus

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

jina: Dict
envs: Dict
workspaces: daemon.models.workspaces.WorkspaceStoreStatus
peas: daemon.models.containers.ContainerStoreStatus
pods: daemon.models.containers.ContainerStoreStatus
flows: daemon.models.containers.ContainerStoreStatus
used_memory: str
class daemon.models.UpdateOperationEnum(value)[source]

Bases: enum.Enum

Represents the type of operation to perform in the update

We consider these an update operation since they change the underlying state

rolling_update = 'rolling_update'
dump = 'dump'