store: Add Distros to Source structs
This commit is contained in:
parent
f79f399808
commit
2b56e4d8e9
2 changed files with 14 additions and 12 deletions
|
|
@ -56,12 +56,13 @@ type imageBuildV0 struct {
|
|||
}
|
||||
|
||||
type sourceV0 struct {
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
URL string `json:"url"`
|
||||
CheckGPG bool `json:"check_gpg"`
|
||||
CheckSSL bool `json:"check_ssl"`
|
||||
System bool `json:"system"`
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
URL string `json:"url"`
|
||||
CheckGPG bool `json:"check_gpg"`
|
||||
CheckSSL bool `json:"check_ssl"`
|
||||
System bool `json:"system"`
|
||||
Distros []string `json:"distros"`
|
||||
}
|
||||
|
||||
type sourcesV0 map[string]sourceV0
|
||||
|
|
|
|||
|
|
@ -43,12 +43,13 @@ type Store struct {
|
|||
}
|
||||
|
||||
type SourceConfig struct {
|
||||
Name string `json:"name" toml:"name"`
|
||||
Type string `json:"type" toml:"type"`
|
||||
URL string `json:"url" toml:"url"`
|
||||
CheckGPG bool `json:"check_gpg" toml:"check_gpg"`
|
||||
CheckSSL bool `json:"check_ssl" toml:"check_ssl"`
|
||||
System bool `json:"system" toml:"system"`
|
||||
Name string `json:"name" toml:"name"`
|
||||
Type string `json:"type" toml:"type"`
|
||||
URL string `json:"url" toml:"url"`
|
||||
CheckGPG bool `json:"check_gpg" toml:"check_gpg"`
|
||||
CheckSSL bool `json:"check_ssl" toml:"check_ssl"`
|
||||
System bool `json:"system" toml:"system"`
|
||||
Distros []string `json:"distros" toml:"distros"`
|
||||
}
|
||||
|
||||
type NotFoundError struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue