storage

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MountRShared

func MountRShared(path string) error

MountRShared creates a bind mountpoint and marks it as rshared Expected that the filepath exists before calling this function

func UnmountAllInPath

func UnmountAllInPath(ctx context.Context, path string, removeTarget bool) (err error)

func UnmountPath

func UnmountPath(ctx context.Context, target string, removeTarget bool) (err error)

UnmountPath unmounts the target path if it exists and is a mount path. If removeTarget this will remove the previously mounted folder.

func WaitForFileMatchingPattern

func WaitForFileMatchingPattern(ctx context.Context, pattern string) (string, error)

WaitForFileMatchingPattern waits for a single file that matches the given path pattern and returns the full path to the resulting file

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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