Documentation
¶
Index ¶
- Constants
- Variables
- func Filter(items []string, ignore string) []string
- func FormatSystemBin(cmd string) string
- type Client
- func (own *Client) Close() error
- func (own *Client) Connect(port ...int) (err error)
- func (own *Client) Execute(cmd string) (string, error)
- func (own *Client) ExecuteWithTimeout(cmd string, timeout int64) (string, error)
- func (own *Client) Ifconfig()
- func (own *Client) IsExistPids(pids ...string) error
- func (own *Client) Kill(pids ...string) error
- func (own *Client) Killall(names ...string) error
- func (own *Client) Ls(filename string) ([]*LsFile, error)
- func (own *Client) Pidof(names ...string) ([]string, error)
- func (own *Client) Restart(timeout int64, cmds ...string) ([]string, error)
- func (own *Client) Start(timeout int64, cmds ...string) ([]string, error)
- func (own *Client) WaitProcesses(tiemout int64, names ...string) (pids []string, err error)
- func (own *Client) WithPrint(print bool) *Client
- type LsFile
- type NetworkCard
Constants ¶
View Source
const ( DIAL_PORT = 22 DIAL_TIMEOUT = 3 )
View Source
const (
ERR_KILLALL = "sh: you need to specify whom to kill"
)
View Source
const SystemBinPathPrefix = "/system/bin/"
Variables ¶
View Source
var SystemBinMap = map[string]struct{}{
"SCYService": {},
"athelper": {},
"atproxy": {},
"canconfig": {},
"candump": {},
"canecho": {},
"cansend": {},
"cansequence": {},
"cfg_wifi_mac.sh": {},
"check_io": {},
"checkstatus.sh": {},
"cpnvram": {},
"daemon1609dot2": {},
"deviceMonitor": {},
"dtt-proxy": {},
"dtvl-pltest": {},
"emsd": {},
"export_modem_mem.sh": {},
"fg150_sim_check.sh": {},
"gnss-config": {},
"gnssService": {},
"gnss_server": {},
"hostapd": {},
"imx6_communication_check.sh": {},
"initDaemon.sh": {},
"insightProxy": {},
"iptables": {},
"lvspark.config": {},
"modemshakey": {},
"ncs_2020": {},
"ncs_4layer": {},
"ncsproxy": {},
"omCore": {},
"omKeeper": {},
"omLogger": {},
"omProxy": {},
"omProxyCustomer": {},
"proxy": {},
"ptms": {},
"qxwz": {},
"rds": {},
"rtty": {},
"shakey": {},
"sshpass": {},
"startDaemon.sh": {},
"startRtty.sh": {},
"stopDaemon.sh": {},
"tcpdump": {},
"tester": {},
"testerproxy": {},
"tsps": {},
"v2x_ioctl": {},
"v2x_perfm": {},
"v2x_perfm_2020": {},
"v2x_perfm_4layer": {},
"v2x_recv": {},
"v2x_send": {},
"v2xdump": {},
"v2xmsg": {},
"v2xmsg_157": {},
"v2xmsg_158": {},
"v2xmsg_3709": {},
"v2xmsg_53_2017": {},
"xds": {},
}
Functions ¶
func FormatSystemBin ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ExecuteWithTimeout ¶
func (*Client) IsExistPids ¶
func (*Client) WaitProcesses ¶
type NetworkCard ¶
type NetworkCard struct { }
Click to show internal directories.
Click to hide internal directories.