Documentation ¶
Index ¶
- func CreateLibrary(d *schema.ResourceData, restclient *rest.Client, ...) (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 FlattenPublication(d *schema.ResourceData, publication *library.Publication) error
- func FlattenStorageBackings(d *schema.ResourceData, sb []library.StorageBackings) error
- func FlattenSubscription(d *schema.ResourceData, subscription *library.Subscription) error
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLibrary ¶
func CreateLibrary(d *schema.ResourceData, restclient *rest.Client, 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, file string, moid string) (*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 FlattenPublication ¶
func FlattenPublication(d *schema.ResourceData, publication *library.Publication) error
FlattenPublication takes a Publication sub resource and sets it in ResourceData.
func FlattenStorageBackings ¶
func FlattenStorageBackings(d *schema.ResourceData, sb []library.StorageBackings) error
FlattenStorageBackings takes a list of StorageBackings, and returns a list of datastore IDs.
func FlattenSubscription ¶
func FlattenSubscription(d *schema.ResourceData, subscription *library.Subscription) error
FlattenSubscription takes a Subscription sub resource and sets it in ResourceData.
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..
Types ¶
This section is empty.