Documentation
¶
Index ¶
- func FindAdbPath() string
- type ADBCommand
- type ADBConnection
- func (a *ADBConnection) Forward(ctx context.Context, localPort int, remotePort int) error
- func (a *ADBConnection) ForwardKillAll(ctx context.Context) error
- func (a *ADBConnection) GetCmd(cmd string, args ...string) remote.Cmder
- func (a *ADBConnection) List(path string) ([]remote.FileInfo, error)
- func (a *ADBConnection) MkDirAll(path string) error
- func (a *ADBConnection) ReadFile(path string) (io.ReadCloser, error)
- func (a *ADBConnection) Remove(path string) error
- func (a *ADBConnection) Stats(p string) (remote.FileInfo, error)
- func (a *ADBConnection) WriteFile(r io.Reader, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAdbPath ¶
func FindAdbPath() string
Types ¶
type ADBCommand ¶
type ADBCommand struct {
// contains filtered or unexported fields
}
func (*ADBCommand) Interactive ¶
func (a *ADBCommand) Interactive() (io.WriteCloser, io.Reader, io.Reader, remote.Closer, error)
type ADBConnection ¶
type ADBConnection struct {
// contains filtered or unexported fields
}
func FromSerial ¶
func FromSerial(serial string, adbPath string) (*ADBConnection, error)
func (*ADBConnection) ForwardKillAll ¶
func (a *ADBConnection) ForwardKillAll(ctx context.Context) error
func (*ADBConnection) GetCmd ¶
func (a *ADBConnection) GetCmd(cmd string, args ...string) remote.Cmder
func (*ADBConnection) MkDirAll ¶
func (a *ADBConnection) MkDirAll(path string) error
func (*ADBConnection) ReadFile ¶
func (a *ADBConnection) ReadFile(path string) (io.ReadCloser, error)
func (*ADBConnection) Remove ¶
func (a *ADBConnection) Remove(path string) error
Click to show internal directories.
Click to hide internal directories.