libioc.JailParams module

Sysctl jail params signeton.

class libioc.JailParams.HostJailParams[source]

Bases: libioc.JailParams.JailParams

Read-only host jail parameters obtained from sysctl.

class libioc.JailParams.JailParam(name=None, oid=None)[source]

Bases: freebsd_sysctl.Sysctl

Single jail parameter represented by sysctl.

property iocage_name

Return the name of the param formatted for iocage config.

Return type

str

property jail_arg_name

Return the name of the param formatted for the jail command.

Return type

str

property sysctl_value

Return the original freebsd_sysctl.Sysctl value.

Return type

Union[str, int, None]

property value

Return the user defined value of this jail parameter.

Return type

Union[str, int, None]

class libioc.JailParams.JailParams[source]

Bases: collections.abc.MutableMapping

Collection of jail parameters.

items()[source]

Iterate over the keys and values.

Return type

Itemsview[str, JailParam]

keys()[source]

Return a list of all jail param names.

Return type

Keysview[str]

property memoized_params

Return the memorized params initialized on first access.

Return type

Dict[str, JailParam]