inventory

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DutList = &subcommands.Command{
	UsageLine: "dut-list [-pool POOL] [-model MODEL] [-board BOARD]",
	ShortDesc: "List hostnames of devices matching search criteria",
	LongDesc: `List hostnames of devices matching search criteria.

	If no criteria are provided, dut-list will list all the DUT hostnames in Skylab.

	Search criteria include pool, model, board`,
	CommandRun: func() subcommands.CommandRun {
		c := &dutListRun{}
		c.authFlags.Register(&c.Flags, site.DefaultAuthOptions)
		c.envFlags.Register(&c.Flags)

		c.Flags.StringVar(&c.board, "board", "", "board name")
		c.Flags.StringVar(&c.model, "model", "", "model name")
		c.Flags.StringVar(&c.pool, "pool", "", "pool name")
		c.Flags.StringVar(&c.servoType, "servo-type", "", "the type of servo")
		c.Flags.BoolVar(&c.useInventory, "use-inventory", false, "use the inventory service if set, use swarming if unset")

		c.Flags.Var(flagx.Dims(&c.dims), "dim", "Single additional dimension in format key=value or key:value; may be specified multiple times.")
		c.Flags.Var(flagx.Dims(&c.dims), "dims", "List of additional dimensions in format key1=value1,key2=value2,... or key1:value1,key2:value2,... .")
		return c
	},
}

DutList subcommand: Get DUT information

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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