namespacecache

package
v0.0.0-...-e87bf41 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: EPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsReconcileRequestsForNamespaces

func AsReconcileRequestsForNamespaces(obj metav1.Object, rules []EventRule) []reconcile.Request

Types

type EventRule

type EventRule struct {
	Check      func(metav1.Object) bool
	Namespaces func(metav1.Object) []string
}

type NamespaceCache

type NamespaceCache struct {
	Client          client.Client
	KnownNamespaces map[string]NamespaceInfo
	Lock            sync.Mutex
}

func NewNamespaceCache

func NewNamespaceCache(client client.Client) *NamespaceCache

func (*NamespaceCache) ExamineNamespace

func (c *NamespaceCache) ExamineNamespace(ctx context.Context, ns string) (*NamespaceInfo, error)

func (*NamespaceCache) GetAllKnownNamespaces

func (c *NamespaceCache) GetAllKnownNamespaces() []string

func (*NamespaceCache) GetNamespaceInfo

func (c *NamespaceCache) GetNamespaceInfo(ctx context.Context, namespace string) (*NamespaceInfo, error)

type NamespaceInfo

type NamespaceInfo struct {
	IsWorkspaceNamespace bool
	Username             string
}

Jump to

Keyboard shortcuts

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