contentlibrary

package
v1.24.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2020 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

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

func DeleteLibrary(c *rest.Client, lib *library.Library) error

DeleteLibrary deletes a Content Library.

func DeleteLibraryItem

func DeleteLibraryItem(c *rest.Client, item *library.Item) error

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 added in v1.24.0

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 added in v1.24.0

func FlattenSubscription(d *schema.ResourceData, subscription *library.Subscription) error

FlattenSubscription takes a Subscription sub resource and sets it in ResourceData.

func FromID

func FromID(c *rest.Client, id string) (*library.Library, error)

FromID accepts a Content Library ID and returns a Library object.

func FromName

func FromName(c *rest.Client, name string) (*library.Library, error)

FromName accepts a Content Library name and returns a Library object.

func IsContentLibraryItem

func IsContentLibraryItem(c *rest.Client, id string) bool

IsContentLibraryItem accepts an ID and determines if that ID is associated with an item in a Content Library.

func ItemFromID

func ItemFromID(c *rest.Client, id string) (*library.Item, error)

ItemFromID accepts a Content Library item ID and will return the item object.

func ItemFromName

func ItemFromName(c *rest.Client, l *library.Library, name string) (*library.Item, error)

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

func UpdateLibrary(c *rest.Client, ol *library.Library, name string, description string, backings []library.StorageBackings) error

UpdateLibrary is where Content Library updates will be applied when the function is supported in govmomi.

func UpdateLibraryItem

func UpdateLibraryItem(c *rest.Client, l *library.Library, oi *library.Item, name string, desc string) (string, error)

UpdateLibraryItem updates an item in a Content Library.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL