daemon

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Helper code for daemonizing gcsfuse, synchronizing on successful mount.

The details of this package are subject to change.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(
	gcsfusePath string,
	fusermountPath string,
	args []string,
	status io.Writer) (err error)

Invoke gcsfuse with the supplied arguments, waiting until it successfully mounts or reports that is has failed. Write status updates while mounting into the supplied writer (which may be nil for silence). Return nil only if it mounts successfully.

func SignalOutcome

func SignalOutcome(outcome error) (err error)

For use by gcsfuse: signal that mounting was successful (allowing the caller of the process to return in success) or that there was a failure to mount the file system (allowing the caller of the process to display an appropriate error message).

Do nothing if the process wasn't invoked with Mount.

func StatusWriter

func StatusWriter() (w io.Writer)

For use by gcsfuse: return a writer that should be used for logging status messages while in the process of mounting.

The returned writer must not be written to after calling SignalOutcome.

Types

This section is empty.

Jump to

Keyboard shortcuts

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