remote

package
v0.0.0-...-ec8378c Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagerConfig

type ManagerConfig struct {
	// rest.Config for remote cluster to watch Velero events on
	RemoteRestConfig *rest.Config
	// nsname used in mapping MigCluster resources to RemoteWatchManagers
	ParentNsName types.NamespacedName
	// MigMigration v1.Object and runtime.Object needed for remote cluster to properly forward events
	ParentMeta   v1.Object
	ParentObject runtime.Object
	Scheme       *runtime.Scheme
}

ManagerConfig specifies config options for setting up a RemoteWatch Manager

type WatchCluster

type WatchCluster struct {
	RemoteManager manager.Manager
	StopFunc      context.CancelFunc
}

WatchCluster tracks Remote Managers and Event Forward Channels

type WatchMap

type WatchMap struct {
	// contains filtered or unexported fields
}

WatchMap provides a map between MigCluster nsNames and RemoteWatchClusters

func GetWatchMap

func GetWatchMap() *WatchMap

GetWatchMap returns the shared RemoteWatchMap instance

func (*WatchMap) Delete

func (r *WatchMap) Delete(key types.NamespacedName)

Delete the RemoteWatchCluster associated with a MigCluster resource nsName

func (*WatchMap) Get

Get the RemoteWatchCluster associated with a MigCluster resource nsName, return nil if not found

func (*WatchMap) Set

func (r *WatchMap) Set(key types.NamespacedName, value *WatchCluster)

Set the RemoteWatchCluster associated with a MigCluster resource nsName

Jump to

Keyboard shortcuts

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