mount

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package mount manages creating operating system mount points for directory snapshots.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	Unmount(ctx context.Context) error
	MountPath() string
	Done() <-chan struct{}
}

Controller allows controlling mounts.

func Directory

func Directory(ctx context.Context, entry fs.Directory, driveLetter string) (Controller, error)

Directory mounts a given directory under a provided drive letter.

func DirectoryWebDAV

func DirectoryWebDAV(ctx context.Context, entry fs.Directory) (Controller, error)

DirectoryWebDAV exposes the provided filesystem directory via WebDAV on a random port on localhost and returns a controller.

Jump to

Keyboard shortcuts

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