errdefs

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package errdefs contains the error definitions (i.e., domain types). It is created to prevent adaptor layers (e.g., HTTP handler) from directly depending on the errors received by infra layers (e.g., containerd's error).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsConflict

func IsConflict(err error) bool

func IsForbiddenError

func IsForbiddenError(err error) bool

func IsInvalidFormat

func IsInvalidFormat(err error) bool

func IsNotFound

func IsNotFound(err error) bool

func IsNotModified

func IsNotModified(err error) bool

func IsUnauthenticated

func IsUnauthenticated(err error) bool

func IsWrongSemantics

func IsWrongSemantics(err error) bool

func NewConflict

func NewConflict(err error) error

func NewForbidden

func NewForbidden(err error) error

func NewInvalidFormat

func NewInvalidFormat(err error) error

func NewNotFound

func NewNotFound(err error) error

func NewNotModified

func NewNotModified(err error) error

func NewUnauthenticated

func NewUnauthenticated(err error) error

func NewWrongSemantics

func NewWrongSemantics(err error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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