Logo
Explore Help
Register Sign In
kairos/kairos-sdk
1
0
Fork 0
You've already forked kairos-sdk
mirror of https://github.com/kairos-io/kairos-sdk.git synced 2025-09-01 07:08:39 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
f7872f11f3ca5a63f49e74c2950be6bb0e1007e0
kairos-sdk/types/fs.go

16 lines
349 B
Go
Raw Normal View History

Add KairosFS type and detectBoot with FS (#46)
2023-09-01 14:31:04 +02:00
package types
Port signature utils to sdk from agent (#117) It was added first to agent as it was needed for upgrade but if we are gonna reuse this to check for signature validity in random files, we better have it on sdk so we can use it both on agent and immucore and works exactly the same Signed-off-by: Itxaka <itxaka@kairos.io>
2024-06-04 08:31:00 +02:00
import (
"io/fs"
"os"
)
Add KairosFS type and detectBoot with FS (#46)
2023-09-01 14:31:04 +02:00
// KairosFS is our interface for methods that need an FS
type KairosFS interface {
ReadFile(filename string) ([]byte, error)
Port signature utils to sdk from agent (#117) It was added first to agent as it was needed for upgrade but if we are gonna reuse this to check for signature validity in random files, we better have it on sdk so we can use it both on agent and immucore and works exactly the same Signed-off-by: Itxaka <itxaka@kairos.io>
2024-06-04 08:31:00 +02:00
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
Add KairosFS type and detectBoot with FS (#46)
2023-09-01 14:31:04 +02:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 503ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API