Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultContentLibAPIWaitSecs = 5
)
Variables ¶
This section is empty.
Functions ¶
func IsSupportedDeployType ¶
func UpdateVmiWithOvfEnvelope ¶
UpdateVmiWithOvfEnvelope updates the given VMI object from an OVF envelope.
func UpdateVmiWithVirtualMachine ¶ added in v1.10.0
UpdateVmiWithVirtualMachine updates the given VMI object from a mo.VirtualMachine data structure.
Types ¶
type Provider ¶
type Provider interface {
GetLibraryItems(ctx context.Context, clUUID string) ([]library.Item, error)
GetLibraryItem(ctx context.Context, libraryUUID, itemName string,
notFoundReturnErr bool) (*library.Item, error)
GetLibraryItemID(ctx context.Context, itemUUID string) (*library.Item, error)
ListLibraryItems(ctx context.Context, libraryUUID string) ([]string, error)
UpdateLibraryItem(ctx context.Context, itemID, newName string, newDescription *string) error
RetrieveOvfEnvelopeFromLibraryItem(ctx context.Context, item *library.Item) (*ovf.Envelope, error)
RetrieveOvfEnvelopeByLibraryItemID(ctx context.Context, itemID string) (*ovf.Envelope, error)
SyncLibraryItem(ctx context.Context, item *library.Item, force bool) error
ListLibraryItemStorage(ctx context.Context, itemID string) ([]library.Storage, error)
ResolveLibraryItemStorage(ctx context.Context, datacenter *object.Datacenter, storage []library.Storage) error
// TODO: Testing only. Remove these from this file.
CreateLibraryItem(ctx context.Context, libraryItem library.Item, path string) error
}
Click to show internal directories.
Click to hide internal directories.