Documentation ¶
Overview ¶
Package autotest provides a Go API for interacting with Autotest.
This package provides a very low level API with no business logic. This is to keep the bug surface small and keep the business logic clearly separate.
Index ¶
- func AuditTaskCommand(c Config, cmd *AuditTaskArgs) *exec.Cmd
- func AutoservCommand(c Config, cmd *AutoservArgs) *exec.Cmd
- func DutPreparationCommand(c Config, cmd *DutPreparationArgs) *exec.Cmd
- func ParseCommand(c Config, cmd *ParseArgs) *exec.Cmd
- func WriteKeyvals(w io.Writer, m map[string]string) error
- type AuditTaskArgs
- type AutoservArgs
- type Config
- type DutPreparationArgs
- type ParseArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuditTaskCommand ¶
func AuditTaskCommand(c Config, cmd *AuditTaskArgs) *exec.Cmd
AuditTaskCommand returns the Cmd struct to execute DUT audit script with the given arguments.
func AutoservCommand ¶
func AutoservCommand(c Config, cmd *AutoservArgs) *exec.Cmd
AutoservCommand returns the Cmd struct to execute autoserv with the given arguments.
func DutPreparationCommand ¶
func DutPreparationCommand(c Config, cmd *DutPreparationArgs) *exec.Cmd
DutPreparationCommand returns the Cmd struct to execute DUT preparation script with the given arguments.
func ParseCommand ¶
ParseCommand returns the Cmd struct to execute tko/parse with the given arguments.
Types ¶
type AuditTaskArgs ¶
type AuditTaskArgs struct { Hostname string ResultsDir string HostInfoFile string Actions []string }
AuditTaskArgs contains arguments for AdminAudit task.
type AutoservArgs ¶
type AutoservArgs struct { // Args is split with shlex.split by autoserv. Args string Cleanup bool ClientTest bool CollectCrashinfo bool ControlName string ExecutionTag string HostInfoSubDir string Hosts []string JobLabels []string JobName string JobOwner string Lab bool LocalOnlyHostInfo bool NoTee bool ParentJobID int Provision bool Repair bool RequireSSP bool Reset bool ResultsDir string TestSourceBuild string UseExistingResults bool Verbose bool Verify bool VerifyJobRepoURL bool WritePidfile bool ControlFile string }
AutoservArgs is the arguments for creating an autoserv command.
Directories ¶
Path | Synopsis |
---|---|
Package atutil provides a higher level Autotest interface than the autotest package.
|
Package atutil provides a higher level Autotest interface than the autotest package. |
Package dutprep contains functions helpful in interaction with the Autotest DUT preparation tool.
|
Package dutprep contains functions helpful in interaction with the Autotest DUT preparation tool. |