attachments

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

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

func ValidateSourceURLForTest

func ValidateSourceURLForTest(raw string, allowPrivate bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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