コード例 #1
0
ファイル: config.go プロジェクト: vrosnet/kubernetes
// watchForUpdates invokes bcaster.Notify() with the latest version of an object
// when changes occur.
func watchForUpdates(bcaster *config.Broadcaster, accessor config.Accessor, updates <-chan struct{}) {
	for true {
		<-updates
		bcaster.Notify(accessor.MergedState())
	}
}
コード例 #2
0
ファイル: config.go プロジェクト: ericcapricorn/kubernetes
// watchForUpdates invokes watcher.Notify() with the latest version of an object
// when changes occur.
func watchForUpdates(watcher *config.Watcher, accessor config.Accessor, updates <-chan struct{}) {
	for _ = range updates {
		watcher.Notify(accessor.MergedState())
	}
}