Documentation ¶
Index ¶
- func CalculateFileMD5(filePath string) string
- func CalculateFileSHA3(filePath string) string
- func FindPkgFiles(directory string) ([]string, error)
- func PackageExistsInJCDS(packages []jamfpro.ResponseJCDS2List, fileName, fileMD5 string) bool
- func PackageMetadataExists(packages []jamfpro.PackageListItem, fileName string) bool
- func PrintASCIILogo()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateFileMD5 ¶
CalculateFileMD5 calculates the MD5 hash of a file and returns it as a hexadecimal string.
func CalculateFileSHA3 ¶
CalculateFileSHA3 calculates the SHA3 hash of a file
func FindPkgFiles ¶
FindPkgFiles searches the given directory for files ending with .pkg and returns their paths
func PackageExistsInJCDS ¶
func PackageExistsInJCDS(packages []jamfpro.ResponseJCDS2List, fileName, fileMD5 string) bool
PackageExistsInJCDS checks if a package exists in JCDS by comparing both the file name and MD5 hash.
func PackageMetadataExists ¶
func PackageMetadataExists(packages []jamfpro.PackageListItem, fileName string) bool
PackageMetadataExists checks if package metadata exists in Jamf Pro by comparing the package name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.