Documentation
¶
Index ¶
- type ControlPlaneService
- func (s *ControlPlaneService) ExecuteControlCommand(ctx context.Context, req *blackicev1.ExecuteControlCommandRequest) (*blackicev1.ExecuteControlCommandResponse, error)
- func (s *ControlPlaneService) GetAuditHistory(ctx context.Context, req *blackicev1.GetAuditHistoryRequest) (*blackicev1.GetAuditHistoryResponse, error)
- func (s *ControlPlaneService) GetSystemStatus(ctx context.Context, req *blackicev1.GetSystemStatusRequest) (*blackicev1.SystemStatusResponse, error)
- func (s *ControlPlaneService) ListComponents(ctx context.Context, req *blackicev1.ListComponentsRequest) (*blackicev1.ListComponentsResponse, error)
- func (s *ControlPlaneService) ManageConfiguration(ctx context.Context, req *blackicev1.ManageConfigurationRequest) (*blackicev1.ConfigurationResponse, error)
- func (s *ControlPlaneService) RegisterComponent(component *blackicev1.SystemComponent, client ServiceClient)
- func (s *ControlPlaneService) UpdateComponentHealth(componentID string, health *blackicev1.NodeHealth) error
- type ServiceClient
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 ¶
func (s *ControlPlaneService) ExecuteControlCommand(ctx context.Context, req *blackicev1.ExecuteControlCommandRequest) (*blackicev1.ExecuteControlCommandResponse, error)
ExecuteControlCommand executes an administrative command on a component
func (*ControlPlaneService) GetAuditHistory ¶
func (s *ControlPlaneService) GetAuditHistory(ctx context.Context, req *blackicev1.GetAuditHistoryRequest) (*blackicev1.GetAuditHistoryResponse, error)
GetAuditHistory retrieves audit logs with filtering and pagination
func (*ControlPlaneService) GetSystemStatus ¶
func (s *ControlPlaneService) GetSystemStatus(ctx context.Context, req *blackicev1.GetSystemStatusRequest) (*blackicev1.SystemStatusResponse, error)
GetSystemStatus retrieves status information for all system components
func (*ControlPlaneService) ListComponents ¶
func (s *ControlPlaneService) ListComponents(ctx context.Context, req *blackicev1.ListComponentsRequest) (*blackicev1.ListComponentsResponse, error)
ListComponents returns information on all registered system components
func (*ControlPlaneService) ManageConfiguration ¶
func (s *ControlPlaneService) ManageConfiguration(ctx context.Context, req *blackicev1.ManageConfigurationRequest) (*blackicev1.ConfigurationResponse, error)
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