Documentation
¶
Overview ¶
* SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- Constants
- func Descriptor() cmcatalog.Descriptor
- func Factory(providerRegistry *providerapi.ProviderRegistry) (componentmanager.ComponentManager, error)
- func FactorySpec() componentmanager.FactorySpec
- type Manager
- func (m *Manager) Descriptor() cmcatalog.Descriptor
- func (m *Manager) FirmwareControl(ctx context.Context, target common.Target, ...) error
- func (m *Manager) GetFirmwareStatus(ctx context.Context, target common.Target) (map[string]operations.FirmwareUpdateStatus, error)
- func (m *Manager) PowerControl(ctx context.Context, target common.Target, ...) error
Constants ¶
const (
// ImplementationName is the name used to identify this implementation.
ImplementationName = "nvswitchmanager"
)
Variables ¶
This section is empty.
Functions ¶
func Descriptor ¶
func Descriptor() cmcatalog.Descriptor
Descriptor returns the NV-Switch Manager NVSwitch manager descriptor.
func Factory ¶
func Factory(providerRegistry *providerapi.ProviderRegistry) (componentmanager.ComponentManager, error)
Factory creates a new Manager from the provided providers. It retrieves the NVSwitchManager provider from the registry and uses its client.
func FactorySpec ¶
func FactorySpec() componentmanager.FactorySpec
FactorySpec returns the NV-Switch Manager NVSwitch manager runtime factory spec.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages NVLink switch components via the NV-Switch Manager gRPC API.
func (*Manager) Descriptor ¶
func (m *Manager) Descriptor() cmcatalog.Descriptor
Descriptor returns the NV-Switch Manager NVSwitch manager descriptor.
func (*Manager) FirmwareControl ¶
func (m *Manager) FirmwareControl(ctx context.Context, target common.Target, info operations.FirmwareControlTaskInfo) error
FirmwareControl initiates firmware update without waiting for completion. Returns immediately after the update request is accepted.
info.SubTargets, when non-empty, restricts the update to the selected firmware sub-parts (e.g. ["bmc", "nvos"]). Empty means "all components in the bundle" (NSM's historical default).
func (*Manager) GetFirmwareStatus ¶
func (m *Manager) GetFirmwareStatus(ctx context.Context, target common.Target) (map[string]operations.FirmwareUpdateStatus, error)
GetFirmwareStatus returns the current status of firmware updates for the target components. Returns a map of component ID (switch UUID) to FirmwareUpdateStatus.
func (*Manager) PowerControl ¶
func (m *Manager) PowerControl( ctx context.Context, target common.Target, info operations.PowerControlTaskInfo, ) error
PowerControl performs power operations on NVLink switches via the NV-Switch Manager API.