daemon.stores.workspaces module

class daemon.stores.workspaces.WorkspaceStore[source]

Bases: daemon.stores.base.BaseStore

A store of workspaces built by Daemon as docker objects

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

rm_files(id, logs=False)[source]

Remove files from workspace

Parameters
  • id (DaemonID) – workspace id

  • logs (bool) – True if log files should be removed, defaults to False

Return type

None

rm_network(id)[source]

Remove docker network

Parameters

id (DaemonID) – workspace id

Return type

None

rm_container(id)[source]

Remove docker container

Parameters

id (DaemonID) – workspace id

Return type

None

delete(*args, **kwargs)

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

clear(**kwargs)[source]

Delete all the objects in the store

Parameters

kwargs – keyward args

Return type

None