solidipes.mounters.cloud module

class solidipes.mounters.cloud.Mounter(**kwargs)[source]

Bases: Parsable

Mounter Base class.

_abc_impl = <_abc._abc_data object>
property allow_root

Allow root to access the fuse mounting.

credential_names = []
property force

Replace the currently saved configuration for this directory.

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, there is no need to indicate other mounting parameters.

classmethod remove_config(path, config) None[source]
remove_keys_from_info(mount_info) None[source]

Remove keys from info and generate mount_id if necessary.

save_config() None[source]
property store_keys_publicly

Save all access keys publicly in local .solidipes directory.

wait_mount() None[source]

Wait until the mount is effective.

solidipes.mounters.cloud.add_global_mount_info(mount_info) None[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) NoReturn[source]
solidipes.mounters.cloud.convert_local_to_cloud(local_path, mount_info) NoReturn[source]
solidipes.mounters.cloud.forget_config(path) None[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.list_mounts(only_mounted=False)[source]

Get config expressed relative to working directory, with mount status.

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

Mount all mounts that are not already mounted.

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

Unmount all mounted mounts.