Documentation ¶
Index ¶
- type Connection
- func (conn Connection) Close() error
- func (conn *Connection) Delete(path string) error
- func (conn *Connection) DownloadFile(file string, target io.Writer) error
- func (conn *Connection) GetFileInfo(path string) (FileInfo, error)
- func (conn *Connection) ListFiles(cwd string, matchPattern string) ([]string, error)
- func (conn *Connection) SendFile(fileContents []byte, filePath string) error
- type FileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewFromConn ¶
func NewFromConn(deviceConn ios.DeviceConnectionInterface) *Connection
NewFromConn allows to use AFC on a DeviceConnectionInterface, see crashreport for an example
func NewWithHouseArrest ¶
func NewWithHouseArrest(device ios.DeviceEntry, bundleID string) (*Connection, error)
NewWithHouseArrest gives an AFC connection to an app container using the house arrest service
func (Connection) Close ¶
func (conn Connection) Close() error
func (*Connection) Delete ¶
func (conn *Connection) Delete(path string) error
Delete removes a given file or directory
func (*Connection) DownloadFile ¶
func (conn *Connection) DownloadFile(file string, target io.Writer) error
DownloadFile streams filecontents of file from the device to the given writer.
func (*Connection) GetFileInfo ¶
func (conn *Connection) GetFileInfo(path string) (FileInfo, error)
GetFileInfo gets basic info about the path on the device
Click to show internal directories.
Click to hide internal directories.