8.1.4.1.5. cobbler.modules.serializers package¶
8.1.4.1.5.1. Submodules¶
8.1.4.1.5.2. cobbler.modules.serializers.file module¶
Cobbler’s file-based object serializer. As of 9/2014, this is Cobbler’s default serializer and the most stable one. It uses multiple JSON files in /var/lib/cobbler/collections/distros, profiles, etc
-
cobbler.modules.serializers.file.
deserialize
(collection, topological=True)[source]¶ Load a collection from file system
@param Collection collection collection @param bool topological
-
cobbler.modules.serializers.file.
filter_upgrade_duplicates
(file_list)[source]¶ In a set of files, some ending with .json, some not, return the list of files with the .json ones taking priority over the ones that are not.
-
cobbler.modules.serializers.file.
register
()[source]¶ The mandatory cobbler module registration hook.
-
cobbler.modules.serializers.file.
serialize
(collection)[source]¶ Save a collection to file system
@param Collection collection collection
-
cobbler.modules.serializers.file.
serialize_delete
(collection, item)[source]¶ Delete a collection item from file system
@param collection Collection collection @param item Item collection item
8.1.4.1.5.3. cobbler.modules.serializers.mongodb module¶
Cobbler’s Mongo database based object serializer. Experimental version.
-
cobbler.modules.serializers.mongodb.
deserialize
(collection, topological=True)[source]¶ Load a collection from database
@param Collection collection collection @param bool topological
-
cobbler.modules.serializers.mongodb.
register
()[source]¶ The mandatory cobbler module registration hook.
-
cobbler.modules.serializers.mongodb.
serialize
(collection)[source]¶ Save a collection to database
@param Collection collection collection
-
cobbler.modules.serializers.mongodb.
serialize_delete
(collection, item)[source]¶ Delete a collection item from database
@param Collection collection collection @param Item item collection item