right type used
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"mstore/pkg/auxuuid"
|
||||
"mstore/pkg/uuid"
|
||||
)
|
||||
|
||||
type BlobExistsParams struct {
|
||||
@@ -73,7 +73,7 @@ type PostUploadParams struct {
|
||||
From string
|
||||
}
|
||||
type PostUploadResult struct {
|
||||
DockerUploadUUID auxuuid.UUID
|
||||
DockerUploadUUID uuid.UUID
|
||||
Location string
|
||||
ContentLength string
|
||||
}
|
||||
@@ -83,7 +83,7 @@ func (oper *Operator) PostUpload(ctx context.Context, params *PostUploadParams)
|
||||
res := &PostUploadResult{}
|
||||
|
||||
if params.Digest == "" {
|
||||
uuid := auxuuid.NewUUID()
|
||||
uuid := uuid.NewUUID()
|
||||
location := fmt.Sprintf("/v2/%s/blobs/uploads/%s", params.Name, uuid)
|
||||
res.DockerUploadUUID = uuid
|
||||
res.Location = location
|
||||
|
||||
Reference in New Issue
Block a user