Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDriver ¶
func RegisterDriver(drv IContainerStorage)
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" )
Click to show internal directories.
Click to hide internal directories.