serverControllers实现图
2019-11-25 10:50:41 3 举报
serverController结构图
作者其他创作
大纲/内容
pilot/pkg/model/controller.goController
聚合 model.Controllermodel.ServiceDiscovery
聚合handler *kube.ChainHandler
聚合services cacheHandlerendpoints cacheHandlernodes cacheHandler
pilot/pkg/serviceregistry/kube/queue.goChainHandler
pilot/pkg/model/service.goServiceDiscovery
pilot/pkg/serviceregistry/kube/controller/controller.gocacheHandler
informer cache.SharedIndexInformerhandler *kube.ChainHandler
聚合registries []Registry
橘色为借口,黄色为类结构类似装饰者模式,有待具体研究
pilot/pkg/serviceregistry/aggregate/controller.goController
registries []Registry storeLock sync.RWMutex
pilot/pkg/serviceregistry/kube/controller/controller.goController
domainSuffix stringclient kubernetes.Interfacequeue kube.Queueservices cacheHandlerendpoints cacheHandlernodes cacheHandlerpods *PodCacheEnv *model.EnvironmentClusterID stringXDSUpdater model.XDSUpdaterstop chan struct{}sync.RWMutexservicesMap map[host.Name]*model.ServiceexternalNameSvcInstanceMap map[host.Name][]*model.ServiceInstanceranger cidranger.RangernetworkForRegistry string
pilot/pkg/serviceregistry/aggregate/controller.goRegistry
Name serviceregistry.ServiceRegistry ClusterID string model.Controller model.ServiceDiscovery
收藏
0 条评论
下一页