package
1.5.1
Repository: https://github.com/mirantis/virtlet.git
Documentation: pkg.go.dev

# Functions

CombineVMVolumeSources returns a function which will pass VM configuration to all listed volumes sources combining returned by them `VMVolume`s.
GetBlockVolumes returns VMVolume objects for block devices that are passed to the pod.
GetConfigVolume returns a config volume source which will produce an ISO image with CloudInit compatible configuration data.
GetDefaultVolumeSource returns a volume source that supports root volume, flexvolumes and a ConfigSource for cloud-init.
GetFileSystemVolumes using prepared by kubelet volumes and contained in pod sandbox annotations prepares volumes to be passed to libvirt as a DomainFileSystem definitions.
GetRootVolume returns volume source for root volume clone.
NewCloudInitGenerator returns new CloudInitGenerator.
NewConnection uses uri to construct connection to libvirt used later by both storage and domains manipulators.
NewLibvirtDiagSource creates a new LibvirtDiagSource.
NewVirtualizationTool verifies existence of volumes pool in libvirt store and returns initialized VirtualizationTool.
ScanFlexVolumes returns VMVolume objects for Virtlet flexvolumes mounted into the pod.
SetConfigIsoDir sets a directory for config iso dir.

# Constants

ContainerNsUUID template for container ns uuid generation.
KubernetesContainerNameLabel is container name label (copied from kubetypes).
KubernetesPodNameLabel is pod name container label (copied from kubetypes).
KubernetesPodNamespaceLabel is pod namespace container label (copied from kubetypes),.
KubernetesPodUIDLabel is uid container label (copied from kubetypes).

# Structs

CloudInitGenerator provides a common part for Cloud Init ISO drive preparation for NoCloud and ConfigDrive volume sources.
Connection combines accessors for methods which operated on libvirt storage and domains.
LibvirtDiagSource dumps libvirt domains, storage pools and storage volumes as a set of XML files.
VirtualizationConfig specifies configuration options for VirtualizationTool.
VirtualizationTool provides methods to operate on libvirt.

# Interfaces

ImageManager describes an image info provider.
VMVolume describes a volume provider.

# Type aliases

VMVolumeSource is a function that provides `VMVolume`s for VMs.