rcm: make repository struct private
This is only used internally to the `submit()` function. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
db4b6e71ed
commit
1c0d951f54
1 changed files with 2 additions and 2 deletions
|
|
@ -107,7 +107,7 @@ func (api *API) submit(writer http.ResponseWriter, request *http.Request, _ http
|
|||
return
|
||||
}
|
||||
|
||||
type Repository struct {
|
||||
type repository struct {
|
||||
URL string `json:"url"`
|
||||
}
|
||||
|
||||
|
|
@ -116,7 +116,7 @@ func (api *API) submit(writer http.ResponseWriter, request *http.Request, _ http
|
|||
Distribution string `json:"distribution"`
|
||||
ImageTypes []string `json:"image_types"`
|
||||
Architectures []string `json:"architectures"`
|
||||
Repositories []Repository `json:"repositories"`
|
||||
Repositories []repository `json:"repositories"`
|
||||
}
|
||||
// JSON structure with error message
|
||||
var errorReason struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue