contentlibrary

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

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 FlattenStorageBackings

func FlattenStorageBackings(sb []library.StorageBackings) []string

FlattenStorageBackings takes a list of StorageBackings, and returns a list of datastore IDs.

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

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