daemon.stores.containers module

class daemon.stores.containers.ContainerStore[source]

Bases: daemon.stores.base.BaseStore

A Store of Containers spawned by daemon

async ready(uri)[source]

Check if the container with mini-jinad is alive

Parameters

uri – uri of mini-jinad

Return type

bool

Returns

True if mini-jinad is ready

add(*args, **kwargs)

Add a new element to the store. This method needs to be overridden by the subclass

update(*args, **kwargs)

Updates the element to the store. This method needs to be overridden by the subclass

delete(*args, **kwargs)

Deletes an element from the store. This method needs to be overridden by the subclass

async clear(**kwargs)[source]

Delete all the objects in the store

Parameters

kwargs – keyward args

Return type

None