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 ¶
const ( // ProviderName is the unique identifier for the NV-Switch Manager provider. ProviderName = "nvswitchmanager" // DefaultTimeout is the default timeout for NV-Switch Manager gRPC calls. DefaultTimeout = time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Timeout is the gRPC call timeout for NV-Switch Manager operations.
Timeout time.Duration
}
Config holds configuration for the NV-Switch Manager provider.
func (*Config) NewProvider ¶
NewProvider creates an NV-Switch Manager provider from this config.
type ConfigDecoder ¶
type ConfigDecoder struct{}
ConfigDecoder owns NV-Switch Manager provider config defaults and YAML decoding.
func (ConfigDecoder) DecodeYAML ¶
func (d ConfigDecoder) DecodeYAML(raw yaml.Node) (providerapi.ProviderConfig, error)
DecodeYAML decodes NV-Switch Manager provider YAML into a typed config.
func (ConfigDecoder) DefaultConfig ¶
func (ConfigDecoder) DefaultConfig() providerapi.ProviderConfig
DefaultConfig returns the default NV-Switch Manager provider config.
func (ConfigDecoder) Name ¶
func (ConfigDecoder) Name() string
Name returns the provider name handled by this decoder.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider wraps an nsmapi.Client and provides it to component manager implementations.
func NewFromClient ¶
NewFromClient creates a Provider from an existing client. This is primarily useful for testing with mock clients.
func NewWithDefault ¶
NewWithDefault creates a new Provider with the default configuration.