Documentation
¶
Index ¶
- type ClientAddr
- type DefaultDeviceFileParser
- type Device
- type DeviceFile
- type DeviceFileParser
- type DumpSysSection
- type DumpsysParser
- type Extras
- type Intent
- type IntentBuilder
- type LogcatLevel
- type LogcatOptions
- type LogcatTag
- type MdnsDevice
- type PackagePermission
- type Pair
- type Permission
- type ReconnectType
- type RequestedPermission
- type ScannerDevice
- type Serial
- type SettingsNamespace
- type Size
- type StatDeviceFileParser
- type TcpDevice
- type UserId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientAddr ¶
func NewClientAddress ¶
func NewClientAddress(addr *string) (*ClientAddr, error)
func (ClientAddr) GetSerialAddress ¶ added in v0.0.2
func (c ClientAddr) GetSerialAddress() string
func (ClientAddr) String ¶
func (c ClientAddr) String() string
func (ClientAddr) ToString ¶
func (c ClientAddr) ToString() string
type DefaultDeviceFileParser ¶ added in v1.0.18
type DefaultDeviceFileParser struct{}
func (DefaultDeviceFileParser) Parse ¶ added in v1.0.18
func (d DefaultDeviceFileParser) Parse(parent string, line string, name string) (DeviceFile, error)
type Device ¶
type Device struct { Serial Addr ClientAddr Product []byte Model []byte Device []byte Transport []byte }
func (Device) GetSerialAddress ¶ added in v0.0.2
type DeviceFile ¶ added in v0.0.6
type DeviceFile struct { Line string Permissions string LinkCount string Owner string Group string Size string DateTime time.Time Name string Parent string }
func (DeviceFile) Abs ¶ added in v1.0.16
func (d DeviceFile) Abs() string
func (DeviceFile) IsDir ¶ added in v0.0.6
func (d DeviceFile) IsDir() bool
func (DeviceFile) IsSymlink ¶ added in v0.0.6
func (d DeviceFile) IsSymlink() bool
func (DeviceFile) String ¶ added in v0.0.6
func (d DeviceFile) String() string
func (DeviceFile) Symlink ¶ added in v0.0.6
func (d DeviceFile) Symlink() string
type DeviceFileParser ¶ added in v1.0.18
type DeviceFileParser interface {
Parse(string, string, string) (*DeviceFile, error)
}
type DumpSysSection ¶ added in v1.0.22
type DumpsysParser ¶ added in v1.0.22
type DumpsysParser struct {
Lines []string
}
func (DumpsysParser) FindSection ¶ added in v1.0.22
func (b DumpsysParser) FindSection(title string) *DumpSysSection
func (DumpsysParser) FindSections ¶ added in v1.0.22
func (b DumpsysParser) FindSections() []string
type Extras ¶
type Extras struct { Es map[string]string Ez map[string]bool Ei map[string]int El map[string]int64 Ef map[string]float32 Eu map[string]string Ecn map[string]string Eia map[string][]int Ela map[string][]int64 Efa map[string][]float32 Esa map[string][]string GrantReadUriPermission bool GrantWriteUriPermission bool ExcludeStoppedPackages bool IncludeStoppedPackages bool }
type Intent ¶
type IntentBuilder ¶
type IntentBuilder struct {
Intent *Intent
}
type LogcatLevel ¶ added in v0.0.5
type LogcatLevel string
const ( LogcatVerbose LogcatLevel = "V" LogcatDebug LogcatLevel = "D" LogcatInfo LogcatLevel = "I" LogcatWarn LogcatLevel = "W" LogcatError LogcatLevel = "E" )
type LogcatOptions ¶ added in v0.0.5
type LogcatOptions struct { // -e Only prints lines where the log message matches <expr>, where <expr> is a regular expression. Expr string // -d Dumps the log to the screen and exits. Dump bool // -f <filename> Writes log message output to <filename>. The default is stdout. Filename string // redirect the output to this file instead of the default output File *os.File // -s Equivalent to the filter expression '*:S', which sets priority for all tags to silent and is used to precede a list of filter expressions that add content. Tags []LogcatTag // -v <format> Sets the output format for log messages. The default is the threadtime format Format string // -t '<time>' Prints the most recent lines since the specified time. This option includes -d functionality. See the -P option for information about quoting parameters with embedded spaces. Since *time.Time // --pid=<pid> ... Pids []string Timeout time.Duration }
func NewLogcatOptions ¶ added in v0.0.5
func NewLogcatOptions() LogcatOptions
type LogcatTag ¶ added in v0.0.5
type LogcatTag struct { Name string Level LogcatLevel }
type MdnsDevice ¶
type MdnsDevice struct { ScannerDevice ConnectionType string // contains filtered or unexported fields }
func NewMdnsDevice ¶
func NewMdnsDevice(name *string, ctype string, addr *string) (*MdnsDevice, error)
func (MdnsDevice) Address ¶
func (m MdnsDevice) Address() ClientAddr
func (MdnsDevice) GetSerialAddress ¶ added in v0.0.2
func (m MdnsDevice) GetSerialAddress() string
func (MdnsDevice) MacAddress ¶ added in v1.1.2
func (m MdnsDevice) MacAddress() *net.HardwareAddr
func (MdnsDevice) Name ¶
func (m MdnsDevice) Name() *string
func (MdnsDevice) String ¶
func (m MdnsDevice) String() string
type PackagePermission ¶
type PackagePermission struct { Permission Granted bool Flags []string }
func (PackagePermission) String ¶
func (r PackagePermission) String() string
type Permission ¶
type Permission struct {
Name string
}
type ReconnectType ¶ added in v1.0.29
type ReconnectType string
type RequestedPermission ¶
type RequestedPermission struct {
Permission
}
func (RequestedPermission) String ¶
func (r RequestedPermission) String() string
type ScannerDevice ¶ added in v1.1.1
type ScannerDevice interface { Name() *string GetSerialAddress() string Address() ClientAddr String() string MacAddress() *net.HardwareAddr }
type SettingsNamespace ¶ added in v1.0.5
type SettingsNamespace string
const ( SettingsGlobal SettingsNamespace = "global" SettingsSystem SettingsNamespace = "system" SettingsSecure SettingsNamespace = "secure" ReconnectToDevice = "device" ReconnectToOffline = "offline" )
type StatDeviceFileParser ¶ added in v1.0.18
type StatDeviceFileParser struct{}
func (StatDeviceFileParser) Parse ¶ added in v1.0.18
func (d StatDeviceFileParser) Parse(parent string, line string, name string) (DeviceFile, error)
type TcpDevice ¶ added in v1.1.0
type TcpDevice struct { ScannerDevice // contains filtered or unexported fields }
func NewTcpDevice ¶ added in v1.1.0
func (TcpDevice) Address ¶ added in v1.1.0
func (m TcpDevice) Address() ClientAddr
func (TcpDevice) GetSerialAddress ¶ added in v1.1.0
func (TcpDevice) MacAddress ¶ added in v1.1.2
func (m TcpDevice) MacAddress() *net.HardwareAddr
Click to show internal directories.
Click to hide internal directories.