onyo.lib.recorders module

onyo.lib.recorders.record_modify_asset(repo, operands)[source]

Recorder for the ‘modify_assets’ operation.

Not intended for direct use. It is called from an Operator, which is assumed to have validated all input passed to this (trusting) recorder.

Returns a dict in the format: key: title of the Inventory Operations section value: list of textual records of Inventory Operations

Parameters:
  • repo (OnyoRepo) – Onyo repository to operate on.

  • operands (tuple[Item, Item]) – Items of the original and updated asset.

Return type:

dict[str, list[str]]

onyo.lib.recorders.record_move_asset(repo, operands)[source]

Recorder for the ‘move_assets’ operation.

Not intended for direct use. It is called from an Operator, which is assumed to have validated all input passed to this (trusting) recorder.

Returns a dict in the format: key: title of the Inventory Operations section value: list of textual records of Inventory Operations

Parameters:
  • repo (OnyoRepo) – Onyo repository to operate on.

  • operands (tuple[Path, Path]) – Absolute Paths of the source and destination parent.

Return type:

dict[str, list[str]]

onyo.lib.recorders.record_move_directory(repo, operands)[source]

Recorder for the ‘move_directories’ operation.

Not intended for direct use. It is called from an Operator, which is assumed to have validated all input passed to this (trusting) recorder.

Returns a dict in the format: key: title of the Inventory Operations section value: list of textual records of Inventory Operations

Parameters:
  • repo (OnyoRepo) – Onyo repository to operate on.

  • operands (tuple[Path, Path]) – Absolute Paths of the source and destination parent.

Return type:

dict[str, list[str]]

onyo.lib.recorders.record_new_asset(repo, operands)[source]

Recorder for the ‘new_assets’ operation.

Not intended for direct use. It is called from an Operator, which is assumed to have validated all input passed to this (trusting) recorder.

Returns a dict in the format: key: title of the Inventory Operations section value: list of textual records of Inventory Operations

Parameters:
  • repo (OnyoRepo) – Onyo repository to operate on.

  • operands (tuple[Item]) – Asset to create.

Return type:

dict[str, list[str]]

onyo.lib.recorders.record_new_directory(repo, operands)[source]

Recorder for the ‘new_directories’ operation.

Not intended for direct use. It is called from an Operator, which is assumed to have validated all input passed to this (trusting) recorder.

Returns a dict in the format: key: title of the Inventory Operations section value: list of textual records of Inventory Operations

Parameters:
  • repo (OnyoRepo) – Onyo repository to operate on.

  • operands (tuple[Path]) – Absolute Path of directory to create.

Return type:

dict[str, list[str]]

onyo.lib.recorders.record_remove_asset(repo, operands)[source]

Recorder for the ‘remove_assets’ operation.

Not intended for direct use. It is called from an Operator, which is assumed to have validated all input passed to this (trusting) recorder.

Returns a dict in the format: key: title of the Inventory Operations section value: list of textual records of Inventory Operations

Parameters:
  • repo (OnyoRepo) – Onyo repository to operate on.

  • operands (tuple[Item]) – Asset to remove.

Return type:

dict[str, list[str]]

onyo.lib.recorders.record_remove_directory(repo, operands)[source]

Recorder for the ‘remove_directories’ operation.

Not intended for direct use. It is called from an Operator, which is assumed to have validated all input passed to this (trusting) recorder.

Returns a dict in the format: key: title of the Inventory Operations section value: list of textual records of Inventory Operations

Parameters:
  • repo (OnyoRepo) – Onyo repository to operate on.

  • operands (tuple[Item]) – Directory to remove.

Return type:

dict[str, list[str]]

onyo.lib.recorders.record_rename_asset(repo, operands)[source]

Recorder for the ‘rename_assets’ operation.

Not intended for direct use. It is called from an Operator, which is assumed to have validated all input passed to this (trusting) recorder.

Returns a dict in the format: key: title of the Inventory Operations section value: list of textual records of Inventory Operations

Parameters:
  • repo (OnyoRepo) – Onyo repository to operate on.

  • operands (tuple[Path, Path]) – Absolute Paths of the source and destination.

Return type:

dict[str, list[str]]

onyo.lib.recorders.record_rename_directory(repo, operands)[source]

Recorder for the ‘rename_directories’ operation.

Not intended for direct use. It is called from an Operator, which is assumed to have validated all input passed to this (trusting) recorder.

Returns a dict in the format: key: title of the Inventory Operations section value: list of textual records of Inventory Operations

Parameters:
  • repo (OnyoRepo) – Onyo repository to operate on.

  • operands (tuple[Path, Path]) – Absolute Paths of the source and destination.

Return type:

dict[str, list[str]]