Documentation
¶
Index ¶
- Constants
- type AccountDevice
- type Accounts
- type AppleAccount
- type Certificate
- type Device
- type DeviceClass
- type DeviceConnection
- type DeviceInfo
- type DeviceStatus
- type InstalledApp
- type IpaFile
- type LockdownDevice
- type Message
- type MobileProvisioningProfile
- type RefreshedError
- type RemoteDevice
- type ServiceStatus
Constants ¶
View Source
const ( Unpaired DeviceStatus = "unpaired" Paired DeviceStatus = "paired" Pairable DeviceStatus = "pairable" DeviceClassiPhone DeviceClass = "iPhone" DeviceClassiPad DeviceClass = "iPad" DeviceClassAppleTV DeviceClass = "AppleTV" DeviceConnectionLockdown DeviceConnection = "Lockdown" DeviceConnectionRemote DeviceConnection = "RPPairing" )
View Source
const ( MessageTypeInstall = 1 MessageType2FA = 2 MessageTypeLogin = 1 MessageTypePair = 1 MessageTypePairConfirm = 2 )
Message.Type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountDevice ¶ added in v0.3.0
type Accounts ¶ added in v0.3.0
type Accounts struct {
Accounts map[string]AppleAccount `json:"accounts"`
}
type AppleAccount ¶ added in v0.3.0
type Certificate ¶ added in v0.3.0
type Certificate struct {
SerialNumber string `json:"serialNumber"`
Name string `json:"name"`
MachineName string `json:"machineName"`
Status string `json:"status"`
InUse bool `json:"inUse"`
Type string `json:"type"`
ExpirationDate string `json:"expirationDate"`
CreatedDate string `json:"createdDate"`
}
type Device ¶
type Device struct {
ID string `json:"id"`
Name string `json:"name"`
ServiceName string `json:"service_name"`
IP string `json:"ip"`
Port uint16 `json:"port,omitempty"`
MacAddr string `json:"mac_addr"`
UDID string `json:"udid"`
Connection DeviceConnection `json:"connection"`
Status DeviceStatus `json:"status"`
Enable bool `json:"enable"`
Message string `json:"message"`
DeviceClass string `json:"device_class"`
ProductType string `json:"product_type"`
ProductVersion string `json:"product_version"`
DeveloperModeStatus bool `json:"developer_mode_status"`
PersonalizedImageMounted bool `json:"personalized_image_mounted"`
DiscoveryAt time.Time `json:"-"`
}
func (*Device) ParseDeviceClass ¶ added in v0.3.0
func (d *Device) ParseDeviceClass()
type DeviceClass ¶ added in v0.3.0
type DeviceClass string
type DeviceConnection ¶ added in v0.4.0
type DeviceConnection string
type DeviceInfo ¶ added in v0.3.0
type DeviceInfo struct {
UniqueDeviceID string `json:"unique_device_id"`
DeviceName string `json:"device_name"`
DeviceClass string `json:"device_class"`
ProductName string `json:"product_name"`
ProductType string `json:"product_type"`
ProductVersion string `json:"product_version"`
SerialNumber string `json:"serial_number"`
WiFiAddress string `json:"wifi_address"`
DeveloperModeStatus bool `json:"developer_mode_status"`
PersonalizedImageMounted bool `json:"personalized_image_mounted"`
}
type DeviceStatus ¶
type DeviceStatus string
type InstalledApp ¶
type InstalledApp struct {
gorm.Model
IpaName string `json:"ipa_name"`
IpaPath string `json:"ipa_path"`
Description string `json:"description,omitempty"`
Device string `json:"device"`
DeviceClass string `json:"device_class"`
UDID string `gorm:"column:udid" json:"udid"`
Account string `json:"account"`
Password string `json:"password"`
InstalledDate *time.Time `json:"installed_date"`
RefreshedDate *time.Time `json:"refreshed_date"`
ExpirationDate *time.Time `json:"expiration_date"`
RefreshedResult bool `json:"refreshed_result"`
RefreshedError RefreshedError `json:"refreshed_error"`
Icon string `json:"icon"`
BundleIdentifier string `json:"bundle_identifier"`
Version string `json:"version"`
RemoveExtensions bool `json:"remove_extensions"`
Enabled bool `json:"enabled,omitempty"`
}
func (InstalledApp) IsAccountInvalid ¶ added in v0.3.1
func (t InstalledApp) IsAccountInvalid() bool
func (InstalledApp) IsExpired ¶ added in v0.3.5
func (t InstalledApp) IsExpired() bool
IsExpired checks if the app has strictly expired (ExpirationDate < now)
func (InstalledApp) IsIPhoneApp ¶ added in v0.3.0
func (t InstalledApp) IsIPhoneApp() bool
func (InstalledApp) MarshalJSON ¶
func (t InstalledApp) MarshalJSON() ([]byte, error)
输出json时,清空密码字段,提高安全性
func (InstalledApp) MaskAccount ¶ added in v0.2.5
func (t InstalledApp) MaskAccount() string
func (InstalledApp) NeedRefresh ¶ added in v0.3.0
func (t InstalledApp) NeedRefresh(advanceDays int) bool
type LockdownDevice ¶
type MobileProvisioningProfile ¶ added in v0.3.0
type MobileProvisioningProfile struct {
AppIDName string
CreationDate time.Time
ExpirationDate time.Time
Name string
TeamName string
UUID string
Version int
}
func NewMobileProvisioningProfile ¶ added in v0.3.0
func NewMobileProvisioningProfile(data []byte) (*MobileProvisioningProfile, error)
func ParseMobileProvisioningProfile ¶ added in v0.3.0
func ParseMobileProvisioningProfile(data []byte) (*MobileProvisioningProfile, error)
func ParseMobileProvisioningProfileFile ¶ added in v0.3.0
func ParseMobileProvisioningProfileFile(path string) (*MobileProvisioningProfile, error)
type RefreshedError ¶ added in v0.3.1
type RefreshedError int
const ( RefreshedErrorNone RefreshedError = 0 RefreshedErrorInvalidAccount RefreshedError = 1 RefreshedErrorInvalidOther RefreshedError = 99 )
type RemoteDevice ¶ added in v0.4.0
type RemoteDevice struct {
ID string `json:"id"`
AccountID string `json:"account_id"`
Model string `json:"model"`
Name string `json:"name"`
RemotePairingUDID string `json:"remotepairing_udid"`
}
func (*RemoteDevice) GetDeviceClass ¶ added in v0.4.0
func (d *RemoteDevice) GetDeviceClass() string
type ServiceStatus ¶
Click to show internal directories.
Click to hide internal directories.