handlers

package
v0.0.0-...-85617d8 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteImageHandler

func DeleteImageHandler(deleter image.Deleter, logger *log.Logger, authenticator authn.Authenticator) http.HandlerFunc

func HealthzHandler

func HealthzHandler(registryBasePath string, healthyFunc HealthyFunc, logger *log.Logger, authenticator authn.Authenticator) http.HandlerFunc

func PostPackageHandler

func PostPackageHandler(uploadFunc UploaderFunc, logger *log.Logger, authenticator authn.Authenticator) http.HandlerFunc

Types

type DeleteImageResponseBody

type DeleteImageResponseBody struct {
	ImageReference string `json:"image_reference"`
}

type HashResponse

type HashResponse struct {
	Algorithm string `json:"algorithm"`
	Hex       string `json:"hex"`
}

type HealthyFunc

type HealthyFunc func(registryPath string, authenticator authn.Authenticator) error

type PostPackageResponse

type PostPackageResponse struct {
	Hash HashResponse `json:"hash"`
}

type UploaderFunc

type UploaderFunc func(zipPath, registryPath string, authenticator authn.Authenticator) (package_upload.Hash, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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