plugin

package
v0.17.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 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(
		ctx context.Context,
		currentNamespace, targetNamespace string,
		virtualKubeConfig *rest.Config,
		physicalKubeConfig *rest.Config,
		syncerConfig *clientcmdapi.Config,
		options *options.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