Documentation ¶
Index ¶
- type Manager
- func (m *Manager) ClientHooksFor(versionKindType plugintypes.VersionKindType) []*Plugin
- func (m *Manager) GetContext(context.Context, *remote.Empty) (*remote.Context, error)
- func (m *Manager) HasClientHooks() bool
- func (m *Manager) HasClientHooksForType(versionKindType plugintypes.VersionKindType) bool
- func (m *Manager) HasPlugins() bool
- func (m *Manager) IsLeader(context.Context, *remote.Empty) (*remote.LeaderInfo, error)
- func (m *Manager) MutateObject(ctx context.Context, obj client.Object, hookType string, ...) error
- func (m *Manager) Register(_ context.Context, info *remote.PluginInfo) (*remote.Context, error)
- func (m *Manager) RegisterPlugin(_ context.Context, info *remote.RegisterPluginRequest) (*remote.RegisterPluginResult, error)
- func (m *Manager) SetLeader(isLeader bool)
- func (m *Manager) Start(ctx context.Context, currentNamespace, targetNamespace string, ...) error
- type Plugin
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 (*Manager) HasClientHooks ¶
func (*Manager) HasClientHooksForType ¶
func (m *Manager) HasClientHooksForType(versionKindType plugintypes.VersionKindType) bool
func (*Manager) HasPlugins ¶
func (*Manager) MutateObject ¶
func (*Manager) RegisterPlugin ¶
func (m *Manager) RegisterPlugin(_ context.Context, info *remote.RegisterPluginRequest) (*remote.RegisterPluginResult, error)
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
Click to show internal directories.
Click to hide internal directories.