utils

package
v0.0.0-...-d596a3d Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OneOf

func OneOf(value string, values []string) bool

OneOf returns true if the value is present in the list of values

func WaitForAPI

func WaitForAPI(ctx context.Context, client APIClient) (err error)

WaitForAPI spins until the API can be reached successfully or the provided context is cancelled

Types

type APIClient

type APIClient interface {
	// Health checks the API readiness
	Health(context.Context) error
}

APIClient defines generic interface for an API client

Jump to

Keyboard shortcuts

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