Documentation
¶
Index ¶
- func HandleDeleteAttachment(c *gin.Context, store registrystore.MemoryStore, ...)
- func HandleDownloadByToken(c *gin.Context, store registrystore.MemoryStore, ...)
- func HandleDownloadURL(c *gin.Context, store registrystore.MemoryStore, ...)
- func HandleGetAttachment(c *gin.Context, store registrystore.MemoryStore, ...)
- func HandleUpload(c *gin.Context, store registrystore.MemoryStore, ...)
- func MountRoutes(r *gin.Engine, store registrystore.MemoryStore, ...)
- func NewSourceURLTransportForTest(allowPrivate bool) http.RoundTripper
- func ValidateSourceURLForTest(raw string, allowPrivate bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleDeleteAttachment ¶
func HandleDeleteAttachment(c *gin.Context, store registrystore.MemoryStore, attachStore registryattach.AttachmentStore)
HandleDeleteAttachment exposes attachment delete for wrapper-native adapters.
func HandleDownloadByToken ¶
func HandleDownloadByToken(c *gin.Context, store registrystore.MemoryStore, attachStore registryattach.AttachmentStore, signingKeys [][]byte)
HandleDownloadByToken exposes token download for wrapper-native adapters.
func HandleDownloadURL ¶
func HandleDownloadURL(c *gin.Context, store registrystore.MemoryStore, attachStore registryattach.AttachmentStore, cfg *config.Config, signingKey []byte)
HandleDownloadURL exposes attachment signed URL issuance for wrapper-native adapters.
func HandleGetAttachment ¶
func HandleGetAttachment(c *gin.Context, store registrystore.MemoryStore, attachStore registryattach.AttachmentStore, cfg *config.Config)
HandleGetAttachment exposes attachment retrieval for wrapper-native adapters.
func HandleUpload ¶
func HandleUpload(c *gin.Context, store registrystore.MemoryStore, attachStore registryattach.AttachmentStore, cfg *config.Config)
HandleUpload exposes attachment upload/create for wrapper-native adapters.
func MountRoutes ¶
func MountRoutes(r *gin.Engine, store registrystore.MemoryStore, attachStore registryattach.AttachmentStore, cfg *config.Config, auth gin.HandlerFunc, signingKeys [][]byte)
MountRoutes mounts attachment routes. signingKeys is the ordered set of HMAC keys for download URL signing (primary first); pass nil to disable signed download URL support.
func NewSourceURLTransportForTest ¶
func NewSourceURLTransportForTest(allowPrivate bool) http.RoundTripper
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.