manager

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAfcServiceStatus

func CheckAfcServiceStatus(udid string) error

func GetDeviceByID

func GetDeviceByID(id string) (*model.Device, bool)

func GetDeviceMountImageInfo

func GetDeviceMountImageInfo(udid string) (*model.UsbmuxdImage, error)

func GetDevices

func GetDevices() ([]model.Device, error)

func ReloadDevices

func ReloadDevices()

func RestartUsbmuxd

func RestartUsbmuxd() error

func ScanDevices

func ScanDevices()

func StartDeviceManager

func StartDeviceManager()

Types

type DeviceManager

type DeviceManager struct {
	// contains filtered or unexported fields
}

func (*DeviceManager) CheckAfcServiceStatus

func (dm *DeviceManager) CheckAfcServiceStatus(udid string) error

func (*DeviceManager) CheckHasMountImage

func (dm *DeviceManager) CheckHasMountImage(udid string) (bool, error)

func (*DeviceManager) GetDeviceByID

func (dm *DeviceManager) GetDeviceByID(id string) (*model.Device, bool)

func (*DeviceManager) GetDeviceByUDID

func (dm *DeviceManager) GetDeviceByUDID(udid string) (*model.Device, bool)

func (*DeviceManager) GetDevices

func (dm *DeviceManager) GetDevices() []model.Device

func (*DeviceManager) GetMountImageInfo

func (dm *DeviceManager) GetMountImageInfo(udid string) (*model.UsbmuxdImage, error)

Get AppleTV mounted information of DeveloperDiskImage install/screenshot function need mounted DeveloperDiskImage to operate.

func (*DeviceManager) GetUsbmuxdDeviceInfo

func (dm *DeviceManager) GetUsbmuxdDeviceInfo(udid string) (*model.UsbmuxdDevice, error)

func (*DeviceManager) ReloadDevices

func (dm *DeviceManager) ReloadDevices()

func (*DeviceManager) RestartUsbmuxd

func (dm *DeviceManager) RestartUsbmuxd() error

func (*DeviceManager) Scan

func (dm *DeviceManager) Scan()

func (*DeviceManager) Start

func (dm *DeviceManager) Start()

需要依赖socket套接字: /var/run/dbus /var/run/avahi-daemon

type InstallManager added in v0.2.1

type InstallManager struct {
	// contains filtered or unexported fields
}

func NewInstallManager added in v0.2.1

func NewInstallManager() *InstallManager

func NewInteractiveInstallManager added in v0.2.1

func NewInteractiveInstallManager() *InstallManager

func (*InstallManager) CleanTempFiles added in v0.2.1

func (t *InstallManager) CleanTempFiles(ipaPath string)

func (*InstallManager) Close added in v0.2.1

func (t *InstallManager) Close()

func (*InstallManager) ErrorLog added in v0.2.1

func (t *InstallManager) ErrorLog() string

func (*InstallManager) OnOutput added in v0.2.1

func (t *InstallManager) OnOutput(fn func(string))

func (*InstallManager) OutputLog added in v0.2.1

func (t *InstallManager) OutputLog() string

func (*InstallManager) Start added in v0.2.1

func (t *InstallManager) Start(ctx context.Context, udid, account, password, ipaPath string) error

func (*InstallManager) TryStart added in v0.2.1

func (t *InstallManager) TryStart(ctx context.Context, udid, account, password, ipaPath string) error

func (*InstallManager) Write added in v0.2.1

func (t *InstallManager) Write(p []byte)

func (*InstallManager) WriteLog added in v0.2.1

func (t *InstallManager) WriteLog(id uint)

type PairManager added in v0.2.1

type PairManager struct {
	// contains filtered or unexported fields
}

func NewPairManager added in v0.2.1

func NewPairManager() *PairManager

func (*PairManager) Close added in v0.2.1

func (t *PairManager) Close()

func (*PairManager) ErrorLog added in v0.2.1

func (t *PairManager) ErrorLog() string

func (*PairManager) OnOutput added in v0.2.1

func (t *PairManager) OnOutput(fn func(string))

func (*PairManager) OutputLog added in v0.2.1

func (t *PairManager) OutputLog() string

func (*PairManager) Start added in v0.2.1

func (t *PairManager) Start(ctx context.Context, udid string) error

func (*PairManager) Write added in v0.2.1

func (t *PairManager) Write(p []byte)

type WebsocketManager added in v0.2.1

type WebsocketManager struct {
	// contains filtered or unexported fields
}

func NewWebsocketManager added in v0.2.1

func NewWebsocketManager(conn *websocket.Conn) *WebsocketManager

func (*WebsocketManager) Cancel added in v0.2.1

func (mgr *WebsocketManager) Cancel()

func (*WebsocketManager) Context added in v0.2.1

func (mgr *WebsocketManager) Context() context.Context

func (*WebsocketManager) ReadMessage added in v0.2.1

func (mgr *WebsocketManager) ReadMessage() (*model.Message, error)

func (*WebsocketManager) WriteMessage added in v0.2.1

func (mgr *WebsocketManager) WriteMessage(msg string)

Jump to

Keyboard shortcuts

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