package
0.0.0-20241119151531-f211d2b7cd89
Repository: https://github.com/app-sre/go-qontract-reconcile.git
Documentation: pkg.go.dev

# Functions

Contains checks if a string is in a slice.
EnsureViperSub will return a viper sub if available or create one.
Log returns the SuggardLoggar that can be used accross integrations.
NewHTTPTestServer returns a new httptest.Server with a given handlerFunc.
NoopLog returns a no-op logger, that can be used to supress logging.
ReadKeyFile reads a key file and returns the content.
Retry attempts to execute the given callback function a certain number of times, with a delay between each attempt using a simple exponential backoff algorithm that uses a slight jitter to ensure that retries aren't clustered.
RetryStop wraps the given error in a private retryError type and returns it to signal that a retry loop should stop attempting the operation that produced the given error.
StrPointer returns a pointer to a string.

# Structs

AuthedTransport is a http.RoundTripper that adds an Authorization header.