Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ChangelogCmd = &subcommands.Command{ UsageLine: "changelog", ShortDesc: "list changelog for any entity", LongDesc: `List the changelog associated with the given key ./shivas changelog -key <dut-name> -limit 100 ./shivas changelog -key <asset-tag> -limit 1000 ./shivas changelog -key <asset-tag>`, CommandRun: func() subcommands.CommandRun { c := &changelogRun{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.Flags.StringVar(&c.key, "key", "", "a key to query") c.Flags.IntVar(&c.limit, "limit", 100, "limit the number of entries. 0 lists everything") return c }, }
ChangelogCmd lists the changes made to a particular entity
View Source
var DUTAvailabilityDiffCmd = &subcommands.Command{ UsageLine: "check-dut-availability-diff", ShortDesc: "check the dut availability diff", LongDesc: `check the dut availability diff for different DUT state ./shivas check-dut-availability-diff -before-date ... -after-date ... -dut-state ...`, CommandRun: func() subcommands.CommandRun { c := &dutAvailabilityDiffRun{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.Flags.StringVar(&c.before_date, "before-date", "", "a date to be compared, a valid format is `2023-01-20`") c.Flags.StringVar(&c.after_date, "after-date", "", "a date to compare, a valid format is `2023-01-20`") c.Flags.StringVar(&c.dut_state, "dut-state", "needs_manual_repair", "a dut state to search, valid states: [needs_manual_repair, needs_repair, repair_failed]") return c }, }
AuditDutsCmd contains audit-duts command specification
View Source
var DumpNlyteCmd = &subcommands.Command{ UsageLine: "nlyte ...", ShortDesc: "Dump nlyte updates", LongDesc: `Dump nlyte updates from the provided json file. Example: shivas nlyte -f testing.json`, CommandRun: func() subcommands.CommandRun { c := &dumpNlyte{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.commonFlags.Register(&c.Flags) c.Flags.StringVar(&c.updatedEntryFile, "f", "", "Path to a file containing AssetAndHosts specification in JSON format.") c.outputFlags.Register(&c.Flags) return c }, }
DumpNlyteCmd dumps updated entries from Nlyte to UFS.
View Source
var GetDutsForLabstationCmd = &subcommands.Command{ UsageLine: "get-duts-for-labstation [duts]", ShortDesc: "get the DUTs attached to a labstation", LongDesc: `get duts for labstation gets the DUTs for a labstation. ./shivas get-duts-for-labstation [duts]`, CommandRun: func() subcommands.CommandRun { c := &getDutsForLabstationRun{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) return c }, }
GetDutsForLabstationCmd gets the DUTs associated with a labstation.
View Source
var ImportOSNicsCmd = &subcommands.Command{ UsageLine: "import-os-nics", ShortDesc: "import OS nic info", LongDesc: `import OS nic info based on https://docs.google.com/spreadsheets/d/1Lj2HiLT0dLBQXcLoRv3fArnlAkyYxZd6vVfQ-fBaEQI/edit?pli=1&resourcekey=0-ZLPb7FgibPlqG_QH9SrMRA#gid=1219489772. ./shivas import-os-nics ...`, CommandRun: func() subcommands.CommandRun { c := &ImportOSNicsRun{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.commonFlags.Register(&c.Flags) c.Flags.StringVar(&c.dhcpFilepath, "dhcp-filepath", "", "the file path of the dhcp file which contains macaddress for all to-be-imported assets") return c }, }
ImportOSNicsCmd contains audit-duts command specification
View Source
var ModelAnalysisCmd = &subcommands.Command{ UsageLine: "analyze-model", ShortDesc: "analyze a model of DUTs's abnormal states", LongDesc: `analyze a model of DUTs's abnormal states. ./shivas analyze-model -model ... -date ...`, CommandRun: func() subcommands.CommandRun { c := &modelAnalysisRun{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.Flags.StringVar(&c.model, "model", "", "a model to query") c.Flags.StringVar(&c.date, "date", "", "a date to query, a valid format is `2023-01-20`") return c }, }
AuditDutsCmd contains audit-duts command specification
View Source
var RepairProfileCmd = &subcommands.Command{ UsageLine: "get-repair-profile", ShortDesc: "get repair profile for a particular host in past 3 months", LongDesc: `get repair profile for a particular host in past 3 months. ./shivas get-repair-profile -hostname ...`, CommandRun: func() subcommands.CommandRun { c := &repairProfileRun{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.Flags.StringVar(&c.hostname, "hostname", "", "a hostname to query") return c }, }
AuditDutsCmd contains audit-duts command specification
View Source
var VerifyBotStatusCmd = &subcommands.Command{ UsageLine: "verify-bot-status", ShortDesc: "Verify bots' status between swarming and UFS", LongDesc: `Verify bots' status between swarming and UFS. ./shivas verify-bot-status -swarming-host a -swarming-host b ... Compare all bots in a swarming instance with their status in UFS.`, CommandRun: func() subcommands.CommandRun { c := &verifyBotStatusRun{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.Flags.Var(flag.StringSlice(&c.swarmingHosts), "swarming-host", "Name(s) of the swarming hosts to query") return c }, }
AuditDutsCmd contains audit-duts command specification
Functions ¶
This section is empty.
Types ¶
type ImportOSNicsRun ¶
type ImportOSNicsRun struct { subcommands.CommandRunBase // contains filtered or unexported fields }
func (*ImportOSNicsRun) Run ¶
func (c *ImportOSNicsRun) Run(a subcommands.Application, args []string, env subcommands.Env) int
type RepairProfile ¶
type RepairProfile struct { FollowedAutoRepairTasks []*Job // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.