onyo.lib.executors module
- onyo.lib.executors.exec_modify_assets(repo, operands)[source]
- Return type:
tuple[list[Path],list[Path]]
- onyo.lib.executors.exec_move_assets(repo, operands)[source]
- Return type:
tuple[list[Path],list[Path]]
- onyo.lib.executors.exec_move_directories(repo, operands)[source]
- Return type:
tuple[list[Path],list[Path]]
- onyo.lib.executors.exec_new_assets(repo, operands)[source]
Executor for the ‘new_asset’ operation
- Parameters:
repo (
OnyoRepo) – Onyo repository to operate onoperands (
tuple) – Each item of the list is a tuple of operation operands. Here a single item per tuple is expected: The to-be-added Asset
- Returns:
paths to the newly added assets
- Return type:
list of Path
- onyo.lib.executors.exec_new_directories(repo, operands)[source]
Executor for the ‘new_directory’ operation
- Return type:
tuple[list[Path],list[Path]]
- onyo.lib.executors.exec_remove_assets(repo, operands)[source]
- Return type:
tuple[list[Path],list[Path]]
- onyo.lib.executors.exec_remove_directories(repo, operands)[source]
- Return type:
tuple[list[Path],list[Path]]
- onyo.lib.executors.exec_rename_assets(repo, operands)[source]
- Return type:
tuple[list[Path],list[Path]]
- onyo.lib.executors.exec_rename_directories(repo, operands)[source]
- Return type:
tuple[list[Path],list[Path]]
- onyo.lib.executors.generic_executor(func, repo, operands)[source]
This is intended for simple FS operations on non-inventory files
only current usecase is recursive remove_directory. Not yet meant to be a stable implementation
- Return type:
tuple[list[Path],list[Path]]