syncintervals

package
v0.3.2-0...-0315bf3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATUS_SYNC_INTERVAL_CONFIGMAP_NAME = "sync-intervals"
	STATUS_SYNC_INTERVAL_LOG_NAME       = "sync-intervals"
	// RequeuePeriod is the time to wait until reconciliation retry in failure cases.
	REQUEUE_PERIOD = 5 * time.Second
)
View Source
const (
	DEFAULT_STATUS_SYNC_INTERVAL       = 5 * time.Second
	DEFAULT_CONTROL_INFO_SYNC_INTERVAL = 60 * time.Second
)

Variables

This section is empty.

Functions

func AddSyncIntervalsController

func AddSyncIntervalsController(mgr ctrl.Manager, syncIntervals *SyncIntervals) error

AddSyncIntervalsController creates a new instance of config map controller and adds it to the manager.

Types

type ResolveSyncIntervalFunc

type ResolveSyncIntervalFunc func() time.Duration

ResolveSyncIntervalFunc is a function for resolving corresponding sync interval from SyncIntervals data structure.

type SyncIntervals

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

SyncIntervals holds periodic sync intervals.

func NewSyncIntervals

func NewSyncIntervals() *SyncIntervals

NewSyncIntervals returns new HohConfigMapData object initialized with default periodic sync intervals.

func (*SyncIntervals) GetControlInfo

func (syncIntervals *SyncIntervals) GetControlInfo() time.Duration

GetControlInfo returns control info sync interval.

func (*SyncIntervals) GetManagerClusters

func (syncIntervals *SyncIntervals) GetManagerClusters() time.Duration

GetManagerClusters returns managed clusters sync interval.

func (*SyncIntervals) GetPolicies

func (syncIntervals *SyncIntervals) GetPolicies() time.Duration

GetPolicies returns policies sync interval.

Jump to

Keyboard shortcuts

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