Help us shape the future of Go! Take the 2026 Go Developer Survey

info

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorCryptexNotFound = errors.New("cryptex not found")

Functions

func ScrapeURLs

func ScrapeURLs(build string) error

ScrapeURLs will scrape the iPhone Wiki for beta firmwares

Types

type Board

type Board struct {
	CPU               string `json:"cpu,omitempty"`
	Platform          string `json:"platform,omitempty"`
	PlatformName      string `json:"platform_name,omitempty"`
	ChipID            string `json:"cpuid,omitempty"`
	Arch              string `json:"arch,omitempty"`
	CpuISA            string `json:"cpuisa,omitempty"`
	BoardID           string `json:"board_id,omitempty"`
	BasebandChipID    string `json:"bbid,omitempty"`
	KernelCacheType   string `json:"kc_type,omitempty"`
	ResearchSupported bool   `json:"research_support,omitempty"`
}

type Device

type Device struct {
	Name        string           `json:"name,omitempty"`
	Description string           `json:"desc,omitempty"`
	Boards      map[string]Board `json:"boards,omitempty"`
	MemClass    uint64           `json:"mem_class,omitempty"`
	SDKPlatform string           `json:"sdk,omitempty"`
	Type        string           `json:"type,omitempty"`
}

type Devices

type Devices map[string]Device

func GetIpswDB

func GetIpswDB() (*Devices, error)

func (Devices) GetDeviceForName

func (ds Devices) GetDeviceForName(name string) (string, Device, error)

func (Devices) GetDevicesForSDK

func (ds Devices) GetDevicesForSDK(sdk string) (*Devices, error)

func (Devices) GetDevicesForType

func (ds Devices) GetDevicesForType(typ string) (*Devices, error)

func (Devices) GetProductForModel

func (ds Devices) GetProductForModel(model string) (string, error)

func (Devices) LookupDevice

func (ds Devices) LookupDevice(prod string) (Device, error)

type Info

type Info struct {
	Plists      *plist.Plists
	DeviceTrees map[string]*devicetree.DeviceTree
}

Info in the info object

func Parse

func Parse(ipswPath string) (*Info, error)

Parse parses plist files in a local ipsw file

func ParseZipFiles

func ParseZipFiles(files []*zip.File) (*Info, error)

ParseZipFiles parses plist files and devicetree in a remote zip file

func (*Info) GetAppOsDmg

func (i *Info) GetAppOsDmg() (string, error)

GetAppOsDmg returns the name of the AppOS dmg

func (*Info) GetCPU

func (i *Info) GetCPU(board string) string

GetOsDmg returns the name of the OS dmg

func (*Info) GetDevices

func (i *Info) GetDevices(devs *Devices) error

func (*Info) GetDevicesForKernelCache

func (i *Info) GetDevicesForKernelCache(kc string) []string

GetDevicesForKernelCache returns a sorted array of devices that support the kernelcache

func (*Info) GetDevicesFromMap

func (i *Info) GetDevicesFromMap(dmap *types.DeviceMap, devs *Devices) error

func (*Info) GetFileSystemOsDmg

func (i *Info) GetFileSystemOsDmg() (string, error)

GetFileSystemOsDmg returns the name of the file system dmg

func (*Info) GetFolder

func (i *Info) GetFolder() (string, error)

GetFolder returns a folder name for all the devices included in an IPSW

func (*Info) GetFolderForFile

func (i *Info) GetFolderForFile(fileName string) (string, error)

GetFolderForFile returns a list of the IPSW name folders for a given file

func (*Info) GetFolders

func (i *Info) GetFolders() ([]string, error)

GetFolders returns a list of the IPSW name folders

func (*Info) GetKernelCacheFileName

func (i *Info) GetKernelCacheFileName(kc string) string

GetKernelCacheFileName returns a short new kernelcache name including all the supported devices

func (*Info) GetKernelCacheFolders

func (i *Info) GetKernelCacheFolders(kc string) ([]string, error)

GetKernelCacheFolders returns the folders belonging to a KernelCache

func (*Info) GetRestoreRamDiskDmgs

func (i *Info) GetRestoreRamDiskDmgs() ([]string, error)

GetRestoreRamDiskDmgs returns the name of the RestoreRamDisk dmg

func (*Info) GetSystemOsDmg

func (i *Info) GetSystemOsDmg() (string, error)

GetSystemOsDmg returns the name of the SystemOS dmg (the one with the dyld_shared_cache(s))

func (*Info) String

func (i *Info) String() string

func (*Info) ToJSON

func (i *Info) ToJSON() InfoJSON

type InfoJSON

type InfoJSON struct {
	Type    string `json:"type,omitempty"`
	Version string `json:"version,omitempty"`
	Build   string `json:"build,omitempty"`
	OS      string `json:"os,omitempty"`
	Devices any    `json:"devices,omitempty"`
	Error   string `json:"error,omitempty"`
}

type Processors

type Processors struct {
	Name          string
	Model         string
	Semiconductor string
	DieSize       string
	Transistors   string
	CPUISA        string
	CPU           string
	CPUCache      string
	GPU           string
	AIAccelerator string
	Memory        string
	Introduced    string
	Devices       string
}

Processors stores information about processors

Jump to

Keyboard shortcuts

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