store: move ComposeRequest to the store package
A ComposeRequest is data used to submit a compose to the store, so it should live in that package. Remove the json marshalling test, because ComposeRequest is never marshalled to JSON. This will allow to use types from `distro` in the ComposeRequest struct.
This commit is contained in:
parent
e3d1a34ab6
commit
72f8b07e8b
4 changed files with 13 additions and 142 deletions
|
|
@ -178,7 +178,7 @@ func (api *API) submit(writer http.ResponseWriter, request *http.Request, _ http
|
|||
// Push the requested compose to the store
|
||||
composeUUID := uuid.New()
|
||||
// nil is used as an upload target, because LocalTarget is already used in the PushCompose function
|
||||
err = api.store.PushComposeRequest(common.ComposeRequest{
|
||||
err = api.store.PushComposeRequest(store.ComposeRequest{
|
||||
Blueprint: blueprint.Blueprint{},
|
||||
ComposeID: composeUUID,
|
||||
Distro: composeRequest.Distribution,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue