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:
True
on 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.StorageAcl
objects. Free withInfinityd.StorageAcl.list_free
() when no longer needed.- Return type:
[
Infinityd.StorageAcl
] orNone
Reads the ACL for the node at the path path from the storage. It returns a list of
Infinityd.StorageAcl
objects.
- read_subdirectory(path)¶
- Parameters:
path (
str
) – A path pointing to a subdirectory node.- Raises:
- Returns:
A
GLib.SList
that containsInfinityd.StorageNode
objects, orNone
if either the subdirectory is empty or an error occurred.- Return type:
Reads a subdirectory from the storage. Returns a list of
Infinityd.StorageNode
objects. Both the list and the objects need to be freed by the caller viaInfinityd.StorageNode.list_free
().
- remove_node(identifier, path)¶
- Parameters:
- Raises:
- Returns:
True
on 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, orNone
.
- Raises:
- Returns:
- Return type:
Writes the ACL defined by sheet_set into storage. If sheet_set is
None
this is equivalent to an empty set. ReturnsTrue
on success orFalse
on error. If the function fails, error is set.
- do_create_subdirectory(path) virtual¶
- Parameters:
path (
str
) – A path pointing to non-existing node.- Returns:
True
on 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.StorageAcl
objects. Free withInfinityd.StorageAcl.list_free
() when no longer needed.- Return type:
[
Infinityd.StorageAcl
] orNone
Reads the ACL for the node at the path path from the storage. It returns a list of
Infinityd.StorageAcl
objects.
- do_read_subdirectory(path) virtual¶
- Parameters:
path (
str
) – A path pointing to a subdirectory node.- Returns:
A
GLib.SList
that containsInfinityd.StorageNode
objects, orNone
if either the subdirectory is empty or an error occurred.- Return type:
Reads a subdirectory from the storage. Returns a list of
Infinityd.StorageNode
objects. Both the list and the objects need to be freed by the caller viaInfinityd.StorageNode.list_free
().
- do_remove_node(identifier, path) virtual¶
- Parameters:
- Returns:
True
on 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, orNone
.
- Returns:
- Return type:
Writes the ACL defined by sheet_set into storage. If sheet_set is
None
this is equivalent to an empty set. ReturnsTrue
on success orFalse
on error. If the function fails, error is set.