search

package
v0.0.0-prerelease Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForEachFileInIPSW

func ForEachFileInIPSW(ipswPath, directory, pemDB string, handler func(string, string) error) error

func ForEachIm4pInIPSW

func ForEachIm4pInIPSW(ipswPath string, handler func(string, *macho.File) error) error

ForEachIm4pInIPSW walks the IPSW and calls the handler for each im4p firmware macho file found

func ForEachMacho

func ForEachMacho(folder string, handler func(string, *macho.File) error) error

ForEachMacho walks the folder and calls the handler for each macho file found

func ForEachMachoInIPSW

func ForEachMachoInIPSW(ipswPath, pemDbPath string, handler func(string, *macho.File) error) error

ForEachMachoInIPSW walks the IPSW and calls the handler for each macho file found

func ForEachPlistInIPSW

func ForEachPlistInIPSW(ipswPath, directory, pemDB string, handler func(string, string) error) error

func ScanAllDMGs

func ScanAllDMGs(ipswPath, pemDB string, betweenHandlers func(int), handlers ...func(string, string) error) error

ScanAllDMGs runs handlers across files in every DMG. If betweenHandlers != nil, fire it after each handler (per DMG) for TUIs.

func ScanDmgWithMultipleHandlers

func ScanDmgWithMultipleHandlers(ipswPath, dmgPath, dmgType, pemDB string, handlers ...func(string, string) error) error

ScanDmgWithMultipleHandlers mounts once and runs multiple handlers per file. Why: multi-pass scans without repeated mounts.

func ScanDmgWithMultipleHandlersAndCallback

func ScanDmgWithMultipleHandlersAndCallback(ipswPath, dmgPath, dmgType, pemDB string, betweenHandlers func(int), handlers ...func(string, string) error) error

ScanDmgWithMultipleHandlersAndCallback also runs a callback after each pass. Why: TUIs can publish totals/state between passes.

Types

type DmgInfo

type DmgInfo struct {
	Name string
	Path string
}

DmgInfo provides a name/path pair for a DMG contained in an IPSW.

func ListDMGs

func ListDMGs(ipswPath string) ([]DmgInfo, error)

ListDMGs returns known DMGs in a stable order. Why: call sites often need the same enumeration.

Jump to

Keyboard shortcuts

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