daemon.stores.pods module

class daemon.stores.pods.PodStore[source]

Bases: daemon.stores.containers.ContainerStore, daemon.stores.mixin.AiohttpMixin

A Store of Pods spawned as Containers by Daemon

  • async add_in_partial(uri, params, envs={}, \*kwargs*)[source]

    Sends POST request to partial-daemon to create a Pod/Deployment.

    • Parameters

      • uri (str) – uri of partial-daemon

      • params (Dict) – json payload to be sent

      • envs (Optional[Dict]) – environment variables to be passed into partial pod

      • kwargs – keyword args

      Return type

      Dict

      Returns

      response from mini-jinad

  • async delete_in_partial(uri, \*kwargs*)[source]

    Sends a DELETE request to partial-daemon to terminate a Pod/Deployment

    • Parameters

      • uri – uri of partial-daemon

      • kwargs – keyword args

      Return type

      Dict

      Returns

      response from partial-daemon