directvolume

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(volumePath string, mountInfo string) error

Add writes the mount info of a direct volume into a filesystem path known to Kata Container.

func AddMountInfo

func AddMountInfo(volumePath string, mountInfo MountInfo) error

func Remove

func Remove(volumePath string) error

Remove deletes the direct volume path including all the files inside it.

Types

type MountInfo

type MountInfo struct {
	// The type of the volume (ie. block)
	VolumeType string `json:"volume-type"`
	// The device backing the volume.
	Device string `json:"device"`
	// The filesystem type to be mounted on the volume.
	FsType string `json:"fstype"`
	// Additional metadata to pass to the agent regarding this volume.
	Metadata map[string]string `json:"metadata,omitempty"`
	// Additional mount options.
	Options []string `json:"options,omitempty"`
}

MountInfo contains the information needed by Kata to consume a host block device and mount it as a filesystem inside the guest VM.

func VolumeMountInfo

func VolumeMountInfo(volumePath string) (*MountInfo, error)

VolumeMountInfo retrieves the mount info of a direct volume.

Jump to

Keyboard shortcuts

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