This repository has been archived on 2024-02-15. You can view files and clone it, but cannot push or open issues or pull requests.
config-mapper/internal/configuration/definition.go

48 lines
1.7 KiB
Go
Raw Normal View History

package configuration
2022-02-25 00:17:02 +01:00
2022-02-21 22:50:30 +01:00
type Configuration struct {
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"`
}
type OSLocation struct {
Darwin string `mapstructure:"darwin" yaml:"darwin"`
Linux string `mapstructure:"linux" yaml:"linux"`
2022-02-21 22:50:30 +01:00
}
type Storage struct {
Path string `mapstructure:"location" yaml:"location"`
Git Git `mapstructure:"git" yaml:"git"`
2022-02-24 22:38:17 +01:00
}
type Git struct {
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"`
SSH interface{} `mapstructure:"ssh" yaml:"ssh"`
2022-02-26 01:28:36 +01:00
}
type BasicAuth struct {
Username string `mapstructure:"username" yaml:"username"`
Password string `mapstructure:"password" yaml:"password"`
2022-02-26 01:28:36 +01:00
}
type Ssh struct {
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 {
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"`
Nala []string `mapstructure:"nala" yaml:"nala"`
2022-02-21 22:50:30 +01:00
}