solidipes.mounters.cloud module

class solidipes.mounters.cloud.Mounter(path=None, **kwargs)[source]

Bases: object

Mounter Base class

property allow_root

Allow root to access the fuse mounting

credential_names = []
property force

Replace the currently saved configuration for this directory

static forget_config(path)[source]
property mount_id

Create new unique mount_id if not already set.

property mount_info
property path

Path where to mount. If the directory has already been mounted before,

classmethod populate_parser(parser)[source]
remove_keys_from_info(mount_info)[source]

Remove keys from info and generate mount_id if necessary

classmethod run_and_check_return(command, **kwargs)[source]
save_config()[source]
property store_keys_publicly

Save all access keys publicly in local .solidipes directory.

classmethod unmount(path, headless=False, **kwargs)[source]
wait_mount()[source]

wait until the mount is effective

solidipes.mounters.cloud.add_global_mount_info(mount_info)[source]

Use mount_id to retrieve keys from user home’s .solidipes directory.

Keys already present in mount_info are not replaced. If one key is not found, no error is raised. Error should happen later when trying to mount.

solidipes.mounters.cloud.convert_cloud_to_cloud(local_path, mount_info_prev, mount_info_new)[source]
solidipes.mounters.cloud.convert_local_to_cloud(local_path, mount_info)[source]
solidipes.mounters.cloud.get_cloud_dir_path(*args, **kwargs)[source]
solidipes.mounters.cloud.get_cloud_info(*args, path=None, **kwargs)[source]
solidipes.mounters.cloud.get_key_to_mounter()[source]
solidipes.mounters.cloud.list_mounts(only_mounted=False)[source]

Get config expressed relative to working directory, with mount status

solidipes.mounters.cloud.mount(**kwargs)[source]
solidipes.mounters.cloud.mount_all(**kwargs)[source]

Mount all mounts that are not already mounted

solidipes.mounters.cloud.rsync(source_dir, target_dir, delete=False)[source]
solidipes.mounters.cloud.set_cloud_info(config, path=None, *args, **kwargs)[source]
solidipes.mounters.cloud.unmount_all(**kwargs)[source]

Unmount all mounted mounts