storage

package
v0.0.0-...-6410feb Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(devPath string, mountPoint string, fsType string) error

func RegisterDriver

func RegisterDriver(drv IContainerStorage)

func Unmount

func Unmount(mountPoint string) error

Types

type IContainerStorage

type IContainerStorage interface {
	GetType() StorageType
	CheckConnect(diskPath string) (string, bool, error)
	ConnectDisk(diskPath string) (string, error)
	DisconnectDisk(diskPath string, mountPoint string) error
}

func GetDriver

func GetDriver(t StorageType) IContainerStorage

type StorageType

type StorageType string
const (
	STORAGE_TYPE_LOCAL_RAW   StorageType = "local_raw"
	STORAGE_TYPE_LOCAL_QCOW2 StorageType = "local_qcow2"
)

Jump to

Keyboard shortcuts

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