Skip to content

Commit

Permalink
Merge pull request #57 from cobbler/fix/missing-repo-attributes
Browse files Browse the repository at this point in the history
Repo: Add missing properties "MirrorType", "Priority", "YumOpts", "RsyncOpts"
  • Loading branch information
SchoolGuy authored Aug 15, 2024
2 parents a977a5e + 8ea57dc commit 0200f10
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,21 @@ type Repo struct {
// These are internal fields and cannot be modified.
TreeBuildTime string `mapstructure:"tree_build_time" cobbler:"noupdate"`

AptComponents []string `mapstructure:"apt_components"`
AptDists []string `mapstructure:"apt_dists"`
Arch string `mapstructure:"arch"`
Breed string `mapstructure:"breed"`
CreateRepoFlags string `mapstructure:"createrepo_flags"`
Environment []string `mapstructure:"environment"`
KeepUpdated bool `mapstructure:"keep_updated"`
Mirror string `mapstructure:"mirror"`
MirrorLocally bool `mapstructure:"mirror_locally"`
Proxy string `mapstructure:"proxy" cobbler:"newfield"`
RpmList []string `mapstructure:"rpm_list"`
//YumOpts map[string]interface{} `mapstructure:"yumopts"`
AptComponents []string `mapstructure:"apt_components"`
AptDists []string `mapstructure:"apt_dists"`
Arch string `mapstructure:"arch"`
Breed string `mapstructure:"breed"`
CreateRepoFlags string `mapstructure:"createrepo_flags"`
Environment map[string]interface{} `mapstructure:"environment"`
KeepUpdated bool `mapstructure:"keep_updated"`
Mirror string `mapstructure:"mirror"`
MirrorLocally bool `mapstructure:"mirror_locally"`
MirrorType string `mapstructure:"mirror_type"`
Priority int `mapstructure:"priority"`
Proxy string `mapstructure:"proxy" cobbler:"newfield"`
RsyncOpts map[string]interface{} `mapstructure:"rsyncopts"`
RpmList []string `mapstructure:"rpm_list"`
YumOpts map[string]interface{} `mapstructure:"yumopts"`
}

func convertRawRepo(name string, xmlrpcResult interface{}) (*Repo, error) {
Expand Down

0 comments on commit 0200f10

Please sign in to comment.