ostree: rename RequestParams to SourceSpec
Same as with the container SourceSpec, the struct specifies the required information to resolve an ostree commit from a source (URL, ref, and optional parent). Renaming for consistency.
This commit is contained in:
parent
00d473c802
commit
fc5461e9e3
5 changed files with 19 additions and 19 deletions
|
|
@ -115,7 +115,7 @@ type imageRequest struct {
|
|||
repositories []rpmmd.RepoConfig
|
||||
imageOptions distro.ImageOptions
|
||||
target *target.Target
|
||||
ostree *ostree.RequestParams
|
||||
ostree *ostree.SourceSpec
|
||||
}
|
||||
|
||||
func (h *apiHandlers) PostCompose(ctx echo.Context) error {
|
||||
|
|
@ -458,10 +458,10 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error {
|
|||
}
|
||||
}
|
||||
|
||||
var ostreeOptions *ostree.RequestParams
|
||||
var ostreeOptions *ostree.SourceSpec
|
||||
// assume it's an ostree image if the type has a default ostree ref
|
||||
if imageType.OSTreeRef() != "" {
|
||||
ostreeOptions = &ostree.RequestParams{}
|
||||
ostreeOptions = &ostree.SourceSpec{}
|
||||
if ir.Ostree != nil {
|
||||
if ir.Ostree.Ref != nil {
|
||||
ostreeOptions.Ref = *ir.Ostree.Ref
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue