utils

package
v0.0.0-...-f380db6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotFoundError = errors.New("NotFoundError")
View Source
var UnrecoverableError = errors.New("UnrecoverableError")

Functions

func AivenFail

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

func Expired

func Expired(expiredAt time.Time) bool

func GetGVK

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

func KeysFromByteMap

func KeysFromByteMap(m map[string][]byte) []string

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 MakeOwnerReference

func MakeOwnerReference(in client.Object) (metav1.OwnerReference, error)

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 ParseTimestamp

func ParseTimestamp(expiresAt string, errs *[]error) time.Time

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