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 ¶
func (r *WatchMap) Get(key types.NamespacedName) *WatchCluster
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
Click to show internal directories.
Click to hide internal directories.