zipconduit

package
v1.0.122 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFileToZip

func AddFileToZip(writer io.Writer, filename string, tmpdir string) error

func Unzip added in v1.0.19

func Unzip(src string, dest string) ([]string, uint64, error)

Unzip is code I copied from https://golangcode.com/unzip-files-in-go/ thank you guys for the cool helpful code examples :-D

Types

type Connection

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

Connection exposes functions to interoperate with zipconduit

func New

func New(device ios.DeviceEntry) (*Connection, error)

New returns a new ZipConduit Connection for the given DeviceID and Udid

func NewWithShimConnection added in v1.0.122

func NewWithShimConnection(device ios.DeviceEntry) (*Connection, error)

NewWithShimConnection connects to the streaming_zip_conduit service over a tunnel interface and the service port is obtained from remote service discovery

func NewWithUsbmuxdConnection added in v1.0.122

func NewWithUsbmuxdConnection(device ios.DeviceEntry) (*Connection, error)

NewWithUsbmuxdConnection connects to the streaming_zip_conduit service on the device over the usbmuxd socket

func (Connection) Close added in v1.0.38

func (conn Connection) Close() error

func (Connection) SendFile

func (conn Connection) SendFile(appFilePath string) error

SendFile will send either a zipFile or an unzipped directory to the device. If you specify appFilePath to a file, it will try to Unzip it to a temp dir first and then send. If appFilePath points to a directory, it will try to install the dir contents as an app.

Jump to

Keyboard shortcuts

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