Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuditDutsCmd = &subcommands.Command{
	UsageLine: "audit-duts",
	ShortDesc: "Audit the DUT by name",
	LongDesc: `Audit the DUT by name.
	./shivas audit-duts -action1 -action2 <dut_name1> ...
	Schedule a swarming Audit task with required actions to the DUT to verify it.`,
	CommandRun: func() subcommands.CommandRun {
		c := &auditRun{}
		c.authFlags.Register(&c.Flags, site.DefaultAuthOptions)
		c.envFlags.Register(&c.Flags)
		c.Flags.BoolVar(&c.runVerifyServoUSB, "servo-usb", false, "Run the verifier for Servo USB drive.")
		c.Flags.BoolVar(&c.runVerifyDUTStorage, "dut-storage", false, "Run the verifier for DUT storage.")
		c.Flags.BoolVar(&c.runVerifyServoFw, "servo-fw", false, "Run the verifier for Servo firmware update.")
		c.Flags.BoolVar(&c.runFlashServoKeyboardMap, "servo-keyboard", false, "Run the action to flash Servo keyboard map to the DUT.")
		c.Flags.BoolVar(&c.runVerifyDutMacaddr, "dut-macaddr", false, "Run the verifier to check and cache mac address of DUT NIC to Servo.")
		c.Flags.BoolVar(&c.runVerifyRpmConfig, "rpm-config", false, "Run the verifier to check and cache mac address of DUT NIC to Servo.")
		c.Flags.IntVar(&c.expirationMins, "expiration-mins", 10, "The expiration minutes of the task request.")
		return c
	},
}

    AuditDutsCmd contains audit-duts command specification

    View Source
    var RepairDutsCmd = &subcommands.Command{
    	UsageLine: "repair-duts",
    	ShortDesc: "Repair the DUT by name",
    	LongDesc: `Repair the DUT by name.
    	./shivas repair <dut_name1> ...
    	Schedule a swarming Repair task to the DUT to try to recover/verify it.`,
    	CommandRun: func() subcommands.CommandRun {
    		c := &repairDuts{}
    		c.authFlags.Register(&c.Flags, site.DefaultAuthOptions)
    		c.envFlags.Register(&c.Flags)
    		c.Flags.BoolVar(&c.onlyVerify, "verify", false, "Run only verify actions.")
    		c.Flags.IntVar(&c.expirationMins, "expiration-mins", 10, "The expiration minutes of the repair request.")
    		return c
    	},
    }

      RepairDutsCmd contains repair-duts command specification

      View Source
      var ReserveDutsCmd = &subcommands.Command{
      	UsageLine: "reserve-duts",
      	ShortDesc: "Reserve the DUT by name",
      	LongDesc: `Reserve the DUT by name.
      	./shivas reserve <dut_name>
      	Schedule a swarming Reserve task to the DUT to set the state to RESERVED to prevent scheduling tasks and tests to the DUT.
      	Reserved DUT does not have expiration time and can be changed by scheduling any admin task on it.`,
      	CommandRun: func() subcommands.CommandRun {
      		c := &reserveDuts{}
      		c.authFlags.Register(&c.Flags, site.DefaultAuthOptions)
      		c.envFlags.Register(&c.Flags)
      		return c
      	},
      }

        ReserveDutsCmd contains reserve-dut command specification

        Functions

        This section is empty.

        Types

        This section is empty.