syncintervals

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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