Documentation
¶
Index ¶
- type GatewayLookupCache
- func (glc *GatewayLookupCache) Add(gateway string, hosts ...string)
- func (glc *GatewayLookupCache) AddFunc(obj interface{})
- func (glc *GatewayLookupCache) Delete(hosts ...string)
- func (glc *GatewayLookupCache) DeleteFunc(obj interface{})
- func (glc *GatewayLookupCache) Get(host string) (string, bool)
- func (glc *GatewayLookupCache) UpdateFunc(oldObj, newObj interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayLookupCache ¶
type GatewayLookupCache struct {
// contains filtered or unexported fields
}
GatewayLookupCache provides concurrency safe lookups from dns host to namespace/gateway Use New() as the Add, Delete, and Get functions all assume the cache map is non-nil
func New ¶
func New() *GatewayLookupCache
func (*GatewayLookupCache) Add ¶
func (glc *GatewayLookupCache) Add(gateway string, hosts ...string)
func (*GatewayLookupCache) AddFunc ¶
func (glc *GatewayLookupCache) AddFunc(obj interface{})
func (*GatewayLookupCache) Delete ¶
func (glc *GatewayLookupCache) Delete(hosts ...string)
func (*GatewayLookupCache) DeleteFunc ¶
func (glc *GatewayLookupCache) DeleteFunc(obj interface{})
func (*GatewayLookupCache) UpdateFunc ¶
func (glc *GatewayLookupCache) UpdateFunc(oldObj, newObj interface{})
Click to show internal directories.
Click to hide internal directories.