Versions in this module Expand all Collapse all v0 v0.1.0 Sep 4, 2020 Changes in this version + type DeployInfo struct + AlreadyExists bool + TemplateName string + VMObject *object.VirtualMachine + type Session struct + Conn *govmomi.Client + Ctx context.Context + Datacenter *object.Datacenter + Datastore *object.Datastore + Folder *object.Folder + Network object.NetworkReference + ResourcePool *object.ResourcePool + func NewClient(ctx context.Context, server string, username string, password string) (*Session, error) + func (s *Session) DatastoreCapacity() (capacity, free float64, err error) + func (s *Session) DeployOVATemplate(templatePath string) (DeployInfo, error) + func (s *Session) DeployOVATemplates(templatePaths ...string) (map[string]DeployInfo, error) + func (s *Session) GetDatacenterOrDefault(name string) (*object.Datacenter, error) + func (s *Session) GetDatastoreOrDefault(name string) (*object.Datastore, error) + func (s *Session) GetFolderOrDefault(name string) (*object.Folder, error) + func (s *Session) GetNetworkOrDefault(name string) (object.NetworkReference, error) + func (s *Session) GetResourcePoolOrDefault(name string) (*object.ResourcePool, error) + func (s *Session) GetVM(name string) (*object.VirtualMachine, error) + func (s *Session) GetVMTotalStorageSize(vmName string) (size float64, err error)