2019-03-25 04:29:24 +00:00
|
|
|
package main
|
|
|
|
|
2019-12-03 09:56:57 +00:00
|
|
|
import (
|
|
|
|
nconfig "novit.nc/direktil/pkg/config"
|
|
|
|
)
|
|
|
|
|
2022-03-08 10:45:56 +00:00
|
|
|
type configV1 struct {
|
2019-12-03 09:56:57 +00:00
|
|
|
Layers []string `yaml:"layers"`
|
|
|
|
Files []nconfig.FileDef `yaml:"files"`
|
2022-03-08 10:45:56 +00:00
|
|
|
|
|
|
|
// v2 handles more
|
|
|
|
|
|
|
|
RootUser struct {
|
|
|
|
PasswordHash string `yaml:"password_hash"`
|
|
|
|
AuthorizedKeys []string `yaml:"authorized_keys"`
|
|
|
|
} `yaml:"root_user"`
|
|
|
|
|
|
|
|
Mounts []MountDef `yaml:"mounts"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type MountDef struct {
|
|
|
|
Dev string
|
|
|
|
Path string
|
|
|
|
Options string
|
|
|
|
Type string
|
2019-03-25 04:29:24 +00:00
|
|
|
}
|