vmware_method_operation

package
v0.0.0-...-4839613 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Insecure = &cli.BoolFlag{
	Name:  "insecure",
	Usage: "Validate flag for server certificate.",
}
View Source
var List = &cli.StringSliceFlag{
	Name:    "list",
	Aliases: []string{"l"},
	Usage:   "Method list.",
}
View Source
var Method = &cli.Command{
	Name:    "method",
	Aliases: []string{"m"},
	Usage:   "Command to enable/disable method.",
	Subcommands: []*cli.Command{
		{
			Name:    "list",
			Aliases: []string{"l"},
			Usage:   "Display disabled methods.",
			Flags: []cli.Flag{
				URL,
				UserName,
				Password,
				Insecure,
				VM,
			},
			Action: func(c *cli.Context) error {
				get_disable_methods(c)
				return nil
			},
		},
		{
			Name:    "enable",
			Aliases: []string{"e"},
			Usage:   "Enable methods.",
			Flags: []cli.Flag{
				URL,
				UserName,
				Password,
				Insecure,
				VM,
				List,
			},
			Action: func(c *cli.Context) error {
				enable_methods(c)
				return nil
			},
		},
		{
			Name:    "disable",
			Aliases: []string{"d"},
			Usage:   "Disable methods.",
			Flags: []cli.Flag{
				URL,
				UserName,
				Password,
				Insecure,
				VM,
				List,
			},
			Action: func(c *cli.Context) error {
				disable_methods(c)
				return nil
			},
		},
	},
}
View Source
var Password = &cli.StringFlag{
	Name:  "password",
	Usage: "vCenter User Password",
}
View Source
var URL = &cli.StringFlag{
	Name:    "url",
	Aliases: []string{"u"},
	Usage:   "ESX or vCenter URL",
}
View Source
var UserName = &cli.StringFlag{
	Name:  "username",
	Usage: "vCenter User Name",
	Value: "administrator@vsphere.local",
}
View Source
var VM = &cli.StringFlag{
	Name:  "vm",
	Usage: "VM name to enable/disable the method.",
}

Functions

func Do

func Do()

Types

This section is empty.

Jump to

Keyboard shortcuts

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