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-daemonparams (
Dict
) – json payload to be sentenvs (
Optional
[Dict
]) – environment variables to be passed into partial podkwargs – 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