filesystem

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheBaseDir    = "/var/cache"
	CacheZeroFSDir  = CacheBaseDir + "/zerofs"
	LocalRouterFile = CacheBaseDir + "/router.yaml"
)

Variables

This section is empty.

Functions

func Hash

func Hash(s string) string

func MergeFList added in v1.5.0

func MergeFList(namespace, target, base, flist string) error

MergeFList layers the given flist on top of the mounted flist(namespace, target, base). The fs must be running before your do the merge To prevent abuse, the MergeFList allows layering only ONE flist on top of the running fs. by overriding the fs `layered` file. the namespace, targe, and base are needed to identify the g8ufs process, the flist is the one to layer, where base is the original flist used on the call to MountFlist

func MountFList

func MountFList(namespace, storage, src string, target string, hooks ...pm.RunnerHook) error

func RestoreRepo

func RestoreRepo(repo, target string, include ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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