Documentation
      ¶
    
    
  
    
      Index ¶
- Variables
 - func ShareMount(target string, flags uintptr) error
 - type Mount
 - type Mounter
 - type OSMounter
 - func (om *OSMounter) AttachMount(unit, src, dst string) error
 - func (om *OSMounter) BindMount(src, dst string) error
 - func (om *OSMounter) CreateMount(volume *api.Volume) error
 - func (om *OSMounter) DeleteMount(volume *api.Volume) error
 - func (om *OSMounter) DetachMount(unit, dst string) error
 - func (om *OSMounter) MountSpecial(unitname string) error
 - func (om *OSMounter) PivotRoot(rootfs, oldrootfs string) error
 - func (om *OSMounter) Unmount(dir string) error
 - func (om *OSMounter) UnmountSpecial(unitname string)
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var Mounts = []Mount{ { Source: "proc", Target: "/proc", Fs: "proc", Flags: syscall.MS_NOSUID | syscall.MS_NODEV | syscall.MS_NOEXEC | syscall.MS_RELATIME, }, { Source: "devtmpfs", Target: "/dev", Fs: "devtmpfs", Flags: syscall.MS_NOSUID | syscall.MS_RELATIME, Data: "mode=755", }, { Source: "devpts", Target: "/dev/pts", Fs: "devpts", Flags: syscall.MS_NOSUID | syscall.MS_NOEXEC | syscall.MS_RELATIME, Data: "mode=620,ptmxmode=000", }, { Source: "sysfs", Target: "/sys", Fs: "sysfs", Flags: syscall.MS_NOSUID | syscall.MS_NODEV | syscall.MS_NOEXEC | syscall.MS_RELATIME, }, }
Functions ¶
func ShareMount ¶
Types ¶
type Mounter ¶
type Mounter interface {
	CreateMount(volume *api.Volume) error
	DeleteMount(volume *api.Volume) error
	AttachMount(unitname, src, dst string) error
	DetachMount(unitname, dst string) error
	MountSpecial(unitname string) error
	UnmountSpecial(unitname string)
	BindMount(src, dst string) error
	Unmount(dir string) error
	PivotRoot(rootfs, oldrootfs string) error
}
    func NewOSMounter ¶
type OSMounter ¶
type OSMounter struct {
	// contains filtered or unexported fields
}
    func (*OSMounter) AttachMount ¶
func (*OSMounter) DetachMount ¶
func (*OSMounter) MountSpecial ¶
func (*OSMounter) UnmountSpecial ¶
 Click to show internal directories. 
   Click to hide internal directories.