framework

package
v0.33.6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContextRunInProcess kcptestingserver.KcpRunner = func(ctx context.Context, t kcptestingserver.TestingT, cfg kcptestingserver.Config) (<-chan struct{}, error) {
	s := NewInProcessServer(t)
	s.Config = cfg
	s.Start(ctx, t)
	s.Wait(t)
	return s.StopCh, nil
}

Functions

This section is empty.

Types

type InProcessServer

type InProcessServer struct {
	Config kcptestingserver.Config

	Server *kcpserver.Server
	StopCh chan struct{}

	ClientConfig clientcmd.ClientConfig
	// contains filtered or unexported fields
}

func StartTestServer

StartTestServer starts a kcp server for testing purposes.

func (*InProcessServer) Artifact

func (s *InProcessServer) Artifact(t kcptestingserver.TestingT, producer func() (runtime.Object, error))

func (*InProcessServer) BaseConfig

func (*InProcessServer) CADirectory

func (s *InProcessServer) CADirectory() string

func (*InProcessServer) ClientCAUserConfig

func (s *InProcessServer) ClientCAUserConfig(t kcptestingserver.TestingT, config *rest.Config, name string, groups ...string) *rest.Config

func (*InProcessServer) KubeconfigPath

func (s *InProcessServer) KubeconfigPath() string

func (*InProcessServer) Name

func (s *InProcessServer) Name() string

func (*InProcessServer) RESTConfig

func (s *InProcessServer) RESTConfig(t kcptestingserver.TestingT, context string) *rest.Config

func (*InProcessServer) RawConfig

func (s *InProcessServer) RawConfig() (clientcmdapi.Config, error)

func (*InProcessServer) RawConfigFatal

func (*InProcessServer) RootShardSystemMasterBaseConfig

func (s *InProcessServer) RootShardSystemMasterBaseConfig(t kcptestingserver.TestingT) *rest.Config

func (*InProcessServer) ShardNames

func (s *InProcessServer) ShardNames() []string

func (*InProcessServer) ShardSystemMasterBaseConfig

func (s *InProcessServer) ShardSystemMasterBaseConfig(t kcptestingserver.TestingT, shard string) *rest.Config

func (*InProcessServer) Start

func (*InProcessServer) Stop

func (s *InProcessServer) Stop()

func (*InProcessServer) Stopped

func (s *InProcessServer) Stopped() bool

func (*InProcessServer) Wait

Jump to

Keyboard shortcuts

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