framework

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: Apache-2.0 Imports: 50 Imported by: 0

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, 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 BrowerEventuallyAtPath

func BrowerEventuallyAtPath(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 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 *tenancyv1beta1.Workspace)

func WithGenerateName

func WithGenerateName(s string, formatArgs ...interface{}) ClusterWorkspaceOption

func WithName

func WithName(s string, formatArgs ...interface{}) 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