framework

package
v0.5.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 50 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WorkDir = os.Getenv("WORK_DIR")
)

Functions

func ApiextensionsClient

func ApiextensionsClient(t *testing.T, config *rest.Config) apiextensionsclient.Interface

func Bind

func Bind(t *testing.T, iostreams genericclioptions.IOStreams, authURLCh chan<- string, invocations chan<- SubCommandInvocation, positionalArg string, flags ...string)

func BindAPIService added in v0.0.14

func BindAPIService(t *testing.T, stdin []byte, positionalArg string, flags ...string)

func BrowserEventuallyAtPath added in v0.5.0

func BrowserEventuallyAtPath(t *testing.T, browser *browser.Browser, path string)

func ClientConfig

func ClientConfig(t *testing.T) *rest.Config

func DiscoveryClient

func DiscoveryClient(t *testing.T, config *rest.Config) discovery.DiscoveryInterface

func DynamicClient

func DynamicClient(t *testing.T, config *rest.Config) dynamic.Interface

func KubeClient

func KubeClient(t *testing.T, config *rest.Config) kubernetes.Interface

func NewRESTConfig added in v0.5.0

func NewRESTConfig(t *testing.T, kubeconfig string) *rest.Config

func NewWorkspace

func NewWorkspace(t *testing.T, config *rest.Config, options ...ClusterWorkspaceOption) (*rest.Config, string)

func RestToKubeconfig

func RestToKubeconfig(config *rest.Config, namespace string) clientcmdapi.Config

func StartBackend

func StartBackend(t *testing.T, clientConfig *rest.Config, args ...string) (net.Addr, *backend.Server)

func StartBackendWithoutDefaultArgs

func StartBackendWithoutDefaultArgs(t *testing.T, clientConfig *rest.Config, args ...string) (net.Addr, *backend.Server)

func StartKonnector

func StartKonnector(t *testing.T, clientConfig *rest.Config, args ...string) *konnector.Server

Types

type ClusterWorkspaceOption

type ClusterWorkspaceOption func(ws *tenancyv1alpha1.Workspace)

func WithGenerateName

func WithGenerateName(s string, formatArgs ...any) ClusterWorkspaceOption

func WithName

func WithName(s string, formatArgs ...any) ClusterWorkspaceOption

type SubCommandInvocation added in v0.0.14

type SubCommandInvocation struct {
	Executable string
	Args       []string
	Stdin      []byte
}

Jump to

Keyboard shortcuts

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