common

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: Apache-2.0, MIT Imports: 18 Imported by: 0

Documentation

Index

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

func VerifyLogsEndpoint(srvURL, group, name string) error

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

type TestContext struct {
	ServiceURL        string
	DockerImageName   string
	DockerContainerID string
}

func Setup

func Setup(port int) (*TestContext, error)

Starts the HO service within a docker container.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL