helpers

package
v0.0.0-...-5a6645a Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExactPath = iota
	PrefixPath
	RegexPath
)

Variables

This section is empty.

Functions

func Certificate

func Certificate() string

func GetCallerDirectory

func GetCallerDirectory(skip ...int) (string, error)

returns absolute path to the currently executing directory

func GetCerts

func GetCerts(params Params) (string, string)

func GetKubeSecret

func GetKubeSecret(name, namespace string) *kubev1.Secret

func GlooDir

func GlooDir() string

func GlooHelmChartDir

func GlooHelmChartDir() string

func GlooInstallDir

func GlooInstallDir() string

func GlooTestContainersDir

func GlooTestContainersDir() string

func KubeDump

func KubeDump(namespaces ...string) (string, error)

dump all data from the kube cluster

func KubeDumpOnFail

func KubeDumpOnFail(out io.Writer, namespaces ...string) func()

func MakeGatewayRoute

func MakeGatewayRoute(pathType, length int) *gatwayv1.Route

func MakeMatcher

func MakeMatcher(pathType, length int) *v1.Matcher

func MakeMultiMatcherRoute

func MakeMultiMatcherRoute(pathType1, length1, pathType2, length2 int) *v1.Route

func MakeRoute

func MakeRoute(pathType, length int) *v1.Route

func Must

func Must(err error)

func MustReadFile

func MustReadFile(name string) []byte

returns absolute path to the currently executing directory

func PrivateKey

func PrivateKey() string

func RegisterGlooDebugLogPrintHandler

func RegisterGlooDebugLogPrintHandler()

func RegisterGlooDebugLogPrintHandlerAndClearLogs

func RegisterGlooDebugLogPrintHandlerAndClearLogs()

Types

type Params

type Params struct {
	Hosts      string         // Comma-separated hostnames and IPs to generate a certificate for
	ValidFrom  *time.Time     // Creation date
	ValidFor   *time.Duration // Duration that certificate is valid for
	IsCA       bool           // whether this cert should be its own Certificate Authority
	RsaBits    int            // Size of RSA key to generate. Ignored if EcdsaCurve is set
	EcdsaCurve string         // ECDSA curve to use to generate a key. Valid values are P224, P256 (recommended), P384, P521
}

Jump to

Keyboard shortcuts

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