errors

package
v0.0.0-...-741fd3f Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindDeprecatedMessagesInEnvoyLog

func FindDeprecatedMessagesInEnvoyLog(logs, extraInfo string) error

FindDeprecatedMessagesInEnvoyLog looks for deprecated messages in the `logs` parameter. If found, it will return a DeprecatedError. Use `extraInfo` to pass additional info, like pod namespace/name, etc.

func IsDeprecatedError

func IsDeprecatedError(err error) bool

func IsOrContainsDeprecatedError

func IsOrContainsDeprecatedError(err error) bool

func NewDeprecatedError

func NewDeprecatedError(format string, args ...any) error

Types

type DeprecatedError

type DeprecatedError struct {
	// contains filtered or unexported fields
}

func (*DeprecatedError) Error

func (de *DeprecatedError) Error() string

Jump to

Keyboard shortcuts

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