pkg

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClients

func WithClients(tb testing.TB, handler func(c ClientsContext))

WithClients runs provided handler within a ClientsContext, so that the handler has access to configured k8s.Clients.

func WithKnTest

func WithKnTest(tb testing.TB, handler func(c *TestContext))

WithKnTest runs handler within a TestContext, so that the handler has access to clienttest.KnTest.

Types

type ClientsContext

type ClientsContext struct {
	k8s.Clients
	*TestContext
}

ClientsContext holds a Kubernetes clients context.

type TestContext

type TestContext struct {
	testing.TB
	*clienttest.KnTest
}

TestContext holds a test context.

Jump to

Keyboard shortcuts

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