helpers

package
v1.7.0-beta31 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 34 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ExactPath = iota
	PrefixPath
	RegexPath
)

Variables

This section is empty.

Functions

func Certificate added in v0.10.1

func Certificate() string

func GetCallerDirectory added in v0.18.17

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

returns absolute path to the currently executing directory

func GetCerts added in v0.10.1

func GetCerts(params Params) (string, string)

func GetKubeSecret added in v0.10.1

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

func GlooDir added in v0.10.1

func GlooDir() string

func GlooHelmChartDir added in v0.10.1

func GlooHelmChartDir() string

func GlooInstallDir added in v0.10.1

func GlooInstallDir() string

func GlooTestContainersDir added in v0.10.1

func GlooTestContainersDir() string

func KubeDump added in v0.18.9

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

dump all data from the kube cluster

func KubeDumpOnFail added in v0.18.9

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

func MakeGatewayRoute added in v0.18.32

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

func MakeMatcher added in v1.0.0

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

func MakeMultiMatcherRoute added in v1.0.0

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

func MakeRoute added in v0.10.1

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

func Must

func Must(err error)

func MustReadFile added in v0.18.17

func MustReadFile(name string) []byte

returns absolute path to the currently executing directory

func PrintDockerState added in v1.4.0

func PrintDockerState()

func PrintGlooDebugLogs added in v1.0.0

func PrintGlooDebugLogs()

func PrintKubeState added in v1.4.0

func PrintKubeState()

func PrintProcessState added in v1.4.0

func PrintProcessState()

func PrivateKey added in v0.10.1

func PrivateKey() string

func RegisterGlooDebugLogPrintHandler added in v0.18.12

func RegisterGlooDebugLogPrintHandler()

func RegisterGlooDebugLogPrintHandlerAndClearLogs added in v0.18.12

func RegisterGlooDebugLogPrintHandlerAndClearLogs()

func WriteDefaultGateways added in v1.2.13

func WriteDefaultGateways(writeNamespace string, gatewayClient v1.GatewayClient) error

Types

type Params added in v0.10.1

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