Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Close() error
- func (c *Client) DeviceInfo() (DeviceInfo, error)
- func (c *Client) List(p string) ([]string, error)
- func (c *Client) MkDir(p string) error
- func (c *Client) Open(p string, mode Mode) (*File, error)
- func (conn *Client) Pull(srcPath, dstPath string) error
- func (c *Client) PullSingleFile(srcPath, dstPath string) error
- func (conn *Client) Push(srcPath, dstPath string) error
- func (c *Client) Remove(p string) error
- func (c *Client) RemoveAll(p string) error
- func (c *Client) Stat(s string) (FileInfo, error)
- func (c *Client) WalkDir(p string, f WalkFunc) error
- func (conn *Client) WriteToFile(reader io.Reader, dstPath string) error
- type DeviceInfo
- type File
- type FileInfo
- type FileType
- type Mode
- type WalkFunc
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.0.185
type Client struct {
// contains filtered or unexported fields
}
func New ¶ added in v1.0.71
func New(d ios.DeviceEntry) (*Client, error)
New creates a connection to the afc service
func NewFromConn ¶
func NewFromConn(d ios.DeviceConnectionInterface) *Client
NewFromConn establishes a new AFC client connection from an existing device connection
func (*Client) DeviceInfo ¶ added in v1.0.185
func (c *Client) DeviceInfo() (DeviceInfo, error)
DeviceInfo retrieves information about the filesystem of the device
func (*Client) PullSingleFile ¶ added in v1.0.185
func (*Client) Remove ¶ added in v1.0.185
Remove deletes the file at the given path If the path is a non-empty directory, an error will be returned
func (*Client) RemoveAll ¶ added in v1.0.185
RemoveAll deletes the file at the given path If the path is a non-empty directory, the directory and its contents will be deleted
type DeviceInfo ¶ added in v1.0.185
type File ¶ added in v1.0.185
type File struct {
// contains filtered or unexported fields
}
File is a reference to a file on the devices filesystem
type WalkFunc ¶ added in v1.0.185
WalkFunc is used by Client.WalkDir for traversing directories This function will be called for each entry in a directory Execution can be controlled by returning error values from this function:
- fs.SkipDir will skip files of the current directory
- fs.SkipAll will stop traversal and exit without an error
- returning any other non-nil error will stop traversal and return this error from Client.WalkDir