Help us shape the future of Go! Take the 2026 Go Developer Survey

mount

package
v0.0.0-...-0148122 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Overview

Package mount connects to a tailmount share and mounts it with the operating system's NFS client.

Index

Constants

This section is empty.

Variables

View Source
var ErrBadAddr = errors.New("invalid tailmount address")

ErrBadAddr reports an address that does not parse as a tailcat address.

Functions

func Run

func Run(ctx context.Context, o Options) error

Run mounts the share, waits until ctx is cancelled or the sharer goes away, then unmounts and cleans up.

func Unmount

func Unmount(mp string) error

Unmount detaches mp, trying the platform's forceful variant if the plain one fails.

Types

type Options

type Options struct {
	// Addr is the tailmount address printed by the sharer.
	Addr string
	// Mountpoint is the empty directory to mount on. Required.
	Mountpoint string
	// Verbose enables tailcat diagnostic logging.
	Verbose bool
	// Out receives status lines for humans. Defaults to stdout.
	Out io.Writer
}

Options configure a mount.

Jump to

Keyboard shortcuts

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