Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvContentLibAPIWaitSecs = "CONTENT_API_WAIT_SECS" // BMV: Investigate if setting this to 1 actually reduces the integration test time. DefaultContentLibAPIWaitSecs = 5 )
Variables ¶
This section is empty.
Functions ¶
func IsSupportedDeployType ¶
func LibItemToVirtualMachineImage ¶
func LibItemToVirtualMachineImage( item *library.Item, ovfEnvelope *ovf.Envelope) *v1alpha1.VirtualMachineImage
LibItemToVirtualMachineImage converts a given library item and its attributes to return a VirtualMachineImage that represents a k8s-native view of the item.
func ParseVirtualHardwareVersion ¶
ParseVirtualHardwareVersion parses the virtual hardware version For eg. "vmx-15" returns 15.
Types ¶
type ImageConditionWrapper ¶
type ImageConditionWrapper interface { conditions.Setter conditions.Getter }
type Provider ¶
type Provider interface { GetLibraryItems(ctx context.Context, clUUID string) ([]library.Item, error) GetLibraryItem(ctx context.Context, clUUID, itemName string) (*library.Item, error) ListLibraryItems(ctx context.Context, libraryUUID string) ([]string, error) GetLibraryItemIDsByName(ctx context.Context, libraryUUID, itemName string) ([]string, error) RetrieveOvfEnvelopeFromLibraryItem(ctx context.Context, item *library.Item) (*ovf.Envelope, error) SyncVirtualMachineImage(ctx context.Context, itemID string, vmi client.Object) error // TODO: Testing only. Remove these from this file. CreateLibraryItem(ctx context.Context, libraryItem library.Item, path string) error VirtualMachineImageResourceForLibrary(ctx context.Context, itemID string, clUUID string, currentCLImages map[string]v1alpha1.VirtualMachineImage) (*v1alpha1.VirtualMachineImage, error) }
func NewProvider ¶
Click to show internal directories.
Click to hide internal directories.