deckerrors

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractAPIErrors added in v2.10.0

func ExtractAPIErrors(err error) []*kong.APIError

ExtractAPIErrors tries to extract kong.APIErrors from the generic error. It might be used when inspection of the error details is needed, e.g. its status code.

func IsConflictErr

func IsConflictErr(err error) bool

Types

type ConfigConflictError

type ConfigConflictError struct {
	Err error
}

ConfigConflictError is an error used to wrap deck config conflict errors returned from deck functions transforming KongRawState to KongState (e.g. state.Get, dump.Get).

func (ConfigConflictError) Error

func (e ConfigConflictError) Error() string

func (ConfigConflictError) Is

func (e ConfigConflictError) Is(err error) bool

func (ConfigConflictError) Unwrap

func (e ConfigConflictError) Unwrap() error

Jump to

Keyboard shortcuts

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