storage

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 10 Imported by: 5

Documentation

Index

Constants

View Source
const (
	DEFAULT_DM_POOL      string = "hyper-volume-pool"
	DEFAULT_DM_POOL_SIZE int    = 20971520 * 512
	DEFAULT_DM_DATA_LOOP string = "/dev/loop6"
	DEFAULT_DM_META_LOOP string = "/dev/loop7"
	DEFAULT_DM_VOL_SIZE  int    = 2 * 1024 * 1024 * 1024
	DEFAULT_VOL_FS              = "ext4"
	DEFAULT_VOL_MKFS            = "mkfs.ext4"
	DEFAULT_VOL_CACHE           = "writeback"
)

Variables

This section is empty.

Functions

func CreateVFSVolume

func CreateVFSVolume(podId, shortName string) (string, error)

func FsInjectFile

func FsInjectFile(src io.Reader, containerId, target, baseDir string, perm, uid, gid int) error

func MountVFSVolume

func MountVFSVolume(src, sharedDir string) (string, error)

func UmountVFSVolume added in v0.6.0

func UmountVFSVolume(vol, sharedDir string) error

func WriteFile

func WriteFile(src io.Reader, targetFile string, permFile, uid, gid int) error

Types

This section is empty.

Directories

Path Synopsis
graphdriver

Jump to

Keyboard shortcuts

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