manager

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager is the main governance manager component

func NewManager

func NewManager(config *models.ManagerConfig) *Manager

NewManager creates a new governance manager with in-memory cache only (no database persistence)

func NewManagerWithDatabase

func NewManagerWithDatabase(config *models.ManagerConfig, db storage.DatabaseStore) *Manager

NewManagerWithDatabase creates a new governance manager with optional database persistence. The manager always uses in-memory cache for performance. If db is not nil, all changes are also persisted to the database asynchronously.

func (*Manager) GetAllServicePods

func (m *Manager) GetAllServicePods() map[string][]*models.ServiceInfo

GetAllServicePods returns a map of service names to their pods

func (*Manager) GetConfig

func (m *Manager) GetConfig() *models.ManagerConfig

GetConfig returns the manager configuration

func (*Manager) GetRegistry

func (m *Manager) GetRegistry() *registry.Registry

GetRegistry returns the registry (for testing/debugging)

func (*Manager) GetServicePods

func (m *Manager) GetServicePods(serviceName string) []*models.ServiceInfo

GetServicePods returns all pods for a given service group

func (*Manager) Start

func (m *Manager) Start() error

Start starts the governance manager

func (*Manager) Stop

func (m *Manager) Stop() error

Stop gracefully stops the governance manager

func (*Manager) Wait

func (m *Manager) Wait()

Wait blocks until the manager is stopped

Jump to

Keyboard shortcuts

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