Documentation
¶
Index ¶
- Constants
- func CreateDutService(ctx context.Context, image *build_api.ContainerImageInfo, ...) (*docker.Docker, error)
- func RunPostProcessCLI(ctx context.Context, image *build_api.ContainerImageInfo, ...) error
- func RunPreProcessCLI(ctx context.Context, image *build_api.ContainerImageInfo, ...) error
- func RunProvisionCLI(ctx context.Context, image *build_api.ContainerImageInfo, networkName string, ...) (*docker.Docker, error)
- func RunTestCLI(ctx context.Context, image *build_api.ContainerImageInfo, ...) error
- func RunTestFinderCLI(ctx context.Context, image *build_api.ContainerImageInfo, ...) error
- type DutServerInfo
Constants ¶
View Source
const ( // File names used to interact with cros-provision CLI. InputFileName = "in.json" OutputFileName = "out.json" // Default dut address port DefaultDutAddressPort = "22" // Root directory for the cros-test artifacts inside docker. CrosTestRootDirInsideDocker = "/tmp/test" // Root directory for the cros-test-finder artifacts inside docker. CrosTestFinderRootDirInsideDocker = "/tmp/test" // Root directory for the pre-process artifacts inside docker. PreProcessRootDirInsideDocker = "/tmp/test" // Root directory for the post-process artifacts inside docker. PostProcessRootDirInsideDocker = "/tmp/test" // Directories inside root dir CrosTestDirInsideDocker = "/tmp/test/cros-test" CrosTestResultsDirInsideDocker = "/tmp/test/results" )
Variables ¶
This section is empty.
Functions ¶
func CreateDutService ¶
func CreateDutService(ctx context.Context, image *build_api.ContainerImageInfo, dutName, networkName string, cacheServer *lab_api.CacheServer, dutSshInfo *lab_api.IpEndpoint, dir string, t string) (*docker.Docker, error)
CreateDutService pulls and starts cros-dut service.
func RunPostProcessCLI ¶
func RunPostProcessCLI(ctx context.Context, image *build_api.ContainerImageInfo, networkName, inputFileName, postProcessDir string, dutServicePort int32, tokenFile string) error
RunPostProcessCLI pulls and runs cros-test as CLI.
func RunPreProcessCLI ¶
func RunProvisionCLI ¶
func RunProvisionCLI(ctx context.Context, image *build_api.ContainerImageInfo, networkName string, req *api.CrosProvisionRequest, dir string, tokenFile string) (*docker.Docker, error)
RunProvisionCLI pulls and starts cros-provision as CLI.
func RunTestCLI ¶
func RunTestCLI(ctx context.Context, image *build_api.ContainerImageInfo, networkName, inputFileName, crosTestDir, resultDir string, tokenFile string) error
RunTestCLI pulls and runs cros-test as CLI.
func RunTestFinderCLI ¶
func RunTestFinderCLI(ctx context.Context, image *build_api.ContainerImageInfo, networkName, crosTestFinderDir string, tokenFile string) error
RunTestFinderCLI pulls and runs cros-test-finder as CLI.
Types ¶
type DutServerInfo ¶
func CreateDutServicesForHostNetwork ¶
func CreateDutServicesForHostNetwork(ctx context.Context, image *build_api.ContainerImageInfo, duts []*lab_api.Dut, dir, t string) ([]*DutServerInfo, error)
CreateDutServicesForHostNetwork pulls and starts cros-dut services in host network.
Click to show internal directories.
Click to hide internal directories.