overlayroot

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(path string, content []byte) *file

File is a file with contents specified by a string

func FilePerm

func FilePerm(path string, content []byte, perm os.FileMode) *file

FilePerm is like File but you can specify the permissions

Types

type Bakeable

type Bakeable interface {
	Bake(overlayroot string) error
}

Bakeable stamps itself out onto a temporary directory

type Remover

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

Remover holds the location of certain temporary files supporting a pivot_root'ed overlay filesystem. The main purpose of this struct is to clean it up afterwards.

func Mount

func Mount(nodes ...Bakeable) (*Remover, error)

func Pivot

func Pivot(nodes ...Bakeable) (*Remover, error)

func (*Remover) Remove

func (m *Remover) Remove() error

Remove cleans up the temporary directory created by Pivot

Jump to

Keyboard shortcuts

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