//go:build !linux package apply import ( "context" "errors" "github.com/novox/mesh-host/internal/declaration" ) // The node-engine runs on Linux: a library is kept only by descriptor, which this system cannot. Everything refuses, // saying so, and changes nothing. var errNoKeeping = errors.New("a library is kept only by descriptor, which this system cannot; nothing was changed") // FolderFacts is what the engine reads of a library's root before keeping it. type FolderFacts struct { UID, GID uint32 Mode uint32 Empty bool } func readFolder(string) (FolderFacts, error) { return FolderFacts{}, errNoKeeping } func keepFolders(string, []string, int) (int, int, error) { return 0, 0, errNoKeeping } func ReconcileLibraries(context.Context, *declaration.Declaration) []string { return nil } func TakeLibrary(context.Context, *declaration.Declaration, string, string, string, string) (<-chan struct{}, string, error) { return nil, "", errNoKeeping } // MountFsid reads no filesystem id where a library is not kept. var MountFsid = func(string) string { return "" } // MountUUID reads no UUID where a library is not kept. var MountUUID = func(string) string { return "" } func sampleInShape(string, int) bool { return false }