Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigureLogger()
- func GetKubernetesDynamicInterface() (dynamic.Interface, error)
- func GetKubernetesInterface() (kubernetes.Interface, error)
- func GetTestKubenertesInterface() (kubernetes.Interface, error)
- func Murmur3Hasher(member string, key string) uint64
- func RunKubernetesIntegrationTest(t *testing.T, testFunc func(t *testing.T))
- func RunProcess(startProcess func() (io.Closer, error))
- func ShouldRunIntegrationTests() bool
- func WaitUntilSignal(closers ...io.Closer)
- type Hasher
- type Key
- type Member
- type Members
Constants ¶
View Source
const DefaultLogLevel = zerolog.InfoLevel
Variables ¶
View Source
var ( // LogLevel Used for flags LogLevel zerolog.Level // LogJson Used for flags LogJson bool )
Functions ¶
func ConfigureLogger ¶
func ConfigureLogger()
func GetKubernetesInterface ¶
func GetKubernetesInterface() (kubernetes.Interface, error)
func GetTestKubenertesInterface ¶
func GetTestKubenertesInterface() (kubernetes.Interface, error)
func Murmur3Hasher ¶
NOTE: The python implementation of murmur3 may differ from the golang implementation. For now, this is fine since go and python don't need to agree on any hashing schemes but if we ever need to agree on a hashing scheme, we should verify that the implementations are the same.
func RunKubernetesIntegrationTest ¶
This helper function can be used to skip tests if the environment variable is not set appropriately.
func RunProcess ¶
func ShouldRunIntegrationTests ¶
func ShouldRunIntegrationTests() bool
ShouldRunTests checks if the tests should be run based on an environment variable.
func WaitUntilSignal ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.