node

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: MIT Imports: 8 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 implements the NodeLifecycleManager interface

func NewManager

func NewManager(
	logProcessor hephaestus.LogProcessingService,
	modelService hephaestus.ModelServiceProvider,
	remoteRepoService hephaestus.RemoteRepositoryService,
	metricsCollector hephaestus.MetricsCollectionService,
) *Manager

NewManager creates a new instance of the node manager

func (*Manager) CreateSystemNode

func (m *Manager) CreateSystemNode(ctx context.Context, config *hephaestus.SystemConfiguration) (*hephaestus.SystemNode, error)

CreateSystemNode creates a new node with the provided configuration

func (*Manager) DeleteSystemNode

func (m *Manager) DeleteSystemNode(ctx context.Context, nodeID string) error

DeleteSystemNode removes a node from the system

func (*Manager) GetSystemNode

func (m *Manager) GetSystemNode(ctx context.Context, nodeID string) (*hephaestus.SystemNode, error)

GetSystemNode retrieves a node by its identifier

func (*Manager) UpdateNodeOperationalStatus

func (m *Manager) UpdateNodeOperationalStatus(ctx context.Context, nodeID string, status hephaestus.NodeStatus) error

UpdateNodeOperationalStatus updates the operational status of a node

Jump to

Keyboard shortcuts

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