1
0
mirror of https://github.com/rancher/os.git synced 2025-09-08 02:01:27 +00:00
Files
os/pkg/config/config.go

51 lines
1.6 KiB
Go
Raw Normal View History

2021-08-31 11:14:03 -07:00
package config
2021-10-13 16:00:29 -07:00
type RancherOS struct {
2021-08-31 11:14:03 -07:00
Install Install `json:"install,omitempty"`
}
type Install struct {
2021-10-29 12:20:35 -07:00
Automatic bool `json:"automatic,omitempty"`
ForceEFI bool `json:"forceEfi,omitempty"`
Device string `json:"device,omitempty"`
ConfigURL string `json:"configUrl,omitempty"`
ISOURL string `json:"isoUrl,omitempty"`
PowerOff bool `json:"powerOff,omitempty"`
NoFormat bool `json:"noFormat,omitempty"`
Debug bool `json:"debug,omitempty"`
TTY string `json:"tty,omitempty"`
ServerURL string `json:"-"`
Token string `json:"-"`
Role string `json:"-"`
Password string `json:"password,omitempty"`
RegistrationURL string `json:"registrationUrl,omitempty"`
RegistrationCACert string `json:"registrationCaCert,omitempty"`
2021-08-31 11:14:03 -07:00
}
type Config struct {
2021-10-29 12:20:35 -07:00
SSHAuthorizedKeys []string `json:"sshAuthorizedKeys,omitempty"`
RancherOS RancherOS `json:"rancheros,omitempty"`
Data map[string]interface{} `json:"-"`
2021-08-31 11:14:03 -07:00
}
type YipConfig struct {
2021-10-22 23:22:09 -07:00
Stages map[string][]Stage `json:"stages,omitempty"`
Rancherd Rancherd `json:"rancherd,omitempty"`
2021-08-31 11:14:03 -07:00
}
type Stage struct {
Users map[string]User `json:"users,omitempty"`
}
2021-10-22 23:22:09 -07:00
type Rancherd struct {
Server string `json:"server,omitempty"`
Role string `json:"role,omitempty"`
Token string `json:"token,omitempty"`
}
2021-08-31 11:14:03 -07:00
type User struct {
Name string `json:"name,omitempty"`
PasswordHash string `json:"passwd,omitempty"`
SSHAuthorizedKeys []string `json:"ssh_authorized_keys,omitempty"`
}