You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
2.1 KiB
ReStructuredText

5 years ago
###
API
###
Enumerations
************
.. autoclass:: simplezfs.types.DatasetType
:members:
3 years ago
.. autoclass:: simplezfs.types.PEHelperMode
:members:
5 years ago
.. autoclass:: simplezfs.types.PropertySource
:members:
.. autoclass:: simplezfs.types.ZPoolHealth
:members:
Types
*****
.. autoclass:: simplezfs.types.Dataset
:members:
.. autoclass:: simplezfs.types.Property
:members:
Interfaces
**********
ZFS
===
.. autofunction:: simplezfs.zfs.get_zfs
.. autoclass:: simplezfs.zfs.ZFS
5 years ago
:members:
ZPool
=====
.. autofunction:: simplezfs.zpool.get_zpool
.. autoclass:: simplezfs.zpool.ZPool
5 years ago
:members:
Implementations
***************
.. autoclass:: simplezfs.zfs_cli.ZFSCli
:members:
.. autoclass:: simplezfs.zfs_native.ZFSNative
:members:
.. autoclass:: simplezfs.zpool_cli.ZPoolCli
:members:
.. autoclass:: simplezfs.zpool_native.ZPoolNative
:members:
Privilege escalation
********************
.. autoclass:: simplezfs.pe_helper.PEHelperBase
:members:
.. autoclass:: simplezfs.pe_helper.ExternalPEHelper
:members:
.. autoclass:: simplezfs.pe_helper.SudoPEHelper
:members:
5 years ago
Validation functions
********************
A set of validation functions exist to validate names and other data. All of them raise a
:class:`simplezfs.exceptions.ValidationError` as a result of a failed validation and return nothing if everything is okay.
.. autofunction:: simplezfs.validation.validate_dataset_name
.. autofunction:: simplezfs.validation.validate_dataset_path
.. autofunction:: simplezfs.validation.validate_native_property_name
.. autofunction:: simplezfs.validation.validate_metadata_property_name
.. autofunction:: simplezfs.validation.validate_pool_name
.. autofunction:: simplezfs.validation.validate_property_value
Exceptions
**********
.. autoexception:: simplezfs.exceptions.ZFSException
.. autoexception:: simplezfs.exceptions.DatasetNotFound
.. autoexception:: simplezfs.exceptions.PermissionError
.. autoexception:: simplezfs.exceptions.PoolNotFound
.. autoexception:: simplezfs.exceptions.PropertyNotFound
.. autoexception:: simplezfs.exceptions.ValidationError