plugin

package
v0.13.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertRestConfigToClientConfig

func ConvertRestConfigToClientConfig(config *rest.Config) (clientcmd.ClientConfig, error)

Types

type Manager

type Manager interface {
	Start(
		currentNamespace, targetNamespace string,
		virtualKubeConfig *rest.Config,
		physicalKubeConfig *rest.Config,
		syncerConfig *clientcmdapi.Config,
		options *context2.VirtualClusterOptions,
	) error
	SetLeader(isLeader bool)
	ClientHooksFor(versionKindType VersionKindType) []*Plugin
	HasClientHooks() bool
	HasPlugins() bool
}
var DefaultManager Manager = &manager{
	clientHooks:    map[VersionKindType][]*Plugin{},
	pluginVersions: map[string]*remote.RegisterPluginRequest{},
}

type Plugin added in v0.9.0

type Plugin struct {
	Name    string
	Address string
}

type VersionKindType added in v0.9.0

type VersionKindType struct {
	APIVersion string
	Kind       string
	Type       string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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