Documentation ¶
Index ¶
- func DeleteImageHandler(deleter image.Deleter, logger *log.Logger, authenticator authn.Authenticator) http.HandlerFunc
- func HealthzHandler(registryBasePath string, healthyFunc HealthyFunc, logger *log.Logger, ...) http.HandlerFunc
- func PostPackageHandler(uploadFunc UploaderFunc, logger *log.Logger, authenticator authn.Authenticator) http.HandlerFunc
- type DeleteImageResponseBody
- type HashResponse
- type HealthyFunc
- type PostPackageResponse
- type UploaderFunc
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 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)
Click to show internal directories.
Click to hide internal directories.