Test API to perform the generic operations over the storage
Overview
Generic high level functions to work with storage. More…
// global functions te_errno tapi_storage_bootstrap(tapi_storage_client* client, const char* root, bool remove_root); te_errno tapi_storage_setup(tapi_storage_client* client, const char* root);
Detailed Documentation
Generic high level functions to work with storage.
Copyright (C) 2004-2022 OKTET Labs Ltd. All rights reserved.
Global Functions
te_errno tapi_storage_bootstrap(tapi_storage_client* client, const char* root, bool remove_root)
Clean up the storage from content.
Parameters:
client |
Storage client handle. |
root |
Root directory to bootstrap. May be |
remove_root |
Enable delete a root directory as well (if |
Returns:
Status code.
te_errno tapi_storage_setup(tapi_storage_client* client, const char* root)
Remove all existent content from remote storage and fill by another one. To update content it uses lazy-flag STORAGE_UPLOAD_LAZY obtained from configurator tree. If STORAGE_UPLOAD_LAZY is true
then it will be applied only to dissimilar files of source and remote storages.
Parameters:
client |
Storage client handle. |
root |
Root directory to setup. Will be created if needed. May be |
Returns:
Status code.