Documentation
¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Index ¶
- Constants
- func GetObjectIP(obj interface{}) (string, error)
- type Cache
- func (c *Cache) CacheLookupObjectByIP(ip string, list client.ObjectList) (client.Object, error)
- func (c *Cache) GetPodOwner(obj interface{}) (string, string)
- func (c *Cache) LookupObjectByIP(ip string) (client.Object, error)
- func (c *Cache) LookupPodByIP(list client.ObjectList, ip string) (client.Object, error)
- func (c *Cache) LookupServiceByIP(list client.ObjectList, ip string) (client.Object, error)
- func (lc *Cache) SetInformers(informerFactory informers.SharedInformerFactory)
- func (lc *Cache) SetPodInformer(informerFactory informers.SharedInformerFactory)
- func (lc *Cache) SetServiceInformer(informerFactory informers.SharedInformerFactory)
- func (lc *Cache) Start(ctx context.Context) error
Constants ¶
View Source
const (
ResyncTime time.Duration = 5 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func GetObjectIP ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func New ¶
func New(logger *log.ZapLogger, mgr crmgr.Manager, cl kubernetes.Interface, factory informers.SharedInformerFactory) *Cache
func (*Cache) CacheLookupObjectByIP ¶
func (*Cache) GetPodOwner ¶
func (*Cache) LookupPodByIP ¶
func (*Cache) LookupServiceByIP ¶
func (*Cache) SetInformers ¶
func (lc *Cache) SetInformers(informerFactory informers.SharedInformerFactory)
func (*Cache) SetPodInformer ¶
func (lc *Cache) SetPodInformer(informerFactory informers.SharedInformerFactory)
func (*Cache) SetServiceInformer ¶
func (lc *Cache) SetServiceInformer(informerFactory informers.SharedInformerFactory)
Click to show internal directories.
Click to hide internal directories.