Documentation ¶
Index ¶
- type ChainHandler
- type DiscoverServerManager
- func (d *DiscoverServerManager) AddNodeConfig(nc *NodeConfig)
- func (d *DiscoverServerManager) DeleteNodeConfig(nodeID string)
- func (d *DiscoverServerManager) GetServicesAndEndpoints(namespace string, labelSelector labels.Selector) (ret []*corev1.Service, eret []*corev1.Endpoints)
- func (d *DiscoverServerManager) NewNodeConfig(config *corev1.ConfigMap) (*NodeConfig, error)
- func (d *DiscoverServerManager) Start(errch chan error) error
- func (d *DiscoverServerManager) Stop()
- func (d *DiscoverServerManager) UpdateNodeConfig(nc *NodeConfig) error
- type Event
- type Handler
- type Hasher
- type NodeConfig
- type Queue
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainHandler ¶
type ChainHandler struct {
// contains filtered or unexported fields
}
ChainHandler applies handlers in a sequence
func (*ChainHandler) Append ¶
func (ch *ChainHandler) Append(h Handler)
Append a handler as the last handler in the chain
func (*ChainHandler) Apply ¶
func (ch *ChainHandler) Apply(obj interface{}, event Event) error
Apply is the handler function
type DiscoverServerManager ¶
type DiscoverServerManager struct {
// contains filtered or unexported fields
}
DiscoverServerManager envoy discover server
func CreateDiscoverServerManager ¶
func CreateDiscoverServerManager(client kubecache.KubeClient, conf option.Conf) (*DiscoverServerManager, error)
CreateDiscoverServerManager create discover server manager
func (*DiscoverServerManager) AddNodeConfig ¶
func (d *DiscoverServerManager) AddNodeConfig(nc *NodeConfig)
AddNodeConfig add node config cache
func (*DiscoverServerManager) DeleteNodeConfig ¶
func (d *DiscoverServerManager) DeleteNodeConfig(nodeID string)
DeleteNodeConfig delete node config cache
func (*DiscoverServerManager) GetServicesAndEndpoints ¶
func (d *DiscoverServerManager) GetServicesAndEndpoints(namespace string, labelSelector labels.Selector) (ret []*corev1.Service, eret []*corev1.Endpoints)
GetServicesAndEndpoints get service and endpoint
func (*DiscoverServerManager) NewNodeConfig ¶
func (d *DiscoverServerManager) NewNodeConfig(config *corev1.ConfigMap) (*NodeConfig, error)
NewNodeConfig new NodeConfig
func (*DiscoverServerManager) Start ¶
func (d *DiscoverServerManager) Start(errch chan error) error
Start server start
func (*DiscoverServerManager) UpdateNodeConfig ¶
func (d *DiscoverServerManager) UpdateNodeConfig(nc *NodeConfig) error
UpdateNodeConfig update node config
type NodeConfig ¶
type NodeConfig struct {
// contains filtered or unexported fields
}
NodeConfig envoy node config cache struct
func (*NodeConfig) TryUpdate ¶
func (n *NodeConfig) TryUpdate(obj interface{}) (needUpdate bool)
TryUpdate try update resources, if don't care about,direct return false if return true, snapshot need update
func (*NodeConfig) VersionUpdate ¶
func (n *NodeConfig) VersionUpdate()
VersionUpdate add version index
Click to show internal directories.
Click to hide internal directories.