コード例 #1
0
ファイル: healthcheck.go プロジェクト: humblec/kubernetes
// proxyHealthCheckRequest - Factory method to instantiate the health check handler
func proxyHealthCheckFactory() *proxyHC {
	glog.V(2).Infof("Initializing kube-proxy health checker")
	phc := &proxyHC{
		serviceEndpointsMap:    cache.NewThreadSafeStore(cache.Indexers{}, cache.Indices{}),
		serviceResponderMap:    make(map[types.NamespacedName]serviceResponder),
		mutationRequestChannel: make(chan *proxyMutationRequest, 1024),
		listenerRequestChannel: make(chan *proxyListenerRequest, 1024),
	}
	return phc
}
コード例 #2
0
func newPodTracker() *podTracker {
	return &podTracker{cache.NewThreadSafeStore(
		cache.Indexers{}, cache.Indices{})}
}
コード例 #3
0
ファイル: pools.go プロジェクト: raggi/contrib
// NewInMemoryPool creates an InMemoryPool.
func NewInMemoryPool() *InMemoryPool {
	return &InMemoryPool{
		cache.NewThreadSafeStore(cache.Indexers{}, cache.Indices{})}
}
コード例 #4
0
ファイル: utils.go プロジェクト: resouer/contrib
func newPoolStore() *poolStore {
	return &poolStore{
		cache.NewThreadSafeStore(cache.Indexers{}, cache.Indices{})}
}
コード例 #5
0
ファイル: backend_ssl.go プロジェクト: aledbf/Ingress
func newSSLCertTracker() *sslCertTracker {
	return &sslCertTracker{
		cache.NewThreadSafeStore(cache.Indexers{}, cache.Indices{}),
	}
}