Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - Variables
 - func AppendDir(u *url.URL, dir string)
 - func ClientIP() (net.IP, error)
 - func DisplayName(op trace.Operation, cfg *spec.VirtualMachineConfigSpecConfig, ...) string
 - func Host() *url.URL
 - func ImageDatastoreURL(path *object.DatastorePath) *url.URL
 - func ImageStoreName(u *url.URL) (string, error)
 - func ImageStoreNameToURL(storeName string) (*url.URL, error)
 - func ImageURL(storeName, imageName string) (*url.URL, error)
 - func ServiceURL(serviceName string) *url.URL
 - func VolumeStoreName(u *url.URL) (string, error)
 - func VolumeStoreNameToURL(storeName string) (*url.URL, error)
 - func VolumeURL(storeName, volumeName string) (*url.URL, error)
 
Constants ¶
      View Source
      
  
const ( StorageURLPath = "storage" ImageURLPath = StorageURLPath + "/images" VolumeURLPath = StorageURLPath + "/volumes" )
Variables ¶
      View Source
      
  
var (
	DefaultHost = Host()
)
    Functions ¶
func DisplayName ¶
func DisplayName(op trace.Operation, cfg *spec.VirtualMachineConfigSpecConfig, namingConvention string) string
Update the VM display name on vSphere UI
func ImageDatastoreURL ¶
func ImageDatastoreURL(path *object.DatastorePath) *url.URL
ImageDatastoreURL takes a datastore path object and converts it into a stable URL for with a "ds" scheme
func ImageStoreNameToURL ¶
ImageStoreNameToURL parses the image URL in the form /storage/images/<image store>/<image name>
func ImageURL ¶
ImageURL converts a store and image name into an URL that is an internal imagestore representation NOTE: this is NOT a datastore URL and cannot be used in any calls that expect a ds:// scheme
func ServiceURL ¶
ServiceURL returns the URL for a given service relative to this host
func VolumeStoreNameToURL ¶
VolumeStoreNameToURL parses the volume URL in the form /storage/volumes/<volume store>/<volume name>
Types ¶
This section is empty.
      
      Source Files
      ¶
    
- paths.go
 - util.go
 
 Click to show internal directories. 
   Click to hide internal directories.