Versions in this module Expand all Collapse all v0 v0.4.2 Oct 29, 2014 v0.4.1 Oct 17, 2014 Changes in this version + const MOUNT_MS_BIND + const MOUNT_MS_RDONLY + var ErrUnsupportedVolumeType = errors.New("unsupported volume type") + func GetCurrentVolumes(rootDirectory string) map[string]Cleaner + type Builder interface + SetUp func() error + func CreateVolumeBuilder(volume *api.Volume, podID string, rootDir string) (Builder, error) + type Cleaner interface + TearDown func() error + func CreateVolumeCleaner(kind string, name string, podID string, rootDir string) (Cleaner, error) + type DiskMounter struct + func (mounter *DiskMounter) Mount(source string, target string, fstype string, flags uintptr, data string) error + func (mounter *DiskMounter) RefCount(PD Interface) (string, int, error) + func (mounter *DiskMounter) RefCount(mount Interface) (string, int, error) + func (mounter *DiskMounter) Unmount(target string, flags int) error + type EmptyDir struct + Name string + PodID string + RootDir string + func (emptyDir *EmptyDir) GetPath() string + func (emptyDir *EmptyDir) SetUp() error + func (emptyDir *EmptyDir) TearDown() error + type GCEDiskUtil struct + func (util *GCEDiskUtil) AttachDisk(GCEPD *GCEPersistentDisk) error + func (util *GCEDiskUtil) DetachDisk(GCEPD *GCEPersistentDisk, devicePath string) error + type GCEPersistentDisk struct + FSType string + Name string + PDName string + Partition string + PodID string + ReadOnly bool + RootDir string + func (PD *GCEPersistentDisk) GetPath() string + func (PD *GCEPersistentDisk) SetUp() error + func (PD *GCEPersistentDisk) TearDown() error + type HostDir struct + Path string + func (hostVol *HostDir) GetPath() string + func (hostVol *HostDir) SetUp() error + type Interface interface + GetPath func() string