Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cell = cell.ProvidePrivate(func(jobGroup job.Group) Manager { m := NewManager() jobGroup.Add(job.Timer( "hubble-namespace-cleanup", func(_ context.Context) error { m.cleanupNamespaces() return nil }, cleanupInterval, )) return m })
Functions ¶
func NewManager ¶
func NewManager() *namespaceManager
NOTE: there are still a couple of places where we need to construct a functional ns manager outside of Hive/Cell, i.e. testing and Hubble Relay.
Types ¶
type Manager ¶
type Manager interface {
GetNamespaces() []*observerpb.Namespace
AddNamespace(*observerpb.Namespace)
}
Click to show internal directories.
Click to hide internal directories.