cache

package
v0.0.1-pre Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

Constants

View Source
const (
	ResyncTime time.Duration = 5 * time.Minute
)

Variables

This section is empty.

Functions

func GetObjectIP

func GetObjectIP(obj interface{}) (string, error)

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func (*Cache) CacheLookupObjectByIP

func (c *Cache) CacheLookupObjectByIP(ip string, list client.ObjectList) (client.Object, error)

func (*Cache) GetPodOwner

func (c *Cache) GetPodOwner(obj interface{}) (string, string)

func (*Cache) LookupObjectByIP

func (c *Cache) LookupObjectByIP(ip string) (client.Object, error)

func (*Cache) LookupPodByIP

func (c *Cache) LookupPodByIP(list client.ObjectList, ip string) (client.Object, error)

func (*Cache) LookupServiceByIP

func (c *Cache) LookupServiceByIP(list client.ObjectList, ip string) (client.Object, error)

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)

func (*Cache) Start

func (lc *Cache) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL