adapter

package
v1.3.3-0...-c71bbab Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() []errdefs.Adapter

All returns a slice with all adapters.

func HTTPStatusCodeFromContainerdError

func HTTPStatusCodeFromContainerdError(err error) int

HTTPStatusCodeFromContainerdError returns status code for containerd errors when consumed directly (not through gRPC).

func HTTPStatusCodeFromDistributionError

func HTTPStatusCodeFromDistributionError(err error) int

HTTPStatusCodeFromDistributionError returns status code according to registry errcode. Code is loosely based on errcode.ServeJSON() in docker/distribution.

func HTTPStatusCodeFromGRPCError

func HTTPStatusCodeFromGRPCError(err error) int

HTTPStatusCodeFromGRPCError returns status code according to gRPC error

Types

This section is empty.

Jump to

Keyboard shortcuts

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