Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AddLabstationCmd = &subcommands.Command{ UsageLine: "labstation [options ...]", ShortDesc: "Deploy a labstation", LongDesc: cmdhelp.AddLabstationLongDesc, CommandRun: func() subcommands.CommandRun { c := &addLabstation{ pools: []string{}, deployTags: shivasTags, } c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.commonFlags.Register(&c.Flags) c.Flags.StringVar(&c.newSpecsFile, "f", "", cmdhelp.LabstationRegistrationFileText) c.Flags.StringVar(&c.hostname, "name", "", "hostname of the Labstation.") c.Flags.StringVar(&c.machine, "asset", "", "asset tag of the Labstation.") c.Flags.Var(utils.CSVString(&c.pools), "pools", "comma seperated pools assigned to the Labstation. 'labstation_main' assigned on no input.") c.Flags.StringVar(&c.rpm, "rpm", "", "rpm assigned to the Labstation.") c.Flags.StringVar(&c.rpmOutlet, "rpm-outlet", "", "rpm outlet used for the Labstation.") c.Flags.StringVar(&c.rpmType, "rpm-type", "", "rpm type for the labstation."+cmdhelp.RPMTypeHelpText) c.Flags.Var(utils.CSVString(&c.deployTags), "deploy-tags", "comma seperated tags for deployment task.") c.Flags.StringVar(&c.deploymentTicket, "ticket", "", "the deployment ticket for this machine.") c.Flags.Var(flag.StringSlice(&c.tags), "tag", "Name(s) of tag(s). Can be specified multiple times.") c.Flags.StringVar(&c.description, "desc", "", "description for the machine.") c.Flags.StringVar(&c.model, "model", "", "model name of the device") c.Flags.StringVar(&c.board, "board", "", "board the device is based on") c.Flags.StringVar(&c.rack, "rack", "", "rack that the labstation is on") c.Flags.StringVar(&c.zone, "zone", "", "zone that the labstation is on. "+cmdhelp.ZoneFilterHelpText) c.Flags.BoolVar(&c.latestVersion, "latest", false, "Use latest version of CIPD when scheduling. By default use prod.") c.Flags.StringVar(&c.deployBBProject, "deploy-project", "chromeos", "LUCI project to run deploy in. Defaults to `chromeos`") c.Flags.StringVar(&c.deployBBBucket, "deploy-bucket", "labpack_runner", "LUCI bucket to run deploy in. Defaults to `labpack`") return c }, }
AddLabstationCmd adds a MachineLSE to the database. And starts a swarming job to deploy.
View Source
var RenameLabstationCmd = rename.GenGenericRenameCmd("labstation", renameLabstation, printLabstation, site.OSLikeNamespaces, ufsUtil.OSNamespace)
RenameLabstationCmd rename labstation by given name.
View Source
var UpdateLabstationCmd = &subcommands.Command{ UsageLine: "labstation [options]", ShortDesc: "Update a labstation", LongDesc: cmdhelp.UpdateLabstationLongDesc, CommandRun: func() subcommands.CommandRun { c := &updateLabstation{ pools: []string{}, deployTags: shivasTags, } c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.commonFlags.Register(&c.Flags) c.Flags.StringVar(&c.newSpecsFile, "f", "", cmdhelp.LabstationUpdateFileText) c.Flags.StringVar(&c.hostname, "name", "", "hostname of the Labstation.") c.Flags.StringVar(&c.machine, "asset", "", "asset tag of the Labstation.") c.Flags.Var(utils.CSVString(&c.pools), "pools", "comma seperated pools. These will be appended to existing pools. "+cmdhelp.ClearFieldHelpText) c.Flags.StringVar(&c.rpm, "rpm", "", "rpm assigned to the Labstation. Clearing this field will delete rpm. "+cmdhelp.ClearFieldHelpText) c.Flags.StringVar(&c.rpmOutlet, "rpm-outlet", "", "rpm outlet used for the Labstation.") c.Flags.StringVar(&c.rpmType, "rpm-type", "", "rpm type for the labstation."+cmdhelp.RPMTypeHelpText) c.Flags.StringVar(&c.deploymentTicket, "ticket", "", "the deployment ticket for this machine. "+cmdhelp.ClearFieldHelpText) c.Flags.Var(flag.StringSlice(&c.tags), "tag", "Name(s) of tag(s). Can be specified multiple times. "+cmdhelp.ClearFieldHelpText) c.Flags.StringVar(&c.description, "desc", "", "description for the machine. "+cmdhelp.ClearFieldHelpText) c.Flags.StringVar(&c.hive, "hive", "", "Hive name for the labstation. "+cmdhelp.ClearFieldHelpText) c.Flags.BoolVar(&c.forceDeploy, "force-deploy", false, "forces a redeploy task.") c.Flags.Var(utils.CSVString(&c.deployTags), "deploy-tags", "comma seperated tags for deployment task.") c.Flags.BoolVar(&c.latestVersion, "latest", false, "Use latest version of CIPD when scheduling. By default use prod.") c.Flags.StringVar(&c.deployBBProject, "deploy-project", "chromeos", "LUCI project to run deploy in. Defaults to `chromeos`") c.Flags.StringVar(&c.deployBBBucket, "deploy-bucket", "labpack_runner", "LUCI bucket to run deploy in. Defaults to `labpack`") return c }, }
UpdateLabstationCmd update dut by given hostname and start a swarming job to deploy.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.