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 ¶
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.
Click to show internal directories.
Click to hide internal directories.