mount

package
v0.0.3 Latest Latest
Warning

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

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

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