mount

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: GPL-3.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReservedPaths = []string{
	"/app",
	"/tmp",
	"/blockyard-lib",
	"/blockyard-lib-store",
	"/transfer",
	"/var/run/blockyard",
}

ReservedPaths are container paths that mount targets cannot collide with. Checked by prefix — "/app/foo" collides with "/app".

Functions

func Resolve

func Resolve(mounts []db.DataMountRow, sources []config.DataMountSource) ([]backend.MountEntry, error)

Resolve converts validated data mount rows into MountEntries with host paths as Source. The returned entries are ready to be passed directly to the Docker API as bind-mount sources — no MountConfig translation needed. Returns an error if a source references a name that no longer exists in the admin config.

func Validate

func Validate(mounts []db.DataMountRow, sources []config.DataMountSource) error

Validate checks a list of data mount rows against the admin-defined mount sources. Returns the first validation error found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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