util

package
v0.0.0-...-cf82cec Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: EPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTimestamp

func CreateTimestamp() int64

CreateTimestamp : Create a timestamp

func DetectOpenShift

func DetectOpenShift() (isOpenshift bool, isOpenshift4 bool, anError error)

DetectOpenShift determines if we're running on an OpenShift cluster

func GenerateCertificate

func GenerateCertificate(dnsName string, certTitle string) (string, string, error)

GenerateCertificate : generates a key and certificate returns ServerKey ServerCert, error

func GenerateRandomString

func GenerateRandomString(length int) string

GenerateRandomString : Generates random characters

func GetOperatorNamespace

func GetOperatorNamespace() string

GetOperatorNamespace : Operator namespace

func WaitForService

func WaitForService(url string, successStatusCode int, maxRetries int) error

WaitForService : Wait for service to start

Types

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPClient : An net HTTP Client to simplify testing

Jump to

Keyboard shortcuts

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