Documentation ¶
Index ¶
- func FromID(client *govmomi.Client, id string) (*object.Datastore, error)
- func FromPath(client *govmomi.Client, name string, dc *object.Datacenter) (*object.Datastore, error)
- func MoveToFolder(client *govmomi.Client, ds *object.Datastore, relative string) error
- func MoveToFolderRelativeHostSystemID(client *govmomi.Client, ds *object.Datastore, hsID, relative string) error
- func Properties(ds *object.Datastore) (*mo.Datastore, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromPath ¶
func FromPath(client *govmomi.Client, name string, dc *object.Datacenter) (*object.Datastore, error)
FromPath loads a datastore from its path. The datacenter is optional if the path is specific enough to not require it.
func MoveToFolder ¶
MoveToFolder is a complex method that moves a datastore to a given relative datastore folder path. "Relative" here means relative to a datacenter, which is discovered from the current datastore path.
func MoveToFolderRelativeHostSystemID ¶
func MoveToFolderRelativeHostSystemID(client *govmomi.Client, ds *object.Datastore, hsID, relative string) error
MoveToFolderRelativeHostSystemID is a complex method that moves a datastore to a given datastore path, similar to MoveToFolder, except the path is relative to a HostSystem supplied by ID instead of the datastore.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.