types

package
v0.20.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// Start starts the plugins with the given information
	Start(
		ctx context.Context,
		virtualKubeConfig *rest.Config,
		syncerConfig *clientcmdapi.Config,
		config *config.VirtualClusterConfig,
	) error

	// SetLeader sets the leader for the plugins
	SetLeader(ctx context.Context) error

	// MutateObject mutates the objects of the given version kind type
	MutateObject(ctx context.Context, obj client.Object, hookType string, scheme *runtime.Scheme) error

	// HasClientHooks returns if there are any plugin client hooks
	HasClientHooks() bool

	// HasClientHooksForType returns if there are any plugin client hooks for the given type
	HasClientHooksForType(VersionKindType) bool

	// HasPlugins returns if there are any plugins to start
	HasPlugins() bool

	// SetProFeatures is used by vCluster.Pro to signal what pro features are enabled
	SetProFeatures(proFeatures map[string]bool)
}

type VersionKindType

type VersionKindType struct {
	APIVersion string
	Kind       string
	Type       string
}

Jump to

Keyboard shortcuts

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