namespace

package
v1.19.6 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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)
}

Jump to

Keyboard shortcuts

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