services

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

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 RunPreProcessCLI(ctx context.Context, image *build_api.ContainerImageInfo, networkName, preProcessDir string, tokenFile string) error

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

type DutServerInfo struct {
	Docker *docker.Docker
	Port   int32
}

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.

Jump to

Keyboard shortcuts

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