Collaboration diagram for Feel::RemoteData::Girder:Public Member Functions | |
| bool | canDownload () const |
| Return true if enough information is available to download a file. | |
| bool | canUpload () const |
| Return true if enough information is available to upload data. | |
| std::tuple< std::vector< std::shared_ptr< FolderInfo > >, std::vector< std::shared_ptr< ItemInfo > >, std::vector< std::shared_ptr< FileInfo > > > | contents () const |
| Get contents of remote data (folder, item, file) More... | |
| std::tuple< std::vector< std::shared_ptr< FolderInfo > >, std::vector< std::shared_ptr< ItemInfo > >, std::vector< std::shared_ptr< FileInfo > > > | contents (RemoteDataProgress &progress) const |
| Get contents of remote data (folder, item, file) with progress reporting. More... | |
| std::vector< std::pair< std::string, std::string > > | createFolder (std::string const &folderPath, std::string const &parentId="", bool sync=true) const |
| Create folders hierarchy on Girder. More... | |
| std::vector< std::pair< std::string, std::string > > | createItem (std::string const &itemPath, std::string const &parentId, bool sync=true) const |
| Create item on remote storage. More... | |
| bool | deleteResource (const nl::json &resourceId, const std::string &token="") const |
| Delete a resource by id. More... | |
| std::vector< std::string > | download (const std::string &dir, const std::string &path) const |
| Download file/folder/item from the Girder desc. More... | |
| std::vector< std::string > | download (const std::string &dir, const std::string &path, int timeout) const |
| Download file/folder/item from the Girder desc with timeout. More... | |
| std::vector< std::string > | download (std::string const &dir, int timeout) const |
| Download file/folder from the Girder desc with timeout. More... | |
| std::vector< std::string > | download (std::string const &dir=Environment::downloadsRepository()) const |
| Download file/folder from the Girder desc. More... | |
| Girder (Girder &&)=default | |
| Girder (Girder const &)=default | |
| Girder (std::string const &desc, WorldComm &worldComm=Environment::worldComm()) | |
| Initialize from a description: girder:{url:https://girder.math.unistra.fr,file:5ac722e9b0e9574027047886,token:xxxxx} girder:{url:https://girder.math.unistra.fr,file:[5ac7253ab0e957402704788d,5ac722e9b0e9574027047886],token:xxxxx}. | |
| bool | isInit () const |
| Return true if the Girder remote server is defined from a desc. | |
| void | replaceFile (std::string const &filePath, std::string const &fileId) const |
| Replace contents of a file. More... | |
| void | replaceFile (std::vector< std::pair< std::string, std::string > > const &filesToReplace) const |
| Replace contents of files. More... | |
| nl::json | resourceLookup (const std::string &path, const std::string &token, const RemoteDataProgress &progress) const |
| Lookup a resource by path with progress reporting. More... | |
| nl::json | resourceLookup (const std::string &path, const std::string &token="") const |
| Lookup a resource by path Lookup a resource by path with progress reporting. More... | |
| void | setFolderIds (std::string const &folderId) |
| Set folder ids to only one folder id. | |
| std::vector< std::string > | upload (std::string const &dataPath, std::string const &parentId, bool sync, int timeout) const |
| Upload data on Girder with timeout. More... | |
| std::vector< std::string > | upload (std::string const &dataPath, std::string const &parentId="", bool sync=true) const |
| Upload data on Girder. More... | |
| std::vector< std::vector< std::string > > | upload (std::vector< std::pair< std::string, std::string > > const &dataToUpload, bool sync=true) const |
| Upload data on Girder. More... | |
| std::tuple< std::vector< std::shared_ptr< Feel::RemoteData::FolderInfo > >, std::vector< std::shared_ptr< Feel::RemoteData::ItemInfo > >, std::vector< std::shared_ptr< Feel::RemoteData::FileInfo > > > Feel::RemoteData::Girder::contents | ( | ) | const |
Get contents of remote data (folder, item, file)
References Feel::RemoteData::contents(), and Feel::Environment::vm().
| std::tuple< std::vector< std::shared_ptr< Feel::RemoteData::FolderInfo > >, std::vector< std::shared_ptr< Feel::RemoteData::ItemInfo > >, std::vector< std::shared_ptr< Feel::RemoteData::FileInfo > > > Feel::RemoteData::Girder::contents | ( | RemoteDataProgress & | progress | ) | const |
Get contents of remote data (folder, item, file) with progress reporting.
| progress | : progress reporter for debug output |
| std::vector< std::pair< std::string, std::string > > Feel::RemoteData::Girder::createFolder | ( | std::string const & | folderPath, |
| std::string const & | parentId = "", |
||
| bool | sync = true |
||
| ) | const |
Create folders hierarchy on Girder.
| folderPath | : the folder hierarchy |
| parentId | : id where folder is created, empty means to use folder id in the desc |
| sync | : apply MPI synchronization with returned infos (else only master rank has these infos) |
| std::vector< std::pair< std::string, std::string > > Feel::RemoteData::Girder::createItem | ( | std::string const & | itemPath, |
| std::string const & | parentId, | ||
| bool | sync = true |
||
| ) | const |
Create item on remote storage.
| itemPath | : the item |
| parentId | : id where item is created, empty means to use folder id in the desc |
| sync | : apply MPI synchronization with returned infos (else only master rank has these infos) |
| bool Feel::RemoteData::Girder::deleteResource | ( | const nl::json & | resourceId, |
| const std::string & | token = "" |
||
| ) | const |
Delete a resource by id.
| resourceId | : the id of the resource in Girder |
| token | : authentication token |
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::contains(), and nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::get().
| std::vector< std::string > Feel::RemoteData::Girder::download | ( | const std::string & | dir, |
| const std::string & | path | ||
| ) | const |
Download file/folder/item from the Girder desc.
| dir | : the directory where the file is downloaded |
| path | : the path of the file/folder/item |
| std::vector< std::string > Feel::RemoteData::Girder::download | ( | const std::string & | dir, |
| const std::string & | path, | ||
| int | timeout | ||
| ) | const |
Download file/folder/item from the Girder desc with timeout.
| dir | : the directory where the file is downloaded |
| path | : the path of the file/folder/item |
| timeout | : timeout in milliseconds for HTTP requests |
| std::vector< std::string > Feel::RemoteData::Girder::download | ( | std::string const & | dir, |
| int | timeout | ||
| ) | const |
Download file/folder from the Girder desc with timeout.
| dir | : the directory where the file is downloaded |
| timeout | : timeout in milliseconds for HTTP requests |
References Feel::RemoteData::download().
| std::vector< std::string > Feel::RemoteData::Girder::download | ( | std::string const & | dir = Environment::downloadsRepository() | ) | const |
Download file/folder from the Girder desc.
| dir | : the directory where the file is downloaded |
References download(), and Feel::Environment::vm().
Referenced by download().
| void Feel::RemoteData::Girder::replaceFile | ( | std::string const & | filePath, |
| std::string const & | fileId | ||
| ) | const |
Replace contents of a file.
| filePath | : path of new file |
| fileId | : id of the file to replace |
References Feel::RemoteData::replaceFile().
| void Feel::RemoteData::Girder::replaceFile | ( | std::vector< std::pair< std::string, std::string > > const & | filesToReplace | ) | const |
Replace contents of files.
| filesToReplace | : vector of (path of new file, file id to replace) |
| Feel::nl::json Feel::RemoteData::Girder::resourceLookup | ( | const std::string & | path, |
| const std::string & | token, | ||
| const RemoteDataProgress & | progress | ||
| ) | const |
Lookup a resource by path with progress reporting.
| path | : the path to the resource in Girder |
| token | : authentication token |
| progress | : progress reporter for debug/verbose output |
| Feel::nl::json Feel::RemoteData::Girder::resourceLookup | ( | const std::string & | path, |
| const std::string & | token = "" |
||
| ) | const |
Lookup a resource by path Lookup a resource by path with progress reporting.
| path | : the path to the resource in Girder |
| token | : authentication token |
| std::vector< std::string > Feel::RemoteData::Girder::upload | ( | std::string const & | dataPath, |
| std::string const & | parentId, | ||
| bool | sync, | ||
| int | timeout | ||
| ) | const |
Upload data on Girder with timeout.
| dataPath | : a path of a file or a folder |
| parentId | : id where folder is created, empty means to use folder id in the desc |
| sync | : apply MPI synchronization with returned infos (else only master rank has these infos) |
| timeout | : timeout in milliseconds for HTTP requests |
References Feel::RemoteData::upload().
| std::vector< std::string > Feel::RemoteData::Girder::upload | ( | std::string const & | dataPath, |
| std::string const & | parentId = "", |
||
| bool | sync = true |
||
| ) | const |
Upload data on Girder.
| dataPath | : a path of a file or a folder |
| parentId | : id where folder is created, empty means to use folder id in the desc |
| sync | : apply MPI synchronization with returned infos (else only master rank has these infos) |
References Feel::RemoteData::upload().
| std::vector< std::vector< std::string > > Feel::RemoteData::Girder::upload | ( | std::vector< std::pair< std::string, std::string > > const & | dataToUpload, |
| bool | sync = true |
||
| ) | const |
Upload data on Girder.
| dataToUpload | : vector of (paths of a file or a folder, ids where folder is created, empty means to use folder id in the desc) |
| sync | : apply MPI synchronization with returned infos (else only master rank has these infos) |