Serializes upload state to an HMAC token for subsequent requests
To support clustered registry, upload UUIDs must be recognizable by registries that did not issue the UUID. By creating an HMAC verifiable upload state token, registries can validate upload requests that other instances authorized. The tokenProvider interface could also use a redis store or other system for token handling in the future.
This commit is contained in:
parent
c08c6c506e
commit
07ba5db168
10 changed files with 105 additions and 50 deletions
|
@ -83,5 +83,5 @@ type LayerService interface {
|
|||
|
||||
// Resume continues an in progress layer upload, returning the current
|
||||
// state of the upload.
|
||||
Resume(uuid string) (LayerUpload, error)
|
||||
Resume(layerUploadState LayerUploadState) (LayerUpload, error)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue