Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetMachineLSEDeploymentCmd = &subcommands.Command{ UsageLine: "host-deployment ...", ShortDesc: "Get deployment records by filters", LongDesc: `Get deployment records by filters. Example: shivas get host-deployment {serialNumber1} {serialNumber2} shivas get host-deployment -host host1 -host host2 -deploymentID id1 -deploymentID id2 Gets the deployment records and prints the output in user-specified format.`, CommandRun: func() subcommands.CommandRun { c := &getMachineLSEDeployment{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.outputFlags.Register(&c.Flags) c.Flags.IntVar(&c.pageSize, "n", 0, cmdhelp.ListPageSizeDesc) c.Flags.BoolVar(&c.keysOnly, "keys", false, cmdhelp.KeysOnlyText) c.Flags.Var(flag.StringSlice(&c.hosts), "host", "Name(s) of a hostname to filter by. Can be specified multiple times.") c.Flags.Var(flag.StringSlice(&c.deploymentIDs), "deploymentID", "Identifier(s) of a unique deployment ID to filter by. Can be specified multiple times.") c.Flags.Var(flag.StringSlice(&c.deploymentEnvs), "deploymentEnv", "Deployment env(s) to filter by. Can be specified multiple times."+cmdhelp.DeploymentEnvFilterHelpText) return c }, }
GetMachineLSEDeploymentCmd get machine lse deployment by given name.
View Source
var UpdateMachineLSEDeploymentCmd = &subcommands.Command{ UsageLine: "host-deployment ...", ShortDesc: "Create/Update a deployment record", LongDesc: `Create/Update a deployment record. Example: shivas update host-deployment -serial serial1 -host host2 -deployment-id id3 Create/Update a deployment record.`, CommandRun: func() subcommands.CommandRun { c := &updateMachineLSEDeployment{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.commonFlags.Register(&c.Flags) c.Flags.StringVar(&c.serial, "serial", "", "the serial of the deployment record to create/update") c.Flags.StringVar(&c.host, "host", "", "the hostname of the deployment record to update") c.Flags.StringVar(&c.deploymentID, "deployment-id", "", "the deployment identifier of the deployment record to update") c.Flags.StringVar(&c.deploymentEnv, "deployment-env", "", "the deployment env of the deployment record to update."+cmdhelp.DeploymentEnvFilterHelpText) c.Flags.BoolVar(&c.noHostYet, "no-host-yet", false, "If true, the host will be reset to no-host-yet-<serial>") return c }, }
UpdateMachineLSEDeploymentCmd create/update a machine lse deployment record by the given info
Functions ¶
func ListMachineLSEDeployments ¶
func ListMachineLSEDeployments(ctx context.Context, ic ufsAPI.FleetClient, pageSize int32, pageToken, filter string, keysOnly, full bool) ([]proto.Message, string, error)
ListMachineLSEDeployments calls the list MachineLSEDeployments to get a list of host deployment records.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.