Versions in this module Expand all Collapse all v0 v0.54.0-alpha.0 Feb 18, 2026 v0.53.0 Feb 18, 2026 v0.53.0-alpha.0 Aug 18, 2025 v0.52.0 Aug 18, 2025 v0.52.0-alpha.0 May 23, 2025 v0.51.0 May 23, 2025 v0.51.0-alpha.0 Apr 21, 2025 v0.50.0 Apr 21, 2025 v0.50.0-alpha.0 Mar 11, 2025 v0.49.0 Mar 11, 2025 v0.49.0-alpha.0 Jan 27, 2025 v0.48.1 Feb 11, 2025 v0.48.0 Jan 27, 2025 v0.48.0-alpha.0 Jan 2, 2025 v0.47.1 Jan 7, 2025 v0.47.0 Jan 2, 2025 Changes in this version + const SearchHosts + const SearchVirtualApps + const SearchVirtualMachines + var BuildCommit string + var BuildDate string + var BuildVersion = "v0.0.0" + func ContentLibrary(ctx context.Context, c *rest.Client, path string) (*library.Library, error) + func ContentLibraryItem(ctx context.Context, c *rest.Client, path string) (*library.Item, error) + func ContentLibraryResult(ctx context.Context, c *rest.Client, kind string, path string) (finder.FindResult, error) + func NewInt32(v *int32) flag.Value + func NewInt64(v *int64) flag.Value + func NewOptionalBool(v **bool) flag.Value + func NewOptionalInt32(v **int32) flag.Value + func NewOptionalInt64(v **int64) flag.Value + func NewOptionalString(v **string) flag.Value + func ParseVersion(s string) (version, error) + type ClientFlag struct + Session cache.Session + func NewClientFlag(ctx context.Context) (*ClientFlag, context.Context) + func (c *ClientFlag) ProcessOnce(fn func() error) (err error) + func (c *ClientFlag) RegisterOnce(fn func()) + func (flag *ClientFlag) Client() (*vim25.Client, error) + func (flag *ClientFlag) CnsClient() (*cns.Client, error) + func (flag *ClientFlag) ConfigureTLS(sc *soap.Client) error + func (flag *ClientFlag) Environ(extra bool) []string + func (flag *ClientFlag) KeepAlive(client cache.Client) + func (flag *ClientFlag) Logout(ctx context.Context) error + func (flag *ClientFlag) PbmClient() (*pbm.Client, error) + func (flag *ClientFlag) Process(ctx context.Context) error + func (flag *ClientFlag) Register(ctx context.Context, f *flag.FlagSet) + func (flag *ClientFlag) RestClient() (*rest.Client, error) + func (flag *ClientFlag) RoundTripper(c *soap.Client) soap.RoundTripper + func (flag *ClientFlag) Set(s string) error + func (flag *ClientFlag) SetRootCAs(c *soap.Client) error + func (flag *ClientFlag) String() string + func (flag *ClientFlag) WithCancel(ctx context.Context, f func(context.Context) error) error + type ClusterFlag struct + Name string + func NewClusterFlag(ctx context.Context) (*ClusterFlag, context.Context) + func (c *ClusterFlag) ProcessOnce(fn func() error) (err error) + func (c *ClusterFlag) RegisterOnce(fn func()) + func (f *ClusterFlag) Cluster() (*object.ClusterComputeResource, error) + func (f *ClusterFlag) ClusterIfSpecified() (*object.ClusterComputeResource, error) + func (f *ClusterFlag) Names(ctx context.Context, refs []types.ManagedObjectReference) (map[types.ManagedObjectReference]string, error) + func (f *ClusterFlag) ObjectList(ctx context.Context, kind string, names []string) ([]types.ManagedObjectReference, error) + func (f *ClusterFlag) Process(ctx context.Context) error + func (f *ClusterFlag) Reconfigure(ctx context.Context, spec types.BaseComputeResourceConfigSpec) error + func (f *ClusterFlag) Register(ctx context.Context, fs *flag.FlagSet) + func (f *ClusterFlag) RegisterPlacement(ctx context.Context, fs *flag.FlagSet) + type DatacenterFlag struct + Name string + func NewDatacenterFlag(ctx context.Context) (*DatacenterFlag, context.Context) + func (c *DatacenterFlag) ProcessOnce(fn func() error) (err error) + func (c *DatacenterFlag) RegisterOnce(fn func()) + func (flag *DatacenterFlag) Datacenter() (*object.Datacenter, error) + func (flag *DatacenterFlag) DatacenterIfSpecified() (*object.Datacenter, error) + func (flag *DatacenterFlag) Finder(all ...bool) (*find.Finder, error) + func (flag *DatacenterFlag) ManagedObject(ctx context.Context, arg string) (types.ManagedObjectReference, error) + func (flag *DatacenterFlag) ManagedObjects(ctx context.Context, args []string) ([]types.ManagedObjectReference, error) + func (flag *DatacenterFlag) Process(ctx context.Context) error + func (flag *DatacenterFlag) Register(ctx context.Context, f *flag.FlagSet) + type DatastoreFlag struct + Name string + func NewCustomDatastoreFlag(ctx context.Context) (*DatastoreFlag, context.Context) + func NewDatastoreFlag(ctx context.Context) (*DatastoreFlag, context.Context) + func (c *DatastoreFlag) ProcessOnce(fn func() error) (err error) + func (c *DatastoreFlag) RegisterOnce(fn func()) + func (f *DatastoreFlag) Args(args []string) []object.DatastorePath + func (f *DatastoreFlag) Datastore() (*object.Datastore, error) + func (f *DatastoreFlag) DatastorePath(name string) (string, error) + func (f *DatastoreFlag) FileBacking(ctx context.Context, file string, stat bool) (string, error) + func (f *DatastoreFlag) Process(ctx context.Context) error + func (f *DatastoreFlag) Register(ctx context.Context, fs *flag.FlagSet) + func (f *DatastoreFlag) Stat(ctx context.Context, file string) (types.BaseFileInfo, error) + func (flag *DatastoreFlag) DatastoreIfSpecified() (*object.Datastore, error) + func (flag *DatastoreFlag) IsSet() bool + type DebugFlag struct + func NewDebugFlag(ctx context.Context) (*DebugFlag, context.Context) + func (c *DebugFlag) ProcessOnce(fn func() error) (err error) + func (c *DebugFlag) RegisterOnce(fn func()) + func (flag *DebugFlag) Process(ctx context.Context) error + func (flag *DebugFlag) Register(ctx context.Context, f *flag.FlagSet) + func (flag *DebugFlag) Verbose() bool + type EmptyFlag struct + func (flag *EmptyFlag) Process(ctx context.Context) error + func (flag *EmptyFlag) Register(ctx context.Context, f *flag.FlagSet) + type EnvBrowser struct + func (cmd *EnvBrowser) Browser(ctx context.Context) (*object.EnvironmentBrowser, error) + func (cmd *EnvBrowser) Process(ctx context.Context) error + func (cmd *EnvBrowser) Register(ctx context.Context, f *flag.FlagSet) + type FolderFlag struct + func NewFolderFlag(ctx context.Context) (*FolderFlag, context.Context) + func (c *FolderFlag) ProcessOnce(fn func() error) (err error) + func (c *FolderFlag) RegisterOnce(fn func()) + func (flag *FolderFlag) Folder() (*object.Folder, error) + func (flag *FolderFlag) FolderIfSpecified() (*object.Folder, error) + func (flag *FolderFlag) FolderOrDefault(kind string) (*object.Folder, error) + func (flag *FolderFlag) IsSet() bool + func (flag *FolderFlag) Process(ctx context.Context) error + func (flag *FolderFlag) Register(ctx context.Context, f *flag.FlagSet) + type HostConnectFlag struct + func NewHostConnectFlag(ctx context.Context) (*HostConnectFlag, context.Context) + func (c *HostConnectFlag) ProcessOnce(fn func() error) (err error) + func (c *HostConnectFlag) RegisterOnce(fn func()) + func (flag *HostConnectFlag) Fault(err error) error + func (flag *HostConnectFlag) Process(ctx context.Context) error + func (flag *HostConnectFlag) Register(ctx context.Context, f *flag.FlagSet) + func (flag *HostConnectFlag) Spec(c *vim25.Client) types.HostConnectSpec + type HostSystemFlag struct + func NewHostSystemFlag(ctx context.Context) (*HostSystemFlag, context.Context) + func (c *HostSystemFlag) ProcessOnce(fn func() error) (err error) + func (c *HostSystemFlag) RegisterOnce(fn func()) + func (flag *HostSystemFlag) HostNetworkSystem() (*object.HostNetworkSystem, error) + func (flag *HostSystemFlag) HostSystem() (*object.HostSystem, error) + func (flag *HostSystemFlag) HostSystemIfSpecified() (*object.HostSystem, error) + func (flag *HostSystemFlag) Process(ctx context.Context) error + func (flag *HostSystemFlag) Register(ctx context.Context, f *flag.FlagSet) + type NetworkFlag struct + func NewNetworkFlag(ctx context.Context) (*NetworkFlag, context.Context) + func (c *NetworkFlag) ProcessOnce(fn func() error) (err error) + func (c *NetworkFlag) RegisterOnce(fn func()) + func (flag *NetworkFlag) Change(device types.BaseVirtualDevice, update types.BaseVirtualDevice) + func (flag *NetworkFlag) Device() (types.BaseVirtualDevice, error) + func (flag *NetworkFlag) IsSet() bool + func (flag *NetworkFlag) Network() (object.NetworkReference, error) + func (flag *NetworkFlag) Process(ctx context.Context) error + func (flag *NetworkFlag) Register(ctx context.Context, f *flag.FlagSet) + func (flag *NetworkFlag) Set(name string) error + func (flag *NetworkFlag) String() string + type OutputFlag struct + Dump bool + JSON bool + Out io.Writer + Spec bool + TTY bool + XML bool + func NewOutputFlag(ctx context.Context) (*OutputFlag, context.Context) + func (c *OutputFlag) ProcessOnce(fn func() error) (err error) + func (c *OutputFlag) RegisterOnce(fn func()) + func (flag *OutputFlag) All() bool + func (flag *OutputFlag) Log(s string) (int, error) + func (flag *OutputFlag) Process(ctx context.Context) error + func (flag *OutputFlag) ProgressLogger(prefix string) *progress.ProgressLogger + func (flag *OutputFlag) Register(ctx context.Context, f *flag.FlagSet) + func (flag *OutputFlag) Write(b []byte) (int, error) + func (flag *OutputFlag) WriteAny(val any) error + func (flag *OutputFlag) WriteError(err error) bool + func (flag *OutputFlag) WriteResult(result OutputWriter) error + func (flag *OutputFlag) WriteString(s string) (int, error) + type OutputWriter interface + Write func(io.Writer) error + type ResourceAllocationFlag struct + ExpandableReservation bool + func NewResourceAllocationFlag(cpu, mem *types.ResourceAllocationInfo) *ResourceAllocationFlag + func (r *ResourceAllocationFlag) Register(ctx context.Context, f *flag.FlagSet) + func (s *ResourceAllocationFlag) Process(ctx context.Context) error + type ResourcePoolFlag struct + func NewResourcePoolFlag(ctx context.Context) (*ResourcePoolFlag, context.Context) + func (c *ResourcePoolFlag) ProcessOnce(fn func() error) (err error) + func (c *ResourcePoolFlag) RegisterOnce(fn func()) + func (flag *ResourcePoolFlag) IsSet() bool + func (flag *ResourcePoolFlag) Process(ctx context.Context) error + func (flag *ResourcePoolFlag) Register(ctx context.Context, f *flag.FlagSet) + func (flag *ResourcePoolFlag) ResourcePool() (*object.ResourcePool, error) + func (flag *ResourcePoolFlag) ResourcePoolIfSpecified() (*object.ResourcePool, error) + type SearchFlag struct + func NewSearchFlag(ctx context.Context, t int) (*SearchFlag, context.Context) + func (c *SearchFlag) ProcessOnce(fn func() error) (err error) + func (c *SearchFlag) RegisterOnce(fn func()) + func (flag *SearchFlag) HostSystem() (*object.HostSystem, error) + func (flag *SearchFlag) HostSystems(args []string) ([]*object.HostSystem, error) + func (flag *SearchFlag) IsSet() bool + func (flag *SearchFlag) Process(ctx context.Context) error + func (flag *SearchFlag) Register(ctx context.Context, fs *flag.FlagSet) + func (flag *SearchFlag) VirtualApp() (*object.VirtualApp, error) + func (flag *SearchFlag) VirtualApps(args []string) ([]*object.VirtualApp, error) + func (flag *SearchFlag) VirtualMachine() (*object.VirtualMachine, error) + func (flag *SearchFlag) VirtualMachines(args []string) ([]*object.VirtualMachine, error) + type StoragePodFlag struct + Name string + func NewStoragePodFlag(ctx context.Context) (*StoragePodFlag, context.Context) + func (c *StoragePodFlag) ProcessOnce(fn func() error) (err error) + func (c *StoragePodFlag) RegisterOnce(fn func()) + func (f *StoragePodFlag) Isset() bool + func (f *StoragePodFlag) Process(ctx context.Context) error + func (f *StoragePodFlag) Register(ctx context.Context, fs *flag.FlagSet) + func (f *StoragePodFlag) StoragePod() (*object.StoragePod, error) + type StorageProfileFlag struct + Name []string + func NewStorageProfileFlag(ctx context.Context, option ...string) (*StorageProfileFlag, context.Context) + func (c StorageProfileFlag) ProcessOnce(fn func() error) (err error) + func (c StorageProfileFlag) RegisterOnce(fn func()) + func (e *StorageProfileFlag) Set(value string) error + func (e *StorageProfileFlag) String() string + func (flag *StorageProfileFlag) Register(ctx context.Context, f *flag.FlagSet) + func (flag *StorageProfileFlag) StorageProfile(ctx context.Context) (string, error) + func (flag *StorageProfileFlag) StorageProfileList(ctx context.Context) ([]string, error) + func (flag *StorageProfileFlag) StorageProfileSpec(ctx context.Context) ([]types.BaseVirtualMachineProfileSpec, error) + type StringList []string + func (l *StringList) Set(value string) error + func (l *StringList) String() string + type VirtualAppFlag struct + func NewVirtualAppFlag(ctx context.Context) (*VirtualAppFlag, context.Context) + func (c *VirtualAppFlag) ProcessOnce(fn func() error) (err error) + func (c *VirtualAppFlag) RegisterOnce(fn func()) + func (flag *VirtualAppFlag) Process(ctx context.Context) error + func (flag *VirtualAppFlag) Register(ctx context.Context, f *flag.FlagSet) + func (flag *VirtualAppFlag) VirtualApp() (*object.VirtualApp, error) + type VirtualMachineFlag struct + func NewVirtualMachineFlag(ctx context.Context) (*VirtualMachineFlag, context.Context) + func (c *VirtualMachineFlag) ProcessOnce(fn func() error) (err error) + func (c *VirtualMachineFlag) RegisterOnce(fn func()) + func (flag *VirtualMachineFlag) Process(ctx context.Context) error + func (flag *VirtualMachineFlag) Register(ctx context.Context, f *flag.FlagSet) + func (flag *VirtualMachineFlag) VirtualMachine() (*object.VirtualMachine, error)