mirror of
https://github.com/kairos-io/kairos-sdk.git
synced 2025-09-17 07:41:14 +00:00
Add KairosFS type and detectBoot with FS (#46)
This commit is contained in:
7
types/fs.go
Normal file
7
types/fs.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user