Documentation ¶
Index ¶
- func Cleanup(ctx *TestContext)
- func DownloadHostBugReport(srv hoclient.HostOrchestratorService, group string) error
- func UploadAndExtract(srv hoclient.HostOrchestratorService, remoteDir, src string) error
- func VerifyLogsEndpoint(srvURL, group, name string) error
- type DockerExecExitCodeError
- type DockerHelper
- func (h *DockerHelper) ConnectADB(id, adbBin, serial string) error
- func (h *DockerHelper) ExecADBShellCommand(id, adbBin, serial string, cmd []string) error
- func (h *DockerHelper) LoadImage() (string, error)
- func (h *DockerHelper) PullLogs(id string) error
- func (h *DockerHelper) RemoveContainer(id string) error
- func (h *DockerHelper) RemoveImage(name string) error
- func (h *DockerHelper) RunContainer(img string, hostPort int) (string, error)
- func (h *DockerHelper) StartADBServer(id, adbBin string) error
- type TestContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cleanup ¶
func Cleanup(ctx *TestContext)
func DownloadHostBugReport ¶
func DownloadHostBugReport(srv hoclient.HostOrchestratorService, group string) error
func UploadAndExtract ¶
func UploadAndExtract(srv hoclient.HostOrchestratorService, remoteDir, src string) error
func VerifyLogsEndpoint ¶
Types ¶
type DockerExecExitCodeError ¶
type DockerExecExitCodeError struct {
ExitCode int
}
func (DockerExecExitCodeError) Error ¶
func (e DockerExecExitCodeError) Error() string
type DockerHelper ¶
type DockerHelper struct {
// contains filtered or unexported fields
}
func NewDockerHelper ¶
func NewDockerHelper() (*DockerHelper, error)
func (*DockerHelper) ConnectADB ¶
func (h *DockerHelper) ConnectADB(id, adbBin, serial string) error
func (*DockerHelper) ExecADBShellCommand ¶
func (h *DockerHelper) ExecADBShellCommand(id, adbBin, serial string, cmd []string) error
func (*DockerHelper) LoadImage ¶
func (h *DockerHelper) LoadImage() (string, error)
func (*DockerHelper) PullLogs ¶
func (h *DockerHelper) PullLogs(id string) error
func (*DockerHelper) RemoveContainer ¶
func (h *DockerHelper) RemoveContainer(id string) error
func (*DockerHelper) RemoveImage ¶
func (h *DockerHelper) RemoveImage(name string) error
func (*DockerHelper) RunContainer ¶
func (h *DockerHelper) RunContainer(img string, hostPort int) (string, error)
func (*DockerHelper) StartADBServer ¶
func (h *DockerHelper) StartADBServer(id, adbBin string) error
type TestContext ¶
func Setup ¶
func Setup(port int) (*TestContext, error)
Starts the HO service within a docker container.
Click to show internal directories.
Click to hide internal directories.