2022-06-02 19:44:51 +02:00
|
|
|
package configuration
|
2022-02-25 00:17:02 +01:00
|
|
|
|
2022-02-21 22:50:30 +01:00
|
|
|
type Configuration struct {
|
2022-06-01 19:22:27 +02:00
|
|
|
Storage Storage `mapstructure:"storage" yaml:"storage"`
|
|
|
|
Files []OSLocation `mapstructure:"files" yaml:"files"`
|
|
|
|
Folders []OSLocation `mapstructure:"folders" yaml:"folders"`
|
|
|
|
PackageManagers PkgManagers `mapstructure:"package-managers" yaml:"package-managers"`
|
2022-02-25 20:15:13 +01:00
|
|
|
}
|
|
|
|
|
2022-06-01 19:22:27 +02:00
|
|
|
type OSLocation struct {
|
2022-02-27 14:52:16 +01:00
|
|
|
Darwin string `mapstructure:"darwin" yaml:"darwin"`
|
|
|
|
Linux string `mapstructure:"linux" yaml:"linux"`
|
2022-02-21 22:50:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Storage struct {
|
2022-02-28 23:41:21 +01:00
|
|
|
Path string `mapstructure:"location" yaml:"location"`
|
|
|
|
Git Git `mapstructure:"git" yaml:"git"`
|
2022-02-24 22:38:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Git struct {
|
2022-02-28 23:41:21 +01:00
|
|
|
URL string `mapstructure:"repository" yaml:"repository"`
|
|
|
|
Name string `mapstructure:"name" yaml:"name"`
|
|
|
|
Email string `mapstructure:"email" yaml:"email"`
|
|
|
|
BasicAuth BasicAuth `mapstructure:"basic-auth" yaml:"basic-auth"`
|
2022-09-02 22:42:33 +02:00
|
|
|
SSH interface{} `mapstructure:"ssh" yaml:"ssh"`
|
2022-02-26 01:28:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type BasicAuth struct {
|
2022-02-27 14:52:16 +01:00
|
|
|
Username string `mapstructure:"username" yaml:"username"`
|
|
|
|
Password string `mapstructure:"password" yaml:"password"`
|
2022-02-26 01:28:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Ssh struct {
|
2022-02-27 14:52:16 +01:00
|
|
|
PrivateKey string `mapstructure:"private-key" yaml:"private-key"`
|
2022-02-27 18:13:27 +01:00
|
|
|
Passphrase string `mapstructure:"passphrase" yaml:"passphrase"`
|
2022-02-21 22:50:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type PkgManagers struct {
|
2022-02-27 14:52:16 +01:00
|
|
|
InstallationOrder []string `mapstructure:"installation-order" yaml:"installation-order"`
|
2022-07-10 12:35:01 +02:00
|
|
|
Brew []string `mapstructure:"brew" yaml:"brew"`
|
|
|
|
Apt []string `mapstructure:"apt" yaml:"apt"`
|
|
|
|
Cargo []string `mapstructure:"cargo" yaml:"cargo"`
|
|
|
|
Pip []string `mapstructure:"pip" yaml:"pip"`
|
|
|
|
Npm []string `mapstructure:"npm" yaml:"npm"`
|
|
|
|
Go []string `mapstructure:"go" yaml:"go"`
|
2022-07-20 13:33:04 +02:00
|
|
|
Nala []string `mapstructure:"nala" yaml:"nala"`
|
2022-02-21 22:50:30 +01:00
|
|
|
}
|