Versions in this module Expand all Collapse all v0 v0.1.0 Sep 7, 2023 Changes in this version + var ErrMountResourceBusy = errors.New("hdiutil: mount failed - Resource busy") + func ClangFormat(src, filename string, color bool) string + func CodeSign(filePath, signature string) error + func CodeSignAdHoc(filePath string) error + func CodeSignWithEntitlements(filePath, entitlementsPath, signature string) error + func CodesignShow(path string) (string, error) + func CodesignVerify(path string) (string, error) + func Compare(v, w string) int + func ConvertStrToInt(intStr string) (uint64, error) + func Copy(src, dst string) error + func CopyWithMode(src, dst string, mode os.FileMode) error + func Cp(src, dst string) error + func CreateCompressedDMG(appPath, diskimagePath string) error + func CreateInstaller(distPath, targetVol string) error + func CreateSparseDiskImage(volumeName, diskPath string) (string, error) + func DiffVersion(v, w string) (string, error) + func Difference(l1 []T, l2 []T) (diff []T) + func DisplayImageInTerminal(r io.Reader, width, height int) error + func Dumper(w io.Writer, vaddr uint) io.WriteCloser + func ExtractFromDMG(ipswPath, dmgPath, destPath string, pattern *regexp.Regexp) ([]string, error) + func FilterStrFromSlice(slice []string, filter string) []string + func FilterStrSlice(slice []string, filter string) []string + func GetKernelCollectionPath() (string, error) + func GetKernelPath() (string, error) + func GetXCodePath() (string, error) + func GitClone(repo, dst string) (string, error) + func GitDiff(src, dst string, conf *GitDiffConfig) (string, error) + func GitRefresh(repoPath string) (string, error) + func GrepStrings(data []byte, searchStr string) []string + func HexDump(data []byte, vaddr uint64) string + func Indent(f func(s string), level int) func(string) + func InstallKDK(path string) error + func InstallXCodeSimRuntime(path string) error + func IsASCII(s string) bool + func IsAlnum(c byte) bool + func IsAlreadyMounted(image, mountPoint string) (string, bool, error) + func IsDeveloperImageMounted(udid string) error + func IsDeveloperModeEnabled(udid string) (bool, error) + func IsHex(c rune) bool + func IsLetter(c byte) bool + func IsPunctuation(c byte) bool + func IsSpace(c byte) bool + func KmutilCreate(conf *KMUConfig) (err error) + func Mount(image, mountPoint string) error + func MountDMG(image string) (string, bool, error) + func Pad(length int) string + func PickDevice() (*lockdownd.DeviceValues, error) + func PickDevices() ([]*lockdownd.DeviceValues, error) + func PkgUtilExpand(src, dst string) (string, error) + func PrintAsn1Data(data []byte) + func PrintCMSData(data []byte) + func RandomAgent() string + func RemoveStrFromSlice(s []string, r string) []string + func Retry(attempts int, sleep time.Duration, f func() error) (err error) + func Reverse(input []T) + func ReverseBytes(a []byte) []byte + func SearchFileName(name string, files []os.FileInfo) (os.FileInfo, error) + func SearchZip(files []*zip.File, pattern *regexp.Regexp, folder string, flat, progress bool) ([]string, error) + func Slugify(s string) string + func SortDevices(devices []string) []string + func SortFileNameAscend(files []os.FileInfo) + func SortFileNameDescend(files []os.FileInfo) + func SortMachoVersions(list []MachoVersion) + func SortVersions(list []string) + func StrContainsStrSliceItem(item string, slice []string) bool + func StrSliceAddSuffix(slice []string, suffix string) []string + func StrSliceContains(slice []string, item string) bool + func StrSliceHas(slice []string, item string) bool + func TrimPrefixStrSlice(slice []string, prefix string) []string + func Uint64SliceContains(slice []uint64, item uint64) bool + func UnTarGz(tarfile, destPath string) error + func UnicodeSanitize(s string) string + func Unique(s []T) []T + func UniqueAppend(slice []T, i T) []T + func UniqueConcat(slice []T, in []T) []T + func Unmount(mountPoint string, force bool) error + func Unzip(src, dest string, filter func(f *zip.File) bool) ([]string, error) + func Verify(sha1sum, name string) (bool, error) + type BuildInfo struct + BuildVersion string + ProductNames string + ProductVersion string + func GetBuildInfo() (*BuildInfo, error) + type ByMachoVersion []MachoVersion + func (vs ByMachoVersion) Len() int + func (vs ByMachoVersion) Less(i, j int) bool + func (vs ByMachoVersion) Swap(i, j int) + type ByVersion []string + func (vs ByVersion) Len() int + func (vs ByVersion) Less(i, j int) bool + func (vs ByVersion) Swap(i, j int) + type Device struct + Family string + Major int + Minor int + func DeconstructDevice(deviceName string) Device + func (d Device) String() string + type DeviceID struct + IOObjectClass string + IOObjectRetainCount int + IORegistryEntryChildren []IORegistryEntryChild + IORegistryEntryID int + IORegistryEntryName string + func GetDeviceID() (*DeviceID, error) + type Devices []Device + func (d Devices) Len() int + func (d Devices) Less(i, j int) bool + func (d Devices) Swap(i, j int) + type GitDiffConfig struct + Color bool + Tool string + type HdiUtilInfo struct + Framework string + Images []image + Revision string + Vendor string + func MountInfo() (*HdiUtilInfo, error) + func (i HdiUtilInfo) Mount(mount string) *image + type IORegistryEntryChild struct + BoardID []byte + BridgeModel []byte + ClockFrequency []byte + Compatible []byte + IOBusyInterest string + IOConsoleSecurityInterest string + IOInterruptControllers []string + IOInterruptSpecifiers [][]byte + IOObjectClass string + IOObjectRetainCount int + IOPlatformSerialNumber string + IOPlatformSystemSleepPolicy []byte + IOPlatformUUID string + IOPolledInterface string + IORegistryEntryID int + IORegistryEntryName string + IOServiceBusyState int + IOServiceBusyTime int + IOServiceState int + Manufacturer []byte + Model []byte + Name []byte + PlatformFeature []byte + ProductName []byte + SerialNumber []byte + SystemType []byte + TargetType []byte + Version []byte + func (e IORegistryEntryChild) String() string + type KMUConfig struct + Arch string + Exclude []string + KDK string + Kernel string + Name string + Suffix string + type MachoVersion struct + Name string + Version string + type Pair struct + First T + Second U + func Zip(ts []T, us []U) ([]Pair[T, U], error)