Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check2_4 ¶
Check2_4 returns if the config is translatable but does not do any translation. fsMap is a map from v2 filesystem names to the paths under which they should be mounted in v3.
func RemoveDuplicateFilesUnitsUsers ¶
RemoveDuplicateFilesUnitsUsers is a helper function that removes duplicated files/units/users from spec v2 config, since neither spec v3 nor the translator function allow for duplicate file entries in the config. This functionality is not included in the Translate function and has some limitations, but may be useful in cases where configuration has to be sanitized before translation. For duplicates, it takes ordering into consideration by taking the file/unit contents from the slice with the highest index value, which is assumed to be the latest revision. Unit dropins are concat'ed, i.e. if no duplicate dropin of the same name exists it is added to the list of dropins of the deduplicated unit definition. The function will fail if a non-root filesystem is declared on any file. It will also fail if file appendices are encountered.
Types ¶
This section is empty.