gin

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: Unlicense Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteBlob

func DeleteBlob(
	blobRepo domain.BlobDescriptorRepo,
) gin.HandlerFunc

func GetBlob

func GetBlob(
	blobRepo domain.BlobDescriptorRepo,
) gin.HandlerFunc

func HasBlob

func HasBlob(
	blobRepo domain.BlobDescriptorRepo,
) gin.HandlerFunc

func ListBlobs

func ListBlobs(
	blobRepo domain.BlobDescriptorRepo,
) gin.HandlerFunc

func MirrorBlob

func MirrorBlob(
	blobRepo domain.BlobDescriptorRepo,
	cdnBaseUrl string,
) gin.HandlerFunc

func UploadBlob

func UploadBlob(
	blobRepo domain.BlobDescriptorRepo,
	cdnBaseUrl string,
) gin.HandlerFunc

Types

type Api

type Api struct {
	// contains filtered or unexported fields
}

func SetupApi

func SetupApi(
	blobDescriptorRepo domain.BlobDescriptorRepo,
	cdnBaseUrl string,
	apiAddress string,
	whitelistedPks map[string]struct{},
	log *zap.Logger,
) Api

func (*Api) Run

func (a *Api) Run() error

Jump to

Keyboard shortcuts

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