Documentation
¶
Overview ¶
* SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: LicenseRef-NvidiaProprietary * * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual * property and proprietary rights in and to this material, related * documentation and any modifications thereto. Any use, reproduction, * disclosure or distribution of this material and related documentation * without an express license agreement from NVIDIA CORPORATION or * its affiliates is strictly prohibited.
Index ¶
- func BuildDBConfigFromEnv() (*db.Config, error)
- func BuildVaultConfigFromEnv() (*credentials.VaultConfig, error)
- type Config
- type FirmwareConfig
- type NVSwitchManagerServerImpl
- func (s *NVSwitchManagerServerImpl) CancelUpdate(ctx context.Context, req *pb.CancelUpdateRequest) (*pb.CancelUpdateResponse, error)
- func (s *NVSwitchManagerServerImpl) GetAllUpdates(ctx context.Context, req *emptypb.Empty) (*pb.GetAllUpdatesResponse, error)
- func (s *NVSwitchManagerServerImpl) GetNVSwitches(ctx context.Context, req *pb.NVSwitchRequest) (*pb.GetNVSwitchesResponse, error)
- func (s *NVSwitchManagerServerImpl) GetUpdate(ctx context.Context, req *pb.GetUpdateRequest) (*pb.GetUpdateResponse, error)
- func (s *NVSwitchManagerServerImpl) GetUpdatesForSwitch(ctx context.Context, req *pb.GetUpdatesForSwitchRequest) (*pb.GetUpdatesForSwitchResponse, error)
- func (s *NVSwitchManagerServerImpl) ListBundles(ctx context.Context, _ *emptypb.Empty) (*pb.ListBundlesResponse, error)
- func (s *NVSwitchManagerServerImpl) PowerControl(ctx context.Context, req *pb.PowerControlRequest) (*pb.PowerControlResponse, error)
- func (s *NVSwitchManagerServerImpl) QueueUpdate(ctx context.Context, req *pb.QueueUpdateRequest) (*pb.QueueUpdateResponse, error)
- func (s *NVSwitchManagerServerImpl) QueueUpdates(ctx context.Context, req *pb.QueueUpdatesRequest) (*pb.QueueUpdatesResponse, error)
- func (s *NVSwitchManagerServerImpl) RegisterNVSwitches(ctx context.Context, req *pb.RegisterNVSwitchesRequest) (*pb.RegisterNVSwitchesResponse, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDBConfigFromEnv ¶
BuildDBConfigFromEnv builds db.Config from environment variables.
func BuildVaultConfigFromEnv ¶
func BuildVaultConfigFromEnv() (*credentials.VaultConfig, error)
BuildVaultConfigFromEnv builds credentials.VaultConfig from environment variables.
Types ¶
type Config ¶
type Config struct {
Port int
DataStoreType nvswitchmanager.DataStoreType
VaultConf credentials.VaultConfig
DBConf db.Config
FirmwareConf FirmwareConfig
}
Config captures runtime settings for running the gRPC service.
type FirmwareConfig ¶
type FirmwareConfig struct {
PackagesDir string // Directory containing firmware package YAML definitions
FirmwareDir string // Directory containing firmware files
NumWorkers int // Number of concurrent update workers
SchedulerInterval time.Duration // How often the scheduler queries for pending updates
}
FirmwareConfig contains firmware manager configuration.
func (*FirmwareConfig) ToFirmwareManagerConfig ¶
func (c *FirmwareConfig) ToFirmwareManagerConfig() firmwaremanager.Config
ToFirmwareManagerConfig converts FirmwareConfig to firmwaremanager.Config.
type NVSwitchManagerServerImpl ¶
type NVSwitchManagerServerImpl struct {
pb.UnimplementedNVSwitchManagerServer
// contains filtered or unexported fields
}
NVSwitchManagerServerImpl implements the v1.NVSwitchManager gRPC service.
func (*NVSwitchManagerServerImpl) CancelUpdate ¶
func (s *NVSwitchManagerServerImpl) CancelUpdate(ctx context.Context, req *pb.CancelUpdateRequest) (*pb.CancelUpdateResponse, error)
CancelUpdate cancels an in-progress firmware update.
func (*NVSwitchManagerServerImpl) GetAllUpdates ¶
func (s *NVSwitchManagerServerImpl) GetAllUpdates(ctx context.Context, req *emptypb.Empty) (*pb.GetAllUpdatesResponse, error)
GetAllUpdates returns all firmware updates across all switches.
func (*NVSwitchManagerServerImpl) GetNVSwitches ¶
func (s *NVSwitchManagerServerImpl) GetNVSwitches(ctx context.Context, req *pb.NVSwitchRequest) (*pb.GetNVSwitchesResponse, error)
GetNVSwitches returns NV-Switch information for the specified switches.
func (*NVSwitchManagerServerImpl) GetUpdate ¶
func (s *NVSwitchManagerServerImpl) GetUpdate(ctx context.Context, req *pb.GetUpdateRequest) (*pb.GetUpdateResponse, error)
GetUpdate returns the status of a specific firmware update by ID.
func (*NVSwitchManagerServerImpl) GetUpdatesForSwitch ¶
func (s *NVSwitchManagerServerImpl) GetUpdatesForSwitch(ctx context.Context, req *pb.GetUpdatesForSwitchRequest) (*pb.GetUpdatesForSwitchResponse, error)
GetUpdatesForSwitch returns all firmware updates for a switch.
func (*NVSwitchManagerServerImpl) ListBundles ¶
func (s *NVSwitchManagerServerImpl) ListBundles(ctx context.Context, _ *emptypb.Empty) (*pb.ListBundlesResponse, error)
ListBundles returns all available firmware bundles.
func (*NVSwitchManagerServerImpl) PowerControl ¶
func (s *NVSwitchManagerServerImpl) PowerControl(ctx context.Context, req *pb.PowerControlRequest) (*pb.PowerControlResponse, error)
PowerControl performs a power action on the specified NV-Switch trays.
func (*NVSwitchManagerServerImpl) QueueUpdate ¶
func (s *NVSwitchManagerServerImpl) QueueUpdate(ctx context.Context, req *pb.QueueUpdateRequest) (*pb.QueueUpdateResponse, error)
QueueUpdate queues a firmware update for a specific switch and component.
func (*NVSwitchManagerServerImpl) QueueUpdates ¶
func (s *NVSwitchManagerServerImpl) QueueUpdates(ctx context.Context, req *pb.QueueUpdatesRequest) (*pb.QueueUpdatesResponse, error)
QueueUpdates queues firmware updates for multiple switches in a single call.
func (*NVSwitchManagerServerImpl) RegisterNVSwitches ¶
func (s *NVSwitchManagerServerImpl) RegisterNVSwitches( ctx context.Context, req *pb.RegisterNVSwitchesRequest, ) (*pb.RegisterNVSwitchesResponse, error)
RegisterNVSwitches registers multiple NV-Switch trays.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service owns the gRPC server lifecycle and an NVSwitchManager orchestrator.