juju.constraints

Summary

normalize_key
 
normalize_list_value
 
normalize_value
 
parse
Constraints must be expressed as a string containing only spaces and key value pairs joined by an ‘=’.
parse_device_constraint
 
parse_storage_constraint
 

Reference

juju.constraints.normalize_key(key)[source]
juju.constraints.normalize_list_value(value)[source]
juju.constraints.normalize_value(value)[source]
juju.constraints.parse(constraints)[source]

Constraints must be expressed as a string containing only spaces and key value pairs joined by an ‘=’.

juju.constraints.parse_device_constraint(constraint)[source]
juju.constraints.parse_storage_constraint(constraint)[source]