controlplane

package
v0.0.0-...-3fabec7 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlPlaneService

type ControlPlaneService struct {
	blackicev1.UnimplementedControlPlaneServiceServer
	// contains filtered or unexported fields
}

ControlPlaneService implements the ControlPlaneService gRPC interface

func NewControlPlaneService

func NewControlPlaneService(
	cfg *config.ControlPlaneConfig,
	authService *auth.AuthService,
) *ControlPlaneService

NewControlPlaneService creates a new Control Plane service

func (*ControlPlaneService) ExecuteControlCommand

ExecuteControlCommand executes an administrative command on a component

func (*ControlPlaneService) GetAuditHistory

GetAuditHistory retrieves audit logs with filtering and pagination

func (*ControlPlaneService) GetSystemStatus

GetSystemStatus retrieves status information for all system components

func (*ControlPlaneService) ListComponents

ListComponents returns information on all registered system components

func (*ControlPlaneService) ManageConfiguration

ManageConfiguration handles updates to system configuration

func (*ControlPlaneService) RegisterComponent

func (s *ControlPlaneService) RegisterComponent(component *blackicev1.SystemComponent, client ServiceClient)

RegisterComponent registers a new component with the control plane This would be called by other services to register themselves

func (*ControlPlaneService) UpdateComponentHealth

func (s *ControlPlaneService) UpdateComponentHealth(componentID string, health *blackicev1.NodeHealth) error

UpdateComponentHealth updates the health status of a registered component

type ServiceClient

type ServiceClient interface {
	GetStatus(ctx context.Context) (*blackicev1.NodeHealth, error)
	ExecuteCommand(ctx context.Context, command string, params []byte) ([]byte, error)
}

ServiceClient defines the interface for communicating with other BlackIce services

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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