Versions in this module Expand all Collapse all v0 v0.3.0 Jun 26, 2023 Changes in this version type SystemMemData + Purgeablememory int64 v0.2.0 Jun 26, 2023 v0.1.0 Jun 26, 2023 Changes in this version + const ApplicationTypeAny + const ApplicationTypeInternal + const ApplicationTypeSystem + const ApplicationTypeUser + const CoordinateSystemBD09 + const CoordinateSystemGCJ02 + const CoordinateSystemWGS84 + const LockdownPort + var ErrAfcStatNotExist = errors.New("afc stat: no such file or directory") + func DeviceVersion(version ...int) int + func NewRemoteConnect(ip string, port int, timeout int) (*device, error) + func SetDebug(debug bool, libDebug ...bool) + type Afc interface + DiskInfo func() (diskInfo *AfcDiskInfo, err error) + Hash func(filePath string) ([]byte, error) + HashWithRange func(filePath string, start, end uint64) ([]byte, error) + Link func(oldName string, newName string, linkType AfcLinkType) (err error) + Mkdir func(path string) (err error) + Open func(filename string, mode AfcFileMode) (file *AfcFile, err error) + ReadDir func(dirname string) (names []string, err error) + Remove func(filePath string) (err error) + RemoveAll func(path string) (err error) + Rename func(oldPath string, newPath string) (err error) + SetFileModTime func(filePath string, modTime time.Time) (err error) + Stat func(filename string) (info *AfcFileInfo, err error) + Truncate func(filePath string, size int64) (err error) + WriteFile func(filename string, data []byte, perm AfcFileMode) (err error) + type AfcDiskInfo struct + BlockSize uint64 + FreeBytes uint64 + Model string + TotalBytes uint64 + type AfcFile struct + func (f *AfcFile) Close() (err error) + func (f *AfcFile) Lock(lockType AfcLockType) (err error) + func (f *AfcFile) Read(b []byte) (n int, err error) + func (f *AfcFile) Seek(offset int64, whence int) (ret int64, err error) + func (f *AfcFile) Tell() (n uint64, err error) + func (f *AfcFile) Truncate(size int64) (err error) + func (f *AfcFile) Unlock() (err error) + func (f *AfcFile) Write(b []byte) (n int, err error) + type AfcFileInfo struct + func (f *AfcFileInfo) CreationTime() time.Time + func (f *AfcFileInfo) IsDir() bool + func (f *AfcFileInfo) ModTime() time.Time + func (f *AfcFileInfo) Name() string + func (f *AfcFileInfo) Size() int64 + type AfcFileMode uint32 + const AfcFileModeAppend + const AfcFileModeRdAppend + const AfcFileModeRdOnly + const AfcFileModeRw + const AfcFileModeWr + const AfcFileModeWrOnly + type AfcLinkType int + const AfcLinkTypeHardLink + const AfcLinkTypeSymLink + type AfcLockType int + const AfcLockTypeExclusiveLock + const AfcLockTypeSharedLock + const AfcLockTypeUnlock + type AppLaunchOption func(option *appLaunchOption) + func WithAppPath(appPath string) AppLaunchOption + func WithArguments(arguments []interface{}) AppLaunchOption + func WithEnvironment(environment map[string]interface{}) AppLaunchOption + func WithKillExisting(b bool) AppLaunchOption + func WithOptions(options map[string]interface{}) AppLaunchOption + type AppListOption func(option *appListOption) + func WithAppsMatching(appsMatching map[string]interface{}) AppListOption + func WithUpdateToken(updateToken string) AppListOption + type Application struct + AppExtensionUUIDs []string + BundlePath string + CFBundleIdentifier string + ContainerBundleIdentifier string + ContainerBundlePath string + DisplayName string + ExecutableName string + Placeholder bool + PluginIdentifier string + PluginUUID string + Restricted int + Type string + Version string + type ApplicationType = libimobiledevice.ApplicationType + type CPUInfo struct + AttrCtxSwitch int64 + AttrIntWakeups int64 + CPUCount int + CPUUsage float64 + Mess string + Pid string + SysCpuUsage float64 + TimeStamp int64 + type CoordinateSystem = libimobiledevice.CoordinateSystem + type CrashReportMover interface + Move func(hostDir string, opts ...CrashReportMoverOption) (err error) + type CrashReportMoverOption func(opt *crashReportMoverOption) + func WithExtractRawCrashReport(b bool) CrashReportMoverOption + func WithKeepCrashReport(b bool) CrashReportMoverOption + func WithWhenMoveIsDone(whenDone func(filename string)) CrashReportMoverOption + type Device interface + AfcService func() (afc Afc, err error) + AppInstall func(ipaPath string) (err error) + AppKill func(pid int) (err error) + AppLaunch func(bundleID string, opts ...AppLaunchOption) (pid int, err error) + AppList func(opts ...AppListOption) (apps []Application, err error) + AppRunningProcesses func() (processes []Process, err error) + AppUninstall func(bundleID string) (err error) + DeletePairRecord func() (err error) + DeviceInfo func() (devInfo *DeviceInfo, err error) + GetIconPNGData func(bundleId string) (raw *bytes.Buffer, err error) + GetInterfaceOrientation func() (orientation OrientationState, err error) + GetValue func(domain, key string) (v interface{}, err error) + HouseArrestService func() (houseArrest HouseArrest, err error) + Images func(imgType ...string) (imageSignatures [][]byte, err error) + InstallationProxyBrowse func(opts ...InstallationProxyOption) (currentList []interface{}, err error) + InstallationProxyLookup func(opts ...InstallationProxyOption) (lookupResult interface{}, err error) + MountDeveloperDiskImage func(dmgPath string, signaturePath string) (err error) + MoveCrashReport func(hostDir string, opts ...CrashReportMoverOption) (err error) + NewConnect func(port int, timeout ...time.Duration) (InnerConn, error) + Pair func() (pairRecord *PairRecord, err error) + Pcap func() (packet <-chan []byte, err error) + PcapStop func() + PcapdService func() (pcapd Pcapd, err error) + PerfStart func(opts ...PerfOption) (data <-chan []byte, err error) + PerfStop func() + PowerSource func() (powerInfo map[string]interface{}, err error) + Properties func() DeviceProperties + QueryType func() (LockdownType, error) + ReadPairRecord func() (pairRecord *PairRecord, err error) + Reboot func() error + SavePairRecord func(pairRecord *PairRecord) (err error) + Screenshot func() (raw *bytes.Buffer, err error) + Share func(port int) error + Shutdown func() error + SimulateLocationRecover func() (err error) + SimulateLocationUpdate func(longitude float64, latitude float64, coordinateSystem ...CoordinateSystem) (err error) + Syslog func() (lines <-chan string, err error) + SyslogStop func() + WebInspectorService func() (webInspector WebInspector, err error) + XCTest func(bundleID string, opts ...XCTestOption) (out <-chan string, cancel context.CancelFunc, err error) + type DeviceInfo struct + Description string + DisplayName string + Identifier string + ProductType string + ProductVersion string + Version string + XRDeviceClassName string + type DeviceProperties = libimobiledevice.DeviceProperties + type DiagnosticsRelay interface + PowerSource func() (powerInfo map[string]interface{}, err error) + Reboot func() error + Shutdown func() error + type FPSData struct + FPS int + type FPSInfo struct + FPS int + TimeStamp int64 + type GPUData struct + DeviceUtilization int64 + RendererUtilization int64 + TilerUtilization int64 + type GPUInfo struct + DeviceUtilization int64 + RendererUtilization int64 + TilerUtilization int64 + TimeStamp int64 + type HouseArrest interface + Container func(bundleID string) (afc Afc, err error) + Documents func(bundleID string) (afc Afc, err error) + type ImageMounter interface + Images func(imgType string) (imageSignatures [][]byte, err error) + Mount func(imgType, devImgPath string, signatureData []byte) (err error) + UploadImage func(imgType, dmgPath string, signatureData []byte) (err error) + UploadImageAndMount func(imgType, devImgPath, dmgPath, signaturePath string) (err error) + type InnerConn = libimobiledevice.InnerConn + type InstallationProxy interface + Browse func(opts ...InstallationProxyOption) (currentList []interface{}, err error) + Install func(bundleID, packagePath string) (err error) + Lookup func(opts ...InstallationProxyOption) (lookupResult interface{}, err error) + Uninstall func(bundleID string) (err error) + type InstallationProxyOption func(*installationProxyOption) + func WithApplicationType(appType ApplicationType) InstallationProxyOption + func WithBundleIDs(BundleIDs ...string) InstallationProxyOption + func WithMetaData(b bool) InstallationProxyOption + func WithReturnAttributes(attrs ...string) InstallationProxyOption + type Instruments interface + AppKill func(pid int) (err error) + AppLaunch func(bundleID string, opts ...AppLaunchOption) (pid int, err error) + AppList func(opts ...AppListOption) (apps []Application, err error) + AppRunningProcesses func() (processes []Process, err error) + DeviceInfo func() (devInfo *DeviceInfo, err error) + type Lockdown interface + AfcService func() (afc Afc, err error) + CrashReportMoverService func() (crashReportMover CrashReportMover, err error) + DiagnosticsRelayService func() (diagnostics DiagnosticsRelay, err error) + EnterRecovery func() (err error) + GetValue func(domain, key string) (v interface{}, err error) + HouseArrestService func() (houseArrest HouseArrest, err error) + ImageMounterService func() (imageMounter ImageMounter, err error) + InstallationProxyService func() (installationProxy InstallationProxy, err error) + InstrumentsService func() (instruments Instruments, err error) + Pair func() (pairRecord *PairRecord, err error) + QueryType func() (LockdownType, error) + ScreenshotService func() (screenshot Screenshot, err error) + SetValue func(domain, key string, value interface{}) (err error) + SimulateLocationService func() (simulateLocation SimulateLocation, err error) + SpringBoardService func() (springBoard SpringBoard, err error) + SyslogRelayService func() (syslogRelay SyslogRelay, err error) + TestmanagerdService func() (testmanagerd Testmanagerd, err error) + WebInspectorService func() (webInspector WebInspector, err error) + type LockdownType = libimobiledevice.LockdownType + type MEMInfo struct + Anon int64 + Mess string + PhysMemory int64 + Rss int64 + TimeStamp int64 + Vss int64 + type NetWorkingInfo struct + RxBytes int64 + RxPackets int64 + TimeStamp int64 + TxBytes int64 + TxPackets int64 + type NetworkDataConnectionDetected struct + InterfaceIndex int64 + Kind int64 + LocalAddress string + Pid int64 + RecvBufferSize int64 + RecvBufferUsed int64 + RemoteAddress string + SerialNumber int64 + type NetworkDataConnectionUpdate struct + AvgRTT int64 + ConnectionSerial int64 + MinRTT int64 + RxBytes int64 + RxDups int64 + RxOOO int64 + RxPackets int64 + TxBytes int64 + TxPackets int64 + TxRetx int64 + type NetworkDataInterfaceDetection struct + InterfaceIndex int64 + Name string + type OrientationState = libimobiledevice.OrientationState + type PairRecord = libimobiledevice.PairRecord + type Pcapd interface + Packet func() <-chan []byte + Stop func() + type PerfDataBase struct + Msg string + TimeStamp int64 + Type string + type PerfOption func(*PerfOptions) + func WithPerfBundleID(bundleID string) PerfOption + func WithPerfFPS(b bool) PerfOption + func WithPerfGPU(b bool) PerfOption + func WithPerfNetwork(b bool) PerfOption + func WithPerfOutputInterval(intervalMilliseconds int) PerfOption + func WithPerfPID(pid int) PerfOption + func WithPerfProcessAttributes(attrs ...string) PerfOption + func WithPerfSystemAttributes(attrs ...string) PerfOption + func WithPerfSystemCPU(b bool) PerfOption + func WithPerfSystemDisk(b bool) PerfOption + func WithPerfSystemMem(b bool) PerfOption + func WithPerfSystemNetwork(b bool) PerfOption + type PerfOptions struct + BundleID string + FPS bool + Network bool + OutputInterval int + Pid int + ProcessAttributes []string + SysCPU bool + SysDisk bool + SysMem bool + SysNetwork bool + SystemAttributes []string + type Perfd interface + Start func() (data <-chan []byte, err error) + Stop func() + type PerfmonOption struct + OpenChanCPU bool + OpenChanFPS bool + OpenChanGPU bool + OpenChanMEM bool + OpenChanNetWork bool + PID string + type Process struct + IsApplication bool + Name string + Pid int + RealAppName string + StartDate time.Time + type Screenshot interface + Take func() (raw *bytes.Buffer, err error) + type SimulateLocation interface + Recover func() (err error) + Update func(longitude float64, latitude float64, coordinateSystem ...CoordinateSystem) (err error) + type SpringBoard interface + GetIconPNGData func(bundleId string) (raw *bytes.Buffer, err error) + GetInterfaceOrientation func() (orientation OrientationState, err error) + type SyslogRelay interface + Lines func() <-chan string + Stop func() + type SystemCPUData struct + CpuCoreNum uint64 + NiceLoad float64 + SystemLoad float64 + TotalLoad float64 + UserLoad float64 + type SystemDiskData struct + DataRead int64 + DataWritten int64 + ReadOps int64 + WriteOps int64 + type SystemMemData struct + AppMemory int64 + CachedFiles int64 + Compressed int64 + FreeMemory int64 + SwapUsed int64 + TotalMemory int64 + UsedMemory int64 + WiredMemory int64 + type SystemNetworkData struct + BytesIn int64 + BytesOut int64 + PacketsIn int64 + PacketsOut int64 + type Testmanagerd interface + type Usbmux interface + Devices func() ([]Device, error) + Listen func(chan Device) (context.CancelFunc, error) + ReadBUID func() (string, error) + func NewUsbmux() (Usbmux, error) + type WebInspector interface + ReceiveWebkitMsg func() (response interface{}, err error) + SendWebkitMsg func(selector string, args interface{}) error + SetPartialsMaxLength func(maxLent int) + SetPartialsSupported func(isCompleteSupported bool) + type XCTestManagerDaemon interface + type XCTestOption func(opt *xcTestOption) + func WithXCTestEnv(env map[string]interface{}) XCTestOption + func WithXCTestOpt(appOpt map[string]interface{}) XCTestOption