handlers

package
v0.0.0-...-28a84a6 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteImageHandler

func DeleteImageHandler(delete ImageDeleteFunc, get ImageDescriptorFunc, 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 ImageDeleteFunc

type ImageDeleteFunc func(ref name.Reference, options ...remote.Option) error

type ImageDescriptorFunc

type ImageDescriptorFunc func(ref name.Reference, options ...remote.Option) (*remote.Descriptor, 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