package fs

import "github.com/coreos/rkt/pkg/fs"

Index

Types

type MountUnmounter

type MountUnmounter interface {
	Mounter
	Unmounter
}

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

type MounterFunc func(string, string, string, uintptr, string) error

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

type Unmounter interface {
	Unmount(target string, flags int) error
}

Unmounter is the interface that unmounts a filesystem. It's signature is the same as syscall.Unmount.

type UnmounterFunc

type UnmounterFunc func(string, int) error

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

mount.go mount_linux.go

Version
v1.30.0 (latest)
Published
Apr 13, 2018
Platform
linux/amd64
Imports
2 packages
Last checked
4 days ago

Tools for package owners.