Documentation ¶
Overview ¶
Copyright © 2018 Antoine GIRARD <antoine.girard@sapk.fr>
Copyright © 2018 Antoine GIRARD <antoine.girard@sapk.fr>
Copyright © 2018 Antoine GIRARD <antoine.girard@sapk.fr>
Copyright © 2018 Antoine GIRARD <antoine.girard@sapk.fr>
Copyright © 2018 Antoine GIRARD <antoine.girard@sapk.fr>
Copyright © 2018 Antoine GIRARD <antoine.girard@sapk.fr>
Index ¶
- Variables
- func FormatObj(objType object.Type, obj map[string]interface{}, data map[string][]interface{}) string
- func FormatShortObj(obj map[string]interface{}) string
- func GenerateDotGraphByApp(data map[string][]interface{}) string
- func GenerateDotGraphByHost(data map[string][]interface{}) string
- func GenerateMermaidGraph(data map[string][]interface{}) string
- func GetFileName(obj map[string]interface{}) string
- func GetObjectType(obj map[string]interface{}) *object.Type
- func Name(obj map[string]interface{}) string
- type Formater
Constants ¶
This section is empty.
Variables ¶
View Source
var FormaterList = map[string]Formater{ "default": Formater{ func(objType object.Type, obj map[string]interface{}, data map[string][]interface{}) string { name := GetFileName(obj) ret := "# " + name + "\n" ret += "\n" ret += dumpAvailableInformation(obj, data) + "\n" ret += formatOptions(obj, data) ret += formatAnnexes(obj, data) ret += dumpBackup(obj) return ret }, nil, defaultShortFormater, }, "CfgFormat": Formater{ func(objType object.Type, obj map[string]interface{}, data map[string][]interface{}) string { name := GetFileName(obj) ret := "# " + name + "\n" ret += "\n" ret += dumpAvailableInformation(obj, data) + "\n" ret += formatFields(obj, data) ret += formatOptions(obj, data) ret += formatAnnexes(obj, data) ret += dumpBackup(obj) return ret }, nil, defaultShortFormater, }, }
Functions ¶
func FormatObj ¶
func FormatObj(objType object.Type, obj map[string]interface{}, data map[string][]interface{}) string
Call the good formatter if exist or use the default
func FormatShortObj ¶
Call the good formatter if exist or use the default
func GenerateDotGraphByApp ¶
func GenerateDotGraphByHost ¶
func GenerateMermaidGraph ¶
func GetObjectType ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.