client: Add /projects/ support

This commit is contained in:
Brian C. Lane 2020-03-23 16:53:59 -07:00 committed by Ondřej Budai
parent 5ac3cb3f46
commit 271d27a41d
3 changed files with 95 additions and 1 deletions

View file

@ -121,3 +121,26 @@ func (s *SourceConfigV0) SourceConfig() (ssc store.SourceConfig) {
return ssc
}
// ProjectsListV0 is the response to /projects/list request
type ProjectsListV0 struct {
Total uint `json:"total"`
Offset uint `json:"offset"`
Limit uint `json:"limit"`
Projects []rpmmd.PackageInfo `json:"projects"`
}
// ProjectsInfoV0 is the response to /projects/info request
type ProjectsInfoV0 struct {
Projects []rpmmd.PackageInfo `json:"projects"`
}
// ProjectsDependenciesV0 is the response to /projects/depsolve request
type ProjectsDependenciesV0 struct {
Projects []rpmmd.PackageSpec `json:"projects"`
}
// ModulesInfoV0 is the response to /modules/info request
type ModulesInfoV0 struct {
Modules []rpmmd.PackageInfo `json:"modules"`
}