Documentation
¶
Overview ¶
device is a library for getting information about apple's iOS devices
ipsw is for doing things with IPSWs
Index ¶
- func NewiTunesVersionMaster() *iTunesVersionMaster
- func ReadFile(reader *zip.Reader, file string) (result []byte, err error)
- type BuildInformation
- type BuildNumber
- type Device
- type DeviceIdentifier
- type IPSW
- type IPSWProperties
- type IndividualBuild
- type IndividualDevice
- type Restore
- type VersionWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewiTunesVersionMaster ¶
func NewiTunesVersionMaster() *iTunesVersionMaster
creates a new iTunesVersionMaster struct, parsed and ready to use
Types ¶
type BuildInformation ¶
type BuildInformation struct {
Restore *IndividualBuild
Update *IndividualBuild
SameAs BuildNumber
OfferRestoreAsUpdate bool
}
type BuildNumber ¶
type BuildNumber string
type Device ¶
type Device struct {
Identifier string
BDID int
BoardConfig string
CPID int
Platform string
SCEP int
DeviceClass string
}
func (*Device) DeviceInfo ¶
Populates device given an identifier. Does so by finding a software URL for the identifier
func (*Device) DeviceInfoGivenURL ¶
Populates device given the URL for the device
type DeviceIdentifier ¶
type DeviceIdentifier string
type IPSW ¶
type IPSW struct {
DownloadURL string
Properties *IPSWProperties
}
func (*IPSW) GetRestorePlist ¶
Get the restore Plist from the IPSW
func (*IPSW) PopulateInfo ¶
PopulateInfo gets the information about the IPSW from the path
func (*IPSW) PopulateInfoGivenBuild ¶
func (ip *IPSW) PopulateInfoGivenBuild(build *IndividualBuild)
type IPSWProperties ¶
type IndividualBuild ¶
type IndividualBuild struct {
BuildVersion BuildNumber
DocumentationURL string
FirmwareURL string
FirmwareSHA1 string
ProductVersion string
}
type IndividualDevice ¶
type Restore ¶
type Restore struct {
DeviceClass string
Devices []*IndividualDevice `plist:"DeviceMap"`
ProductBuildVersion string
ProductType string
ProductVersion string
}
type VersionWrapper ¶
type VersionWrapper struct {
MobileDeviceSoftwareVersions map[DeviceIdentifier]map[BuildNumber]*BuildInformation
}
Click to show internal directories.
Click to hide internal directories.