Documentation
¶
Index ¶
- func CleanFilename(filename string) string
- func ConvertStructToMap(data interface{}) map[string]interface{}
- func RemoveKeys(data map[string]interface{}) map[string]interface{}
- func SaveAsJSON(filePath string, data interface{}) error
- func SaveAsYAML(filePath string, data interface{}) error
- func SaveOutput(format, path, filename string, data interface{}) error
- func SaveScript(basePath, filename, scriptType, base64Content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanFilename ¶
cleanFilename sanitizes the filename by replacing illegal characters with underscores.
func ConvertStructToMap ¶
func ConvertStructToMap(data interface{}) map[string]interface{}
ConvertStructToMap converts a struct to a map[string]interface{}, removing "omitempty" tags from JSON field tags.
func RemoveKeys ¶
RemoveKeys removes specific intune data keys from a map.
func SaveAsJSON ¶
saveAsJSON saves data in JSON format.
func SaveAsYAML ¶
saveAsYAML saves data in YAML format.
func SaveOutput ¶
saveOutput saves the configuration data in the specified format.
func SaveScript ¶
saveScript decodes base64 script content and saves it to a file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.