Documentation ¶
Index ¶
- type Command
- func (c *Command) Argument(name string, val string) types.ReflectManagedMethodExecuterSoapArgument
- func (c *Command) Method() string
- func (c *Command) Moid() string
- func (c *Command) Name() string
- func (c *Command) Namespace() string
- func (c *Command) Parse(params []CommandInfoParam) ([]types.ReflectManagedMethodExecuterSoapArgument, error)
- type CommandInfo
- type CommandInfoHint
- type CommandInfoHints
- type CommandInfoItem
- type CommandInfoMethod
- type CommandInfoParam
- type Executor
- type GuestInfo
- type Response
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func (*Command) Argument ¶
func (c *Command) Argument(name string, val string) types.ReflectManagedMethodExecuterSoapArgument
func (*Command) Parse ¶
func (c *Command) Parse(params []CommandInfoParam) ([]types.ReflectManagedMethodExecuterSoapArgument, error)
Parse generates a flag.FlagSet based on the given []CommandInfoParam and returns arguments for use with methods.ExecuteSoap
type CommandInfo ¶
type CommandInfo struct { CommandInfoItem Method []*CommandInfoMethod `xml:"method"` }
type CommandInfoHint ¶
type CommandInfoHints ¶
type CommandInfoHints []CommandInfoHint
func (CommandInfoHints) Fields ¶
func (h CommandInfoHints) Fields() []string
func (CommandInfoHints) Formatter ¶
func (h CommandInfoHints) Formatter() string
type CommandInfoItem ¶
type CommandInfoMethod ¶
type CommandInfoMethod struct { CommandInfoItem Param []CommandInfoParam `xml:"param"` Hints CommandInfoHints `xml:"hints"` }
type CommandInfoParam ¶
type CommandInfoParam struct { CommandInfoItem Aliases []string `xml:"aliases"` Flag bool `xml:"flag"` }
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func (*Executor) CommandInfo ¶
func (e *Executor) CommandInfo(c *Command) (*CommandInfoMethod, error)
func (*Executor) Execute ¶
func (e *Executor) Execute(req *types.ExecuteSoap, res interface{}) error
func (*Executor) NewRequest ¶
func (e *Executor) NewRequest(args []string) (*types.ExecuteSoap, *CommandInfoMethod, error)
type GuestInfo ¶
type GuestInfo struct {
// contains filtered or unexported fields
}
func NewGuestInfo ¶
func (*GuestInfo) IpAddress ¶
func (g *GuestInfo) IpAddress(vm *govmomi.VirtualMachine) (string, error)
IpAddress attempts to find the guest IP address using esxcli. ESX hosts must be configured with the /Net/GuestIPHack enabled. For example: $ govc host.esxcli -- system settings advanced set -o /Net/GuestIPHack -i 1
type Response ¶
type Response struct { Info *CommandInfoMethod Values []Values }
func (*Response) UnmarshalXML ¶
Click to show internal directories.
Click to hide internal directories.