goverlayfs

package module
v0.0.0-...-029f6ca Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

README

goverlayfs

A simple Go library that creates an overlay mount using similar syntax to that of the mount command.

See associated blog post.

See godoc here

Documentation

Overview

Package goverlayfs is a very simple library for creating an overlay filesystem mount.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OverlayMount

type OverlayMount struct {
	// contains filtered or unexported fields
}

func New

func New(upperPath, lowerPath, mergedPath, workdirPath string) *OverlayMount

func (*OverlayMount) Init

func (o *OverlayMount) Init() (err error)

Init makes an overlayfs using the specified paths for upper, lower, merged, and workdir paths XXX: requires root/cap_sys_admin

func (*OverlayMount) Remove

func (o *OverlayMount) Remove() error

Remove unmounts the overlay mount's directory

Jump to

Keyboard shortcuts

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