cowbird.handlers.impl.filesystem

Module Contents

Classes

FileSystem

Keep the proper directory structure in sync with the platform.

Attributes

LOGGER

NOTEBOOKS_DIR_NAME

cowbird.handlers.impl.filesystem.LOGGER[source]
cowbird.handlers.impl.filesystem.NOTEBOOKS_DIR_NAME = notebooks[source]
class cowbird.handlers.impl.filesystem.FileSystem(settings: cowbird.typedefs.SettingsType, name: str, jupyterhub_user_data_dir: str, **kwargs: Any)[source]

Bases: cowbird.handlers.handler.Handler

Keep the proper directory structure in sync with the platform.

Create the file system instance.

Parameters
  • settings – Cowbird settings for convenience

  • name – Handler name

  • jupyterhub_user_data_dir – Path to the JupyterHub user data directory, which will be symlinked to the working directory

required_params[source]
abstract get_resource_id(resource_full_name)[source]

Each handler must provide this implementation required by the permission synchronizer.

The function needs to find the resource id in Magpie from the resource full name using its knowledge of the service. If the resource doesn’t already exist, the function needs to create it, again using its knowledge of resource type and parent resource type if required.

_get_user_workspace_dir(user_name)[source]
_get_jupyterhub_user_data_dir(user_name)[source]
user_created(user_name)[source]
user_deleted(user_name)[source]
abstract permission_created(permission)[source]
abstract permission_deleted(permission)[source]