mc_dumper / Some useful wrappers to dump/load values¶
-
mc_states.modules.mc_dumper.
cyaml_dump
(*args, **kw)¶ Encode a value in yaml with raw c Yaml dumper
-
mc_states.modules.mc_dumper.
cyaml_load
(*args, **kw)¶ Load a value encoded in yaml
The first positional argument is either a yaml value or a path filename.
WARNING: THIS FUNCTION SHOULD WORK WITHOUT SALT
-
mc_states.modules.mc_dumper.
iyaml_dump
(data, flow=None, *args, **kw)¶ load a value in yaml
-
mc_states.modules.mc_dumper.
json_dump
(data, pretty=False, *args, **kw)¶ encode a string in json
-
mc_states.modules.mc_dumper.
json_load
(data, *args, **kw)¶ load a json string
WARNING: THIS FUNCTION SHOULD WORK WITHOUT SALT
-
mc_states.modules.mc_dumper.
msgpack_dump
(data, *args, **kw)¶ encode a value with msgpack
-
mc_states.modules.mc_dumper.
msgpack_load
(data, *args, **kw)¶ loade a msgpacked value
-
mc_states.modules.mc_dumper.
old_yaml_dump
(data, flow=None, nonewline=None, *args, **kw)¶ encode a value with yaml
DO NOT TOUCH TO NONEWLINE=True as default (RETROCOMPAT WITH STATES)
-
mc_states.modules.mc_dumper.
yaml_dump
(data, flow=None, nonewline=None, *args, **kw)¶ encode a value with yaml using saltstack yaml dumper
-
mc_states.modules.mc_dumper.
yaml_load
(*args, **kw)¶ Wrapper to cyaml_load
WARNING: THIS FUNCTION SHOULD WORK WITHOUT SALT
-
mc_states.modules.mc_dumper.
yencode
(string, *args, **kw)¶ wrapper to
yencode()