daemon.models.enums module

class daemon.models.enums.DaemonEnum(value)[source]

Bases: str, enum.Enum

Base class of Enum in JinaD

  • values = []

class daemon.models.enums.IDLiterals(value)[source]

Bases: daemon.models.enums.DaemonEnum

Enum representing all values allowed in DaemonID

  • JDEPLOYMENT = ‘jdeployment’

  • JPOD = ‘jpod’

  • JFLOW = ‘jflow’

  • JNETWORK = ‘jnetwork’

  • JWORKSPACE = ‘jworkspace’

class daemon.models.enums.DaemonDockerfile(value)[source]

Bases: daemon.models.enums.DaemonEnum

Enum representing build value passed in .jinad file

  • DEVEL = ‘devel’

  • DEFAULT = ‘default’

  • CPU = ‘default’

  • GPU = ‘gpu’

  • OTHERS = ‘others’

  • default = ‘default’[source]

class daemon.models.enums.PythonVersion(value)[source]

Bases: daemon.models.enums.DaemonEnum

Enum representing python versions allowed in .jinad file

  • PY37 = ‘3.7’

  • PY38 = ‘3.8’

  • PY39 = ‘3.9’

  • default = ‘3.8’[source]

class daemon.models.enums.PartialDaemonModes(value)[source]

Bases: daemon.models.enums.DaemonEnum

Enum representing partial daemon modes

  • POD = ‘pod’

  • DEPLOYMENT = ‘deployment’

  • FLOW = ‘flow’