Infinityd.Storage¶
- Implementations:
Methods¶
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | 
Virtual Methods¶
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | 
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Infinityd.Storage¶
- Bases:
- Structure:
 - create_subdirectory(path)¶
- Parameters:
- path ( - str) – A path pointing to non-existing node.
- Raises:
- Returns:
- Trueon success.
- Return type:
 - Creates a new subdirectory at the given path that is initially empty. 
 - read_acl(path)¶
- Parameters:
- path ( - str) – A path pointing to an existing node.
- Raises:
- Returns:
- A possibly empty list of - Infinityd.StorageAclobjects. Free with- Infinityd.StorageAcl.list_free() when no longer needed.
- Return type:
- [ - Infinityd.StorageAcl] or- None
 - Reads the ACL for the node at the path path from the storage. It returns a list of - Infinityd.StorageAclobjects.
 - read_subdirectory(path)¶
- Parameters:
- path ( - str) – A path pointing to a subdirectory node.
- Raises:
- Returns:
- A - GLib.SListthat contains- Infinityd.StorageNodeobjects, or- Noneif either the subdirectory is empty or an error occurred.
- Return type:
 - Reads a subdirectory from the storage. Returns a list of - Infinityd.StorageNodeobjects. Both the list and the objects need to be freed by the caller via- Infinityd.StorageNode.list_free().
 - remove_node(identifier, path)¶
- Parameters:
- Raises:
- Returns:
- Trueon success.
- Return type:
 - Removes the node at path from storage. If it is a subdirectory node, all containing nodes and subdirectory nodes are removed recursively. 
 - write_acl(path, sheet_set)¶
- Parameters:
- path ( - str) – A path to an existing node.
- sheet_set ( - Infinity.AclSheetSet) – Sheets to set for the node at path, or- None.
 
- Raises:
- Returns:
- Return type:
 - Writes the ACL defined by sheet_set into storage. If sheet_set is - Nonethis is equivalent to an empty set. Returns- Trueon success or- Falseon error. If the function fails, error is set.
 - do_create_subdirectory(path) virtual¶
- Parameters:
- path ( - str) – A path pointing to non-existing node.
- Returns:
- Trueon success.
- Return type:
 - Creates a new subdirectory at the given path that is initially empty. 
 - do_read_acl(path) virtual¶
- Parameters:
- path ( - str) – A path pointing to an existing node.
- Returns:
- A possibly empty list of - Infinityd.StorageAclobjects. Free with- Infinityd.StorageAcl.list_free() when no longer needed.
- Return type:
- [ - Infinityd.StorageAcl] or- None
 - Reads the ACL for the node at the path path from the storage. It returns a list of - Infinityd.StorageAclobjects.
 - do_read_subdirectory(path) virtual¶
- Parameters:
- path ( - str) – A path pointing to a subdirectory node.
- Returns:
- A - GLib.SListthat contains- Infinityd.StorageNodeobjects, or- Noneif either the subdirectory is empty or an error occurred.
- Return type:
 - Reads a subdirectory from the storage. Returns a list of - Infinityd.StorageNodeobjects. Both the list and the objects need to be freed by the caller via- Infinityd.StorageNode.list_free().
 - do_remove_node(identifier, path) virtual¶
- Parameters:
- Returns:
- Trueon success.
- Return type:
 - Removes the node at path from storage. If it is a subdirectory node, all containing nodes and subdirectory nodes are removed recursively. 
 - do_write_acl(path, sheet_set) virtual¶
- Parameters:
- path ( - str) – A path to an existing node.
- sheet_set ( - Infinity.AclSheetSet) – Sheets to set for the node at path, or- None.
 
- Returns:
- Return type:
 - Writes the ACL defined by sheet_set into storage. If sheet_set is - Nonethis is equivalent to an empty set. Returns- Trueon success or- Falseon error. If the function fails, error is set.