web

package
v0.0.0-...-42820ff Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandler

func ErrorHandler(err error, c echo.Context)

ErrorHandler handles errors and writes them in the docker format when needed

func GetBlob

func GetBlob(c echo.Context, repoID, orgID string) (*prisma.Blob, error)

GetBlob parses the digest and returns the associated blob

func GetImage

func GetImage(c echo.Context, repoID, orgID string) (*prisma.Image, error)

GetImage gets the image from the request tag/digest

func GetRepo

GetRepo parses the repository and organization out of the path and returns the object

func ParseLengthAndStart

func ParseLengthAndStart(c echo.Context) (int32, int32, error)

ParseLengthAndStart parses the length and range headers from a request

func ParsePagination

func ParsePagination(c echo.Context) (int32, string, error)

ParsePagination parses the docker page number and last from the request

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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