nvswitchmanager

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

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

View Source
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

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 New

func New(nsmClient nsmapi.Client) *Manager

New creates a new NV-Switch Manager-based NVSwitch Manager instance.

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.

Jump to

Keyboard shortcuts

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