mirror of
https://github.com/rancher/os.git
synced 2025-09-12 13:17:17 +00:00
refactor a little and keep the datasource errors for later
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
3
config/cloudinit/datasource/datasource.go
Normal file → Executable file
3
config/cloudinit/datasource/datasource.go
Normal file → Executable file
@@ -25,6 +25,9 @@ type Datasource interface {
|
||||
FetchMetadata() (Metadata, error)
|
||||
FetchUserdata() ([]byte, error)
|
||||
Type() string
|
||||
String() string
|
||||
// Finish gives the datasource the oportunity to clean up, unmount or release any open / cache resources
|
||||
Finish() error
|
||||
}
|
||||
|
||||
type Metadata struct {
|
||||
|
Reference in New Issue
Block a user