mirror of
https://github.com/kairos-io/kairos-sdk.git
synced 2025-06-02 20:15:45 +00:00
16 lines
349 B
Go
16 lines
349 B
Go
package types
|
|
|
|
import (
|
|
"io/fs"
|
|
"os"
|
|
)
|
|
|
|
// KairosFS is our interface for methods that need an FS
|
|
type KairosFS interface {
|
|
ReadFile(filename string) ([]byte, error)
|
|
Stat(name string) (fs.FileInfo, error)
|
|
Open(name string) (fs.File, error)
|
|
RawPath(name string) (string, error)
|
|
WriteFile(filename string, data []byte, perm os.FileMode) error
|
|
}
|