types

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	ActualMinimumSystemPartition          int                `json:"ActualMinimumSystemPartition" plist:"ActualMinimumSystemPartition,omitempty"`
	AutoUpdate                            bool               `json:"AutoUpdate" plist:"AutoUpdate,omitempty"`
	AssetType                             string             `json:"AssetType" plist:"AssetType,omitempty"`
	BridgeVersionInfo                     bridgeVersionInfo  `json:"BridgeVersionInfo,omitempty" plist:"BridgeVersionInfo,omitempty"`
	Build                                 string             `json:"Build" plist:"Build,omitempty"`
	DataTemplateSize                      int                `json:"DataTemplateSize" plist:"DataTemplateSize,omitempty"`
	InstallationSize                      string             `json:"InstallationSize" plist:"InstallationSize,omitempty"`
	InstallationSizeSnapshot              string             `json:"InstallationSize-Snapshot" plist:"InstallationSize-Snapshot,omitempty"`
	MinimumSystemPartition                int                `json:"MinimumSystemPartition" plist:"MinimumSystemPartition,omitempty"`
	OSVersion                             string             `json:"OSVersion" plist:"OSVersion,omitempty"`
	PreflightBuildManifest                []byte             `json:"PreflightBuildManifest" plist:"PreflightBuildManifest,omitempty"`
	PreflightGlobalSignatures             []byte             `json:"PreflightGlobalSignatures" plist:"PreflightGlobalSignatures,omitempty"`
	RestoreVersion                        string             `json:"RestoreVersion,omitempty" plist:"RestoreVersion,omitempty"`
	RestoreVersionInfo                    restoreVersionInfo `json:"RestoreVersionInfo,omitempty" plist:"RestoreVersionInfo,omitempty"`
	PrerequisiteBuild                     string             `json:"PrerequisiteBuild" plist:"PrerequisiteBuild,omitempty"`
	PrerequisiteOSVersion                 string             `json:"PrerequisiteOSVersion" plist:"PrerequisiteOSVersion,omitempty"`
	ProductVersionExtra                   string             `json:"ProductVersionExtra" plist:"ProductVersionExtra,omitempty"`
	RSEPDigest                            []byte             `json:"RSEPDigest" plist:"RSEPDigest,omitempty"`
	Ramp                                  bool               `json:"Ramp" plist:"Ramp,omitempty"`
	RescueMinimumSystemPartition          int                `json:"RescueMinimumSystemPartition" plist:"RescueMinimumSystemPartition,omitempty"`
	SEPDigest                             []byte             `json:"SEPDigest" plist:"SEPDigest,omitempty"`
	ConvReqd                              bool               `json:"SUConvReqd" plist:"SUConvReqd,omitempty"`
	DocumentationID                       string             `json:"SUDocumentationID" plist:"SUDocumentationID,omitempty"`
	ReleaseType                           string             `json:"ReleaseType" plist:"ReleaseType,omitempty"`
	InstallTonightEnabled                 bool               `json:"SUInstallTonightEnabled" plist:"SUInstallTonightEnabled,omitempty"`
	MultiPassEnabled                      bool               `json:"SUMultiPassEnabled" plist:"SUMultiPassEnabled,omitempty"`
	ProductSystemName                     string             `json:"SUProductSystemName" plist:"SUProductSystemName,omitempty"`
	Publisher                             string             `json:"SUPublisher" plist:"SUPublisher,omitempty"`
	SplatOnly                             bool               `json:"SplatOnly" plist:"SplatOnly,omitempty"`
	SupportedDeviceModels                 []string           `json:"SupportedDeviceModels" plist:"SupportedDeviceModels,omitempty"`
	SupportedDevices                      []string           `json:"SupportedDevices" plist:"SupportedDevices,omitempty"`
	SystemPartitionPadding                map[string]int     `json:"SystemPartitionPadding" plist:"SystemPartitionPadding,omitempty"`
	SystemVolumeSealingOverhead           int                `json:"SystemVolumeSealingOverhead" plist:"SystemVolumeSealingOverhead,omitempty"`
	TargetUpdateBridgeVersion             string             `json:"TargetUpdateBridgeVersion" plist:"TargetUpdateBridgeVersion,omitempty"`
	AssetReceipt                          assetReceipt       `json:"_AssetReceipt" plist:"_AssetReceipt,omitempty"`
	CompressionAlgorithm                  string             `json:"_CompressionAlgorithm" plist:"_CompressionAlgorithm,omitempty"`
	DownloadSize                          int                `json:"_DownloadSize" plist:"_DownloadSize,omitempty"`
	EventRecordingServiceURL              string             `json:"_EventRecordingServiceURL" plist:"_EventRecordingServiceURL,omitempty"`
	IsZipStreamable                       bool               `json:"_IsZipStreamable" plist:"_IsZipStreamable,omitempty"`
	MasteredVersion                       string             `json:"_MasteredVersion" plist:"_MasteredVersion,omitempty"`
	Hash                                  []byte             `json:"_Measurement" plist:"_Measurement,omitempty"`
	HashAlgorithm                         string             `json:"_MeasurementAlgorithm" plist:"_MeasurementAlgorithm,omitempty"`
	UnarchivedSize                        int                `json:"_UnarchivedSize" plist:"_UnarchivedSize,omitempty"`
	AssetDefaultGarbageCollectionBehavior string             `json:"__AssetDefaultGarbageCollectionBehavior" plist:"__AssetDefaultGarbageCollectionBehavior,omitempty"`
	BaseURL                               string             `json:"__BaseURL" plist:"__BaseURL,omitempty"`
	CanUseLocalCacheServer                bool               `json:"__CanUseLocalCacheServer" plist:"__CanUseLocalCacheServer,omitempty"`
	HideInstallAlert                      bool               `json:"__HideInstallAlert" plist:"__HideInstallAlert,omitempty"`
	QueuingServiceURL                     string             `json:"__QueuingServiceURL" plist:"__QueuingServiceURL,omitempty"`
	RelativePath                          string             `json:"__RelativePath" plist:"__RelativePath,omitempty"`
	// extras
	DeviceName             string `plist:"DeviceName,omitempty"`
	FirmwareBundle         string `plist:"FirmwareBundle,omitempty"`
	FirmwareVersionMajor   int    `plist:"FirmwareVersionMajor,omitempty"`
	FirmwareVersionMinor   int    `plist:"FirmwareVersionMinor,omitempty"`
	FirmwareVersionRelease int    `plist:"FirmwareVersionRelease,omitempty"`
	Devices                []string
}

Asset is an OTA asset object

func (Asset) MarshalJSON

func (a Asset) MarshalJSON() ([]byte, error)

func (Asset) String

func (a Asset) String() string

func (Asset) Version

func (a Asset) Version() string

type Device

type Device struct {
	ANE1FirmwareType              string                 `plist:"ANE1FirmwareType,omitempty"`
	ANEFirmwareType               string                 `plist:"ANEFirmwareType,omitempty"`
	ANS2FirmwareType              string                 `plist:"ANS2FirmwareType,omitempty"`
	AOPFirmwareType               string                 `plist:"AOPFirmwareType,omitempty"`
	AcousticId                    string                 `plist:"AcousticId,omitempty"`
	AllowSDKPlatformFallback      bool                   `plist:"AllowSDKPlatformFallback,omitempty"`
	ArtworkDeviceIdiom            string                 `plist:"ArtworkDeviceIdiom,omitempty"`
	ArtworkDeviceSubtype          string                 `plist:"ArtworkDeviceSubtype,omitempty"`
	ArtworkDisplayGamut           string                 `plist:"ArtworkDisplayGamut,omitempty"`
	ArtworkScaleFactor            string                 `plist:"ArtworkScaleFactor,omitempty"`
	AudioChimeType                string                 `plist:"AudioChimeType,omitempty"`
	BMUBoardID                    string                 `plist:"BMU,BoardID,omitempty"`
	BMUChipID                     string                 `plist:"BMU,ChipID,omitempty"`
	BasebandChipID                string                 `plist:"BasebandChipID,omitempty"`
	BbActivationManifestKeyHash   []byte                 `plist:"BbActivationManifestKeyHash,omitempty"`
	BbCanFuse                     bool                   `plist:"BbCanFuse,omitempty"`
	BbCanPersonalizeLocally       bool                   `plist:"BbCanPersonalizeLocally,omitempty"`
	BbCanPersonalizeWithServer    bool                   `plist:"BbCanPersonalizeWithServer,omitempty"`
	BbCanUpdate                   bool                   `plist:"BbCanUpdate,omitempty"`
	BbFDRSecurityKeyHash          []byte                 `plist:"BbFDRSecurityKeyHash,omitempty"`
	BbFirmwareInSystemPartition   bool                   `plist:"BbFirmwareInSystemPartition,omitempty"`
	BbProvisioningManifestKeyHash []byte                 `plist:"BbProvisioningManifestKeyHash,omitempty"`
	BitmapType                    string                 `plist:"BitmapType,omitempty"`
	BoardID                       string                 `plist:"BoardID,omitempty"`
	BuildVariants                 interface{}            `plist:"BuildVariants,omitempty"`
	CIOFirmwareType               string                 `plist:"CIOFirmwareType,omitempty"`
	ChipID                        string                 `plist:"ChipID,omitempty"`
	CompatibleAppVariant          string                 `plist:"CompatibleAppVariant,omitempty"`
	CompatibleFallbackProductType string                 `plist:"CompatibleFallbackProductType,omitempty"`
	ConserveBootFlash             bool                   `plist:"ConserveBootFlash,omitempty"`
	CoprocessorProperties         string                 `plist:"CoprocessorProperties,omitempty"`
	CryptoHashMethod              string                 `plist:"CryptoHashMethod,omitempty"`
	DCPFirmwareType               string                 `plist:"DCPFirmwareType,omitempty"`
	DevicePerformanceMemoryClass  string                 `plist:"DevicePerformanceMemoryClass,omitempty"`
	DiagsFile                     string                 `plist:"DiagsFile,omitempty"`
	DiagsProject                  string                 `plist:"DiagsProject,omitempty"`
	DisableAOP                    bool                   `plist:"DisableAOP,omitempty"`
	EnableANE                     bool                   `plist:"EnableANE,omitempty"`
	EnableANE1                    bool                   `plist:"EnableANE1,omitempty"`
	EnableANE2                    bool                   `plist:"EnableANE2,omitempty"`
	EnableANE3                    bool                   `plist:"EnableANE3,omitempty"`
	EnableANS2                    bool                   `plist:"EnableANS2,omitempty"`
	EnableCIO                     bool                   `plist:"EnableCIO,omitempty"`
	EnableDCP                     bool                   `plist:"EnableDCP,omitempty"`
	EnableGFX                     bool                   `plist:"EnableGFX,omitempty"`
	EnableISP                     bool                   `plist:"EnableISP,omitempty"`
	EnablePMP                     bool                   `plist:"EnablePMP,omitempty"`
	EnableTMU                     bool                   `plist:"EnableTMU,omitempty"`
	FDRAllowClaimFailure          bool                   `plist:"FDRAllowClaimFailure,omitempty"`
	FDRSupport                    bool                   `plist:"FDRSupport,omitempty"`
	FUDUsesiBootLoading           bool                   `plist:"FUDUsesiBootLoading,omitempty"`
	GFXFirmwareType               string                 `plist:"GFXFirmwareType,omitempty"`
	GPUPipeline                   string                 `plist:"GPUPipeline,omitempty"`
	GraphicsFeatureSetClass       string                 `plist:"GraphicsFeatureSetClass,omitempty"`
	GraphicsFeatureSetFallbacks   string                 `plist:"GraphicsFeatureSetFallbacks,omitempty"`
	HasACI                        bool                   `plist:"HasACI,omitempty"`
	HasBootChime                  bool                   `plist:"HasBootChime,omitempty"`
	HasExternalSensorModule1      bool                   `plist:"HasExternalSensorModule1,omitempty"`
	HasFUDPhleet                  bool                   `plist:"HasFUDPhleet,omitempty"`
	HasHapticAssets               bool                   `plist:"HasHapticAssets,omitempty"`
	HasHomer                      bool                   `plist:"HasHomer,omitempty"`
	HasIOExtensionModule1         bool                   `plist:"HasIOExtensionModule1,omitempty"`
	HasIOHubMaster                bool                   `plist:"HasIOHubMaster,omitempty"`
	HasIOHubSlave                 bool                   `plist:"HasIOHubSlave,omitempty"`
	HasInputDevice                bool                   `plist:"HasInputDevice,omitempty"`
	HasLeapHaptics                bool                   `plist:"HasLeapHaptics,omitempty"`
	HasLiquidDetection            bool                   `plist:"HasLiquidDetection,omitempty"`
	HasLowPowerExpressMode        bool                   `plist:"HasLowPowerExpressMode,omitempty"`
	HasLowPowerFindMyMode         bool                   `plist:"HasLowPowerFindMyMode,omitempty"`
	HasLpemBT                     bool                   `plist:"HasLpemBT,omitempty"`
	HasMConnector                 bool                   `plist:"HasMConnector,omitempty"`
	HasMTP                        bool                   `plist:"HasMTP,omitempty"`
	HasMacEFIFirmware             bool                   `plist:"HasMacEFIFirmware,omitempty"`
	HasPowerAttachChime           bool                   `plist:"HasPowerAttachChime,omitempty"`
	HasRTP                        bool                   `plist:"HasRTP,omitempty"`
	HasRTPDarwin                  bool                   `plist:"HasRTPDarwin,omitempty"`
	HasRestoreRTP                 bool                   `plist:"HasRestoreRTP,omitempty"`
	HasRoseSEPairing              bool                   `plist:"HasRoseSEPairing,omitempty"`
	HasSCE                        bool                   `plist:"HasSCE,omitempty"`
	HasSCE1                       bool                   `plist:"HasSCE1,omitempty"`
	HasSiValAlias                 bool                   `plist:"HasSiValAlias,omitempty"`
	HasSoftwareBinaryDsp2         bool                   `plist:"HasSoftwareBinaryDsp2,omitempty"`
	HasVendorBuild                bool                   `plist:"HasVendorBuild,omitempty"`
	HasWirelessPowerFirmware      bool                   `plist:"HasWirelessPowerFirmware,omitempty"`
	HibernationSupport            bool                   `plist:"HibernationSupport,omitempty"`
	ISPFirmwareType               string                 `plist:"ISPFirmwareType,omitempty"`
	ImageFormat                   string                 `plist:"ImageFormat,omitempty"`
	InternalTarget                bool                   `plist:"InternalTarget,omitempty"`
	IsHosted                      bool                   `plist:"IsHosted,omitempty"`
	IsVirtualPlatform             bool                   `plist:"IsVirtualPlatform,omitempty"`
	KernelCacheType               string                 `plist:"KernelCacheType,omitempty"`
	KernelMachOArchitecture       string                 `plist:"KernelMachOArchitecture,omitempty"`
	KernelPlatform                string                 `plist:"KernelPlatform,omitempty"`
	KernelType                    string                 `plist:"KernelType,omitempty"`
	MLBType                       string                 `plist:"MLBType,omitempty"`
	MTPProject                    string                 `plist:"MTPProject,omitempty"`
	MacEFIFirmwareType            string                 `plist:"MacEFIFirmwareType,omitempty"`
	Manifest                      map[string]interface{} `plist:"Manifest,omitempty"`
	MobileDeviceMinVersion        string                 `plist:"MobileDeviceMinVersion,omitempty"`
	MultitouchFirmwareProject     string                 `plist:"MultitouchFirmwareProject,omitempty"`
	NumTimers                     string                 `plist:"NumTimers,omitempty"`
	OSRamdiskSupport              bool                   `plist:"OSRamdiskSupport,omitempty"`
	PMPFirmwareType               string                 `plist:"PMPFirmwareType,omitempty"`
	PearlCertificationRootPub     []byte                 `plist:"PearlCertificationRootPub,omitempty"`
	Platform                      string                 `plist:"Platform,omitempty"`
	PlatformGeneration            string                 `plist:"PlatformGeneration,omitempty"`
	PlatformName                  string                 `plist:"PlatformName,omitempty"`
	ProductDescription            string                 `plist:"ProductDescription,omitempty"`
	ProductID                     string                 `plist:"ProductID,omitempty"`
	ProductName                   string                 `plist:"ProductName,omitempty"`
	ProductNameOverride           string                 `plist:"ProductNameOverride,omitempty"`
	ProductType                   string                 `plist:"ProductType,omitempty"`
	RapBoardID                    string                 `plist:"Rap,BoardID,omitempty"`
	RapChipID                     string                 `plist:"Rap,ChipID,omitempty"`
	RapSecurityDomain             string                 `plist:"Rap,SecurityDomain,omitempty"`
	RequiresAudioCodecFirmware    bool                   `plist:"RequiresAudioCodecFirmware,omitempty"`
	RequiresUIDMode               bool                   `plist:"RequiresUIDMode,omitempty"`
	ResearchSupported             bool                   `plist:"ResearchSupported,omitempty"`
	RoseTarget                    string                 `plist:"RoseTarget,omitempty"`
	SDKPlatform                   string                 `plist:"SDKPlatform,omitempty"`
	SEChipID                      string                 `plist:"SE,ChipID,omitempty"`
	SEPPKASupport                 bool                   `plist:"SEPPKASupport,omitempty"`
	SEPSiKASupport                bool                   `plist:"SEPSiKASupport,omitempty"`
	SandmanSupport                bool                   `plist:"SandmanSupport,omitempty"`
	SavageChipID                  string                 `plist:"Savage,ChipID,omitempty"`
	SavagePatchEpoch              string                 `plist:"Savage,PatchEpoch,omitempty"`
	SecurityDomain                string                 `plist:"SecurityDomain,omitempty"`
	SecurityEpoch                 string                 `plist:"SecurityEpoch,omitempty"`
	SingleStageBoot               bool                   `plist:"SingleStageBoot,omitempty"`
	TicketPrefix                  string                 `plist:"TicketPrefix,omitempty"`
	StorageType                   string                 `plist:"StorageType,omitempty"`
	SyscfgFDRDataClasses          string                 `plist:"SyscfgFDRDataClasses,omitempty"`
	VeridianTarget                string                 `plist:"VeridianTarget,omitempty"`
	WirelessPowerFirmwareType     string                 `plist:"WirelessPowerFirmwareType,omitempty"`
	EUICCChipID                   string                 `plist:"eUICC,ChipID,omitempty"`
	IBootType                     string                 `plist:"iBootType,omitempty"`
}

Device is an OTA device object

func (Device) String

func (d Device) String() string

type DeviceMap

type DeviceMap map[string]*Device

DeviceMap is an OTA device map object

func ParseDeviceMap

func ParseDeviceMap(data []byte) (*DeviceMap, error)

func (DeviceMap) String

func (dm DeviceMap) String() string

Jump to

Keyboard shortcuts

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