Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeConfig ¶
type SotwStore ¶
type SotwStore struct { Nodes map[string]*NodeConfig // contains filtered or unexported fields }
SotwStore stores the State of the World as the controller sees it. It contains channels that can be used to communicate with the xds cache on changes. This is thread safe as every modification is done behind a mutex.
func NewSotWStore ¶
func NewSotWStore(updates chan NodeConfig, deletes chan string, logger *zap.SugaredLogger) *SotwStore
func (*SotwStore) AddReceiver ¶
func (*SotwStore) RemoveReceiver ¶
RemoveReceiver deletes a receiver from a node if it exists. The xds server is notified of the change if one occurs
func (*SotwStore) RemoveSender ¶
/ RemoveSender removes a quilkin proxy node/sender and returns whether or not its the last instance / using that proxyName. If a node is removed the xds server is notified of the change.
Click to show internal directories.
Click to hide internal directories.