Documentation ¶
Overview ¶
* sonic-ios-bridge Connect to your iOS Devices. * Copyright (C) 2022 SonicCloudOrg * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>.
* sonic-ios-bridge Connect to your iOS Devices. * Copyright (C) 2022 SonicCloudOrg * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>.
* sonic-ios-bridge Connect to your iOS Devices. * Copyright (C) 2022 SonicCloudOrg * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>.
Index ¶
- Constants
- func CheckMount(device giDevice.Device)
- func Format(d ResultData, isFormat, isJson bool) string
- func GetApplicationPID(device giDevice.Device, appName string) (pid int, err error)
- func GetDeviceByUdId(udId string) (device giDevice.Device)
- func GetDeviceVersion(device giDevice.Device) string
- func NewErrorPrint(t string, msg string, err error) error
- type ResultData
Constants ¶
const ( ErrConnect = "failed connecting to" ErrReadingMsg = "failed reading msg" ErrSendCommand = "failed send the command" ErrMissingArgs = "missing arg(s)" ErrUnknown = "unknown error" MountTips = "you can use [sib mount] command to fix it and retry" )
const DownLoadTimeOut = 30 * time.Second
Variables ¶
This section is empty.
Functions ¶
func CheckMount ¶ added in v1.0.3
func Format ¶
func Format(d ResultData, isFormat, isJson bool) string