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() componentmanager.Descriptor
- func Factory(providerRegistry *providerapi.ProviderRegistry) (componentmanager.ComponentManager, error)
- type Manager
- 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) GetPowerStatus(_ context.Context, _ common.Target) (map[string]operations.PowerStatus, error)
- func (m *Manager) InjectExpectation(_ context.Context, _ common.Target, _ operations.InjectExpectationTaskInfo) error
- func (m *Manager) PowerControl(ctx context.Context, target common.Target, ...) error
- func (m *Manager) Type() devicetypes.ComponentType
Constants ¶
const (
// ImplementationName is the name used to identify this implementation.
ImplementationName = "nvswitchmanager"
)
Variables ¶
This section is empty.
Functions ¶
func Descriptor ¶
func Descriptor() componentmanager.Descriptor
Descriptor returns the NV-Switch Manager NVLSwitch 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.
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) 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.
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) GetPowerStatus ¶
func (m *Manager) GetPowerStatus( _ context.Context, _ common.Target, ) (map[string]operations.PowerStatus, error)
GetPowerStatus is not currently supported by NV-Switch Manager.
func (*Manager) InjectExpectation ¶
func (m *Manager) InjectExpectation( _ context.Context, _ common.Target, _ operations.InjectExpectationTaskInfo, ) error
InjectExpectation injects expected configuration or state information for an NVLink switch.
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.
func (*Manager) Type ¶
func (m *Manager) Type() devicetypes.ComponentType
Type returns the component type this manager handles.