utils

package
v0.0.0-...-d659a5a Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("ErrNotFound")
View Source
var ErrUnrecoverable = errors.New("ErrUnrecoverable")

Functions

func AivenFail

func AivenFail(operation string, application *aiven_nais_io_v1.AivenApplication, err error, notFoundIsRecoverable bool, logger logrus.FieldLogger) error

func CreateSuffix

func CreateSuffix(application *aiven_nais_io_v1.AivenApplication) (string, error)

func Expired

func Expired(expiredAt time.Time) bool

func GetGVK

func GetGVK(scheme *runtime.Scheme, obj runtime.Object) (*schema.GroupVersionKind, error)

func KeysFromStringMap

func KeysFromStringMap(m map[string]string) []string

func LocalFail

func LocalFail(operation string, application *aiven_nais_io_v1.AivenApplication, err error, logger logrus.FieldLogger)

func MergeByteMap

func MergeByteMap(src, dst map[string][]byte) map[string][]byte

func MergeStringMap

func MergeStringMap(src, dst map[string]string) map[string]string

func Parse

func Parse(expiresAt string) (time.Time, error)

func SelectSuffix

func SelectSuffix(access string) string

func UnwrapAivenError

func UnwrapAivenError(errorMessage error, logger logrus.FieldLogger, notFoundIsRecoverable bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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