Documentation ¶
Index ¶
- func HealthCheckHandler(c *gin.Context)
- type BasePackageService
- func (s *BasePackageService) AbortRequestWithError(c *gin.Context, status int, message string)
- func (s *BasePackageService) ChecksumReader(r io.Reader) (checksum string, size int64, err error)
- func (s *BasePackageService) ConstructFullPkgName(c *gin.Context) (string, string)
- func (s *BasePackageService) GetPrefix() string
- func (s *BasePackageService) PackageFilename(digest string) string
- func (s *BasePackageService) PkgVersionFromFilename(filename string) (pkgName string, version string)
- func (s *BasePackageService) ProxyToPublicRegistry(c *gin.Context)
- func (s *BasePackageService) SetAuthHeaderAndAbort(c *gin.Context)
- type GarbageCollector
- type PackageService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthCheckHandler ¶
Types ¶
type BasePackageService ¶
type BasePackageService struct { PackageService Prefix string Storage storage.BaseStorageBackend PublicRegistryUrl string PublicRegistryPathPrefix string }
func (*BasePackageService) AbortRequestWithError ¶
func (s *BasePackageService) AbortRequestWithError(c *gin.Context, status int, message string)
func (*BasePackageService) ChecksumReader ¶
func (*BasePackageService) ConstructFullPkgName ¶
func (s *BasePackageService) ConstructFullPkgName(c *gin.Context) (string, string)
func (*BasePackageService) GetPrefix ¶
func (s *BasePackageService) GetPrefix() string
func (*BasePackageService) PackageFilename ¶
func (s *BasePackageService) PackageFilename(digest string) string
func (*BasePackageService) PkgVersionFromFilename ¶
func (s *BasePackageService) PkgVersionFromFilename(filename string) (pkgName string, version string)
func (*BasePackageService) ProxyToPublicRegistry ¶
func (s *BasePackageService) ProxyToPublicRegistry(c *gin.Context)
func (*BasePackageService) SetAuthHeaderAndAbort ¶
func (s *BasePackageService) SetAuthHeaderAndAbort(c *gin.Context)
type GarbageCollector ¶
type GarbageCollector struct {
Storage storage.BaseStorageBackend
}
func (*GarbageCollector) CleanupAssets ¶
func (g *GarbageCollector) CleanupAssets(dryrun bool) (assets []models.Asset, err error)
func (*GarbageCollector) DeleteAsset ¶
func (g *GarbageCollector) DeleteAsset(asset *models.Asset) (err error)
type PackageService ¶
type PackageService interface { PackageFilename(digest string) string PkgVersionFromFilename(filename string) (pkgName string, version string) ConstructFullPkgName(c *gin.Context) (pkgName string, namespace string) UploadHandler(c *gin.Context) DownloadHandler(c *gin.Context) MetadataHandler(c *gin.Context) SetAuthHeaderAndAbort(c *gin.Context) GetPrefix() string AbortRequestWithError(c *gin.Context, status int, message string) CleanupAssets(dryrun bool) (assets []models.Asset, err error) }
Click to show internal directories.
Click to hide internal directories.