Add KairosFS type and detectBoot with FS (#46)

This commit is contained in:
Itxaka
2023-09-01 14:31:04 +02:00
committed by GitHub
parent fd9cffde95
commit 9e420d9015
2 changed files with 29 additions and 0 deletions

7
types/fs.go Normal file
View File

@@ -0,0 +1,7 @@
package types
// KairosFS is our interface for methods that need an FS
// We should try to keep it to a minimum so we can change between backends easily if needed
type KairosFS interface {
ReadFile(filename string) ([]byte, error)
}