blob

package
v0.0.0-...-969384c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyArtifactMiddleware

func CopyArtifactMiddleware() func(http.Handler) http.Handler

CopyArtifactMiddleware middleware to sync the missing associations for the project

func HeadBlobMiddleware

func HeadBlobMiddleware() func(http.Handler) http.Handler

HeadBlobMiddleware intercept the head blob request

func PatchBlobUploadMiddleware

func PatchBlobUploadMiddleware() func(http.Handler) http.Handler

PatchBlobUploadMiddleware middleware to record the accepted blob size for stream blob upload

func PostInitiateBlobUploadMiddleware

func PostInitiateBlobUploadMiddleware() func(http.Handler) http.Handler

PostInitiateBlobUploadMiddleware middleware to add blob to project after mount blob success

func PutBlobUploadMiddleware

func PutBlobUploadMiddleware() func(http.Handler) http.Handler

PutBlobUploadMiddleware middleware is to update the blob status according to the different situation before the request passed into proxy(distribution). And it creates Blob and ProjectBlob after PUT /v2/<name>/blobs/uploads/<session_id>?digest=<digest> success - http.StatusCreated Why to use the middleware to handle blob status? 1, As Put blob will always happen after head blob gets a 404, but the 404 could be caused by blob status is deleting, which is marked by GC. 2, It has to deal with the concurrence blob push.

func PutManifestMiddleware

func PutManifestMiddleware() func(http.Handler) http.Handler

PutManifestMiddleware middleware middleware is to update the manifest status according to the different situation before the request passed into proxy(distribution). and it creates Blobs for the foreign layers and associate them with the project, updates the content type of the Blobs which already exist, create Blob for the manifest, associate all Blobs with the manifest after PUT /v2/<name>/manifests/<reference> success.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL