utils

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetrieveURL

func RetrieveURL(c client.Client, nn types.NamespacedName, port int32, path string) (string, error)

func ServiceHost

func ServiceHost(c client.Client, nn types.NamespacedName, port int32) (string, error)

Types

type OutBuffer added in v1.6.0

type OutBuffer interface {
	io.Writer
	fmt.Stringer
	Reset()
	Len() int
}

OutBuffer combines io.Writer with fmt.Stringer for buffer access

type OutBuffers added in v1.6.0

type OutBuffers []OutBuffer

OutBuffers allows you to reset all the buffers easily.

func CaptureOutput added in v1.6.0

func CaptureOutput(labels ...string) OutBuffers

CaptureOutput creates labeled OutBuffers in the same order as labels.

func DumpLogsOnFail added in v1.6.0

func DumpLogsOnFail(t testing.TB, labels ...string) OutBuffers

DumpLogsOnFail creates labeled OutBuffers in the same order as labels. The difference between this and CaptureOutput is that when the test fails, these are dumped for diagnosis

func (OutBuffers) Reset added in v1.6.0

func (s OutBuffers) Reset()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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