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.
Click to show internal directories.
Click to hide internal directories.