Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlushObjectCaches

func FlushObjectCaches()

    FlushObjectCaches flushes all object caches.

    func RemoveObject

    func RemoveObject(name, objHash string)

      RemoveObject removes object with objHash in the Cache with the given name from the object Cache.

      Types

      type ObjectCache

      type ObjectCache struct {
      	// Cache is a cache keyed by object Hash() function.
      	Cache map[string]*object.K8sObject
      	Mu    *sync.RWMutex
      }

        ObjectCache is a cache of objects,

        func GetCache

        func GetCache(name string) *ObjectCache

          GetCache returns the object Cache for the given name, creating one in the global Cache if needed.

          Source Files