clustersynchro

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterStatusUpdater

type ClusterStatusUpdater interface {
	UpdateClusterStatus(ctx context.Context, name string, status *clustersv1alpha1.ClusterStatus) error
}

type ClusterSynchro

type ClusterSynchro struct {
	RESTConfig           *rest.Config
	ClusterStatusUpdater ClusterStatusUpdater
	// contains filtered or unexported fields
}

func New

func New(name string, config *rest.Config, storage storage.StorageFactory, updater ClusterStatusUpdater) (*ClusterSynchro, error)

func (*ClusterSynchro) Monitor

func (synchro *ClusterSynchro) Monitor()

func (*ClusterSynchro) SetResources

func (s *ClusterSynchro) SetResources(clusterResources []clustersv1alpha1.ClusterResource)

func (*ClusterSynchro) Shutdown

func (s *ClusterSynchro) Shutdown()

type ResourceSynchro

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

func (*ResourceSynchro) Close

func (synchro *ResourceSynchro) Close()

func (*ResourceSynchro) OnAdd

func (synchro *ResourceSynchro) OnAdd(obj interface{})

func (*ResourceSynchro) OnDelete

func (synchro *ResourceSynchro) OnDelete(obj interface{})

func (*ResourceSynchro) OnSync

func (synchro *ResourceSynchro) OnSync(obj interface{})

func (*ResourceSynchro) OnUpdate

func (synchro *ResourceSynchro) OnUpdate(_, obj interface{})

func (*ResourceSynchro) Run

func (synchro *ResourceSynchro) Run(stopCh <-chan struct{})

func (*ResourceSynchro) Status

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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