package fs
import "github.com/coreos/rkt/pkg/fs"
Index ¶
Types ¶
type MountUnmounter ¶
A MountUnmounter is the interface that mounts, and unmounts filesystems.
func NewLoggingMounter ¶
func NewLoggingMounter(m Mounter, um Unmounter, logf func(string, ...interface{})) MountUnmounter
NewLoggingMounter returns a MountUnmounter that logs mount events using the given logger func.
type Mounter ¶
type Mounter interface { Mount(source string, target string, fstype string, flags uintptr, data string) error }
Mounter is the interface that mounts a filesystem. It's signature is the same as syscall.Mount.
type MounterFunc ¶
MounterFunc is a functional type that implements Mounter. The mount syscall can be wrapped using MounterFunc(syscall.Mount) to be used as a Mounter.
func (MounterFunc) Mount ¶
func (m MounterFunc) Mount(source string, target string, fstype string, flags uintptr, data string) error
type Unmounter ¶
Unmounter is the interface that unmounts a filesystem. It's signature is the same as syscall.Unmount.
type UnmounterFunc ¶
UnmounterFunc is a functional type that implements Unmounter. The unmount syscall can be wrapped using UnmounterFunc(syscall.Unmount) to be used as an Unmounter.
func (UnmounterFunc) Unmount ¶
func (m UnmounterFunc) Unmount(target string, flags int) error
Source Files ¶
- Version
- v1.30.0 (latest)
- Published
- Apr 13, 2018
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 4 days ago –
Tools for package owners.