framework

package
v0.29.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

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