datavalidators

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

common/configurationprofiles/datavalidators/helpers.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPlistIndentationAndWhiteSpace

func CheckPlistIndentationAndWhiteSpace(plistStr string) error

CheckPlistIndentationAndWhiteSpace checks the plist XML for proper indentation and whitespace.

func FormatPlist

func FormatPlist(plistStr string) (string, error)

FormatPlist formats the plist structure to a properly indented XML string.

func GetPayloadScope

func GetPayloadScope(plistData map[string]interface{}) (string, error)

GetPayloadScope retrieves the 'PayloadScope' key from the decoded plist data.

func NormalizeXML

func NormalizeXML(xmlStr string) string

NormalizeXML normalizes XML string by removing extra spaces and new lines.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL