Documentation ¶
Index ¶
- func CreateLibrary(c *rest.Client, name string, description string, ...) (string, error)
- func CreateLibraryItem(c *rest.Client, l *library.Library, name string, desc string, t string, ...) (string, error)
- func DeleteLibrary(c *rest.Client, lib *library.Library) error
- func DeleteLibraryItem(c *rest.Client, item *library.Item) error
- func ExpandStorageBackings(c *govmomi.Client, d *schema.ResourceData) ([]library.StorageBackings, error)
- func FlattenStorageBackings(sb []library.StorageBackings) []string
- func FromID(c *rest.Client, id string) (*library.Library, error)
- func FromName(c *rest.Client, name string) (*library.Library, error)
- func IsContentLibraryItem(c *rest.Client, id string) bool
- func ItemFromID(c *rest.Client, id string) (*library.Item, error)
- func ItemFromName(c *rest.Client, l *library.Library, name string) (*library.Item, error)
- func MapNetworkDevices(d *schema.ResourceData) []vcenter.NetworkMapping
- func MapStorageDevices(d *schema.ResourceData) []vcenter.StorageMapping
- func UpdateLibrary(c *rest.Client, ol *library.Library, name string, description string, ...) error
- func UpdateLibraryItem(c *rest.Client, l *library.Library, oi *library.Item, name string, desc string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLibrary ¶
func CreateLibrary(c *rest.Client, name string, description string, backings []library.StorageBackings) (string, error)
CreateLibrary creates a Content Library.
func CreateLibraryItem ¶
func CreateLibraryItem(c *rest.Client, l *library.Library, name string, desc string, t string, files []interface{}) (string, error)
CreateLibraryItem creates an item in a Content Library.
func DeleteLibrary ¶
DeleteLibrary deletes a Content Library.
func DeleteLibraryItem ¶
DeleteLibraryItem deletes an item from a Content Library.
func ExpandStorageBackings ¶
func ExpandStorageBackings(c *govmomi.Client, d *schema.ResourceData) ([]library.StorageBackings, error)
ExpandStorageBackings takes ResourceData, and returns a list of StorageBackings.
func FlattenStorageBackings ¶
func FlattenStorageBackings(sb []library.StorageBackings) []string
FlattenStorageBackings takes a list of StorageBackings, and returns a list of datastore IDs.
func IsContentLibraryItem ¶
IsContentLibraryItem accepts an ID and determines if that ID is associated with an item in a Content Library.
func ItemFromID ¶
ItemFromID accepts a Content Library item ID and will return the item object.
func ItemFromName ¶
ItemFromName accepts a Content Library item name along with a Content Library and will return the item object.
func MapNetworkDevices ¶
func MapNetworkDevices(d *schema.ResourceData) []vcenter.NetworkMapping
MapNetworkDevices maps NICs defined in the OVF to networks..
func MapStorageDevices ¶
func MapStorageDevices(d *schema.ResourceData) []vcenter.StorageMapping
MapStorageDevices maps disks defined in the OVF to datastores.
func UpdateLibrary ¶
Types ¶
This section is empty.