Register Storage Location

Initialize a location and a storage.

ska_dlm_client.register_storage_location.main.create_parser()

Define a parser for all the command line parameters.

Return type:

ArgumentParser

ska_dlm_client.register_storage_location.main.get_or_init_location(api_configuration, storage_url, location)

Perform location initialisation to be used when testing.

Return type:

str

ska_dlm_client.register_storage_location.main.get_or_init_storage(storage_name, storage_url, storage_root_directory, api_configuration, the_location_id, rclone_config, storage_phase='GAS')

Get storage_id or perform storage initialisation based on the storage_name provided.

Return type:

str

ska_dlm_client.register_storage_location.main.install_ssh_key(api_storage)

Retrieve and install the rclone ssh public key.

Parameters

api_storageska_dlm_client.openapi.dlm_api.storage_api.StorageApi

The storage API client to use to retrieve the key.

ska_dlm_client.register_storage_location.main.main()

If this is called as a CLI we register the requested volumes.

The CLI is now used also to start the client in operations.

ska_dlm_client.register_storage_location.main.setup_testing(api_configuration)

Configure a target storage endpoint for rclone.

ska_dlm_client.register_storage_location.main.setup_volume(watcher_config, api_configuration, rclone_config=None, location_id=None, storage_url=None, setup_target=False)

Register and configure a storage volume. This takes care of already existing volumes.