synccontroller

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 33 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildObjectSyncName

func BuildObjectSyncName(nodeName, UID string) string

BuildObjectSyncName builds the name of objectSync/clusterObjectSync

func CompareResourceVersion

func CompareResourceVersion(rva, rvb string) int

CompareResourceVersion compares resourceversions, resource versions are actually ints, so we can easily compare them. If rva>rvb, return 1; rva=rvb, return 0; rva<rvb, return -1

func GetObjectResourceVersion

func GetObjectResourceVersion(obj interface{}) string

GetObjectResourceVersion returns the resourceVersion of the object in message

func Register

func Register(ec *configv1alpha1.SyncController)

Types

type SyncController

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

SyncController use beehive context message layer

func (*SyncController) Enable

func (sctl *SyncController) Enable() bool

Enable of controller

func (*SyncController) Group

func (sctl *SyncController) Group() string

Group of controller

func (*SyncController) Name

func (sctl *SyncController) Name() string

Name of controller

func (*SyncController) Start

func (sctl *SyncController) Start()

Start controller

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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