libioc.Config.Jail.Properties.ResourceLimit module

Jail config resource limit.

class libioc.Config.Jail.Properties.ResourceLimit.ResourceLimitProp(property_name, config=None, logger=None)[source]

Bases: libioc.Config.Jail.Properties.ResourceLimit.ResourceLimitValue

Special jail config property for resource limits.

set(data, skip_on_error=False)[source]

Set the resource limit value.

Setting it to None will remove it from the configuration.

Return type

None

class libioc.Config.Jail.Properties.ResourceLimit.ResourceLimitValue(*args, **kwargs)[source]

Bases: object

Model of a resource limits value.

property is_unset

Return whether any parameter is None.

Return type

bool

property limit_string

Return the limit string in rctl syntax.

Return type

str