v1

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	remote.UnimplementedVClusterServer
	// contains filtered or unexported fields
}

func NewManager

func NewManager() *Manager

func (*Manager) ClientHooksFor

func (m *Manager) ClientHooksFor(versionKindType plugintypes.VersionKindType) []*Plugin

func (*Manager) GetContext

func (m *Manager) GetContext(context.Context, *remote.Empty) (*remote.Context, error)

func (*Manager) HasClientHooks

func (m *Manager) HasClientHooks() bool

func (*Manager) HasClientHooksForType

func (m *Manager) HasClientHooksForType(versionKindType plugintypes.VersionKindType) bool

func (*Manager) HasPlugins

func (m *Manager) HasPlugins() bool

func (*Manager) IsLeader

func (*Manager) MutateObject

func (m *Manager) MutateObject(ctx context.Context, obj client.Object, hookType string, scheme *runtime.Scheme) error

func (*Manager) Register

func (m *Manager) Register(_ context.Context, info *remote.PluginInfo) (*remote.Context, error)

Register is deprecated and will be removed in future

func (*Manager) RegisterPlugin

func (*Manager) SetLeader

func (m *Manager) SetLeader(isLeader bool)

func (*Manager) Start

func (m *Manager) Start(
	ctx context.Context,
	currentNamespace, targetNamespace string,
	virtualKubeConfig *rest.Config,
	physicalKubeConfig *rest.Config,
	syncerConfig *clientcmdapi.Config,
	options *legacyconfig.LegacyVirtualClusterOptions,
) error

type Plugin

type Plugin struct {
	Name    string
	Address string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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