machineprototype

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddMachineLSEPrototypeCmd = &subcommands.Command{
	UsageLine: "machine-prototype",
	ShortDesc: "Add prototype for a host",
	LongDesc:  cmdhelp.AddMachineLSEPrototypeLongDesc,
	CommandRun: func() subcommands.CommandRun {
		c := &addMachineLSEPrototype{}
		c.authFlags.Register(&c.Flags, site.DefaultAuthOptions)
		c.envFlags.Register(&c.Flags)
		c.Flags.StringVar(&c.newSpecsFile, "f", "", cmdhelp.MachineLSEPrototypeFileText)
		c.Flags.BoolVar(&c.interactive, "i", false, "enable interactive mode for input")
		return c
	},
}

AddMachineLSEPrototypeCmd add MachineLSEPrototype to the system.

View Source
var DeleteMachineLSEPrototypeCmd = &subcommands.Command{
	UsageLine: "machine-prototype",
	ShortDesc: "Delete prototype for a host",
	LongDesc: `Delete prototype for a host.

Example:
shivas delete-machine-prototype {Machine Prototype Name}
Deletes the given machine prototype.`,
	CommandRun: func() subcommands.CommandRun {
		c := &deleteMachineLSEPrototype{}
		c.authFlags.Register(&c.Flags, site.DefaultAuthOptions)
		c.envFlags.Register(&c.Flags)
		return c
	},
}

DeleteMachineLSEPrototypeCmd delete MachineLSEPrototype by given name.

View Source
var GetMachineLSEPrototypeCmd = &subcommands.Command{
	UsageLine: "machine-prototype ...",
	ShortDesc: "Get machine prototype details by filters",
	LongDesc: `Get machine prototype details by filters.

Example:
shivas get machine-prototype name1 name2

shivas get machine-prototype -tag tag1

shivas get machine-prototype

Gets the machine prototype and prints the output in the user-specified format.`,
	CommandRun: func() subcommands.CommandRun {
		c := &getMachineLSEPrototype{}
		c.authFlags.Register(&c.Flags, site.DefaultAuthOptions)
		c.envFlags.Register(&c.Flags)
		c.commonFlags.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.tags), "tag", "Name(s) of a tag to filter by. Can be specified multiple times.")
		return c
	},
}

GetMachineLSEPrototypeCmd get MachineLSEPrototype by given name.

View Source
var UpdateMachineLSEPrototypeCmd = &subcommands.Command{
	UsageLine: "machine-prototype",
	ShortDesc: "Update prototype for a host",
	LongDesc:  cmdhelp.UpdateMachineLSEPrototypeLongDesc,
	CommandRun: func() subcommands.CommandRun {
		c := &updateMachineLSEPrototype{}
		c.authFlags.Register(&c.Flags, site.DefaultAuthOptions)
		c.envFlags.Register(&c.Flags)
		c.Flags.StringVar(&c.newSpecsFile, "f", "", cmdhelp.MachineLSEPrototypeFileText)
		c.Flags.BoolVar(&c.interactive, "i", false, "enable interactive mode for input")
		return c
	},
}

UpdateMachineLSEPrototypeCmd update MachineLSEPrototype by given name.

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