hotplugdisk

package
v0.47.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// visible for testing
	TargetPodBasePath = func(podBaseDir string, podUID types.UID) string {
		return filepath.Join(podBaseDir, string(podUID), hotplugDisksKubeletVolumePath)
	}
)

Functions

func CreateLocalDirectory added in v0.42.0

func CreateLocalDirectory(dir string) error

CreateLocalDirectory creates the base directory where disk images will be mounted when hotplugged. File system volumes will be in a directory under this, that contains the volume name. block volumes will be in this directory as a block device.

func NewHotplugDiskManager added in v0.42.0

func NewHotplugDiskManager() *hotplugDiskManager

func NewHotplugDiskWithOptions added in v0.42.0

func NewHotplugDiskWithOptions(podsBaseDir string) *hotplugDiskManager

Types

type HotplugDiskManagerInterface added in v0.42.0

type HotplugDiskManagerInterface interface {
	GetHotplugTargetPodPathOnHost(virtlauncherPodUID types.UID) (string, error)
	GetFileSystemDiskTargetPathFromHostView(virtlauncherPodUID types.UID, volumeName string, create bool) (string, error)
}

Jump to

Keyboard shortcuts

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