dutprep

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package dutprep contains functions helpful in interaction with the Autotest DUT preparation tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string

An Action indicates the DUT preparation action to do.

const (
	// NoAction can be used as a null Action value.
	NoAction Action = "no-action"
	// ServoVerification action
	ServoVerification Action = "servo-verification"
	// StageUSB action
	StageUSB Action = "stage-usb"
	// InstallTestImage action
	InstallTestImage Action = "install-test-image"
	// InstallFirmware action
	InstallFirmware Action = "install-firmware"
	// VerifyRecoveryMode action
	VerifyRecoveryMode Action = "verify-recovery-mode"
	// SetupLabstation action
	SetupLabstation Action = "setup-labstation"
	// UpdateLabel action
	UpdateLabel Action = "update-label"
	// RunPreDeployVerification action
	RunPreDeployVerification Action = "run-pre-deploy-verification"
)

func ParseAction

func ParseAction(s string) (Action, error)

ParseAction parses the string argument accepted by lucifer and autotest tools into an Action.

func SortActions

func SortActions(actions []Action) []Action

SortActions sorts the given Action slice in the order they should be executed to prepare a host.

func (Action) String

func (a Action) String() string

String returns the string representation of action.

Jump to

Keyboard shortcuts

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