Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct { Asset string Rack string Zone string Model string Board string Namespace string Type string }
Asset is a group of parameters needed to add an asset to UFS.
type DUT ¶
type DUT struct { // TODO(gregorynisbet): remove the namespace field. Namespace string Zone string Name string Servo string Rack string ShivasArgs map[string][]string }
DUT contains all the information necessary to add a DUT.
type DUTRepairResponse ¶
type DUTRepairer ¶
type DUTRepairer struct { Name string Namespace string Executor executor.IExecCommander }
DUTRepairer repairs a DUT with the given name.
func (*DUTRepairer) Repair ¶
func (u *DUTRepairer) Repair( ctx context.Context, action RepairAction, ) (*DUTRepairResponse, error)
repair invokes shivas with the required arguments to repair a DUT.
type DUTUpdater ¶
type DUTUpdater struct { // Name is a hostname indicate which DUT we want to update Name string // Executor is a command execuotr Executor executor.IExecCommander }
DUTUpdater updates a DUT with the given name.
type RepairAction ¶
type RepairAction string
const ( // Verify run only verify actions. Verify RepairAction = "-verify" // DeepRepair use deep-repair task when scheduling a task. DeepRepair RepairAction = "-deep" // Normal don't specify `verify` and `deep` flag to shivas CLI Normal RepairAction = "" )
Click to show internal directories.
Click to hide internal directories.