mount

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mount provides the public NFS mount API for mache.

Types are defined in internal/nfsmount and re-exported here so that external consumers (e.g. x-ray) can mount a graph as a real NFS filesystem without importing internal packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmount

func Unmount(mountPoint string) error

Unmount unmounts the given mount point.

Types

type Options added in v0.5.5

type Options struct {
	// ExtraNFSOpts is appended verbatim to the default NFS mount options
	// (comma-separated, e.g. "rsize=32768,wsize=32768").
	ExtraNFSOpts string
}

Options configures the NFS mount.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server wraps an NFS server lifecycle.

func NFS

func NFS(g graph.Graph, mountPoint string, opts *Options) (*Server, error)

NFS starts an NFS server for the given graph and mounts it at mountPoint. The caller must Close() the server and Unmount() the mountPoint on cleanup. Pass nil for opts to use defaults.

func (*Server) Close

func (s *Server) Close() error

Close stops the NFS server.

func (*Server) Port

func (s *Server) Port() int

Port returns the TCP port the NFS server is listening on.

Jump to

Keyboard shortcuts

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