libioc.ListableResource module

A ListableResource hosts child resources in a flat structure.

In case of a Jail or a Release, those children are ZFS datasets nested in the listable resource’s ZFS dataset.

With filters applied to a ListableResource, all children returned listed have to match the input filters. Unlike Releases, that can only be filtered by their dataset name, it is possible to match configuration variables for Jails.

class libioc.ListableResource.ListableResource(sources, namespace=None, filters=None, logger=None, zfs=None)[source]

Bases: list

Representation of Resources that can be listed.

destroy(force=False)[source]

Listable resources by itself cannot be destroyed.

Return type

None

property filters

Return the filters that are applied on the list items.

Return type

Optional[Terms]