Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCacheRequestHandler ¶
func GetCacheRequestHandler(w http.ResponseWriter, r *http.Request)
GetCacheRequestHandler rest request handler
Types ¶
type AtomicHostCache ¶
AtomicHostCache atomic HostCache
func (*AtomicHostCache) GetCache ¶
func (p *AtomicHostCache) GetCache() hosts.HostCache
GetCache get the current Cache
type CacheBuilder ¶
type CacheBuilder struct {
// contains filtered or unexported fields
}
CacheBuilder initializes and updates host cache
func NewCacheBuilder ¶
func NewCacheBuilder(apiserver string, kubeconfig string, updatePeriod int, wg *sync.WaitGroup) *CacheBuilder
NewCacheBuilder new CacheBuilder
func (*CacheBuilder) BuildCache ¶
func (r *CacheBuilder) BuildCache() error
BuildCache build updated Cache
func (*CacheBuilder) StartCacheBuilder ¶
func (r *CacheBuilder) StartCacheBuilder()
StartCacheBuilder run CacheBuilder
func (*CacheBuilder) StopCacheBuilder ¶
func (r *CacheBuilder) StopCacheBuilder()
StopCacheBuilder stop CacheBuilder
Click to show internal directories.
Click to hide internal directories.