|
| 1 | +/** |
| 2 | +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
| 3 | +# SPDX-License-Identifier: Apache-2.0 |
| 4 | +# |
| 5 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +# you may not use this file except in compliance with the License. |
| 7 | +# You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +**/ |
| 17 | + |
| 18 | +package discover |
| 19 | + |
| 20 | +var _ Discover = (*EnvVar)(nil) |
| 21 | + |
| 22 | +// Devices returns an empty list of devices for a EnvVar discoverer. |
| 23 | +func (e EnvVar) Devices() ([]Device, error) { |
| 24 | + return nil, nil |
| 25 | +} |
| 26 | + |
| 27 | +// EnvVars returns an empty list of envs for a EnvVar discoverer. |
| 28 | +func (e EnvVar) EnvVars() ([]EnvVar, error) { |
| 29 | + return []EnvVar{e}, nil |
| 30 | +} |
| 31 | + |
| 32 | +// Mounts returns an empty list of mounts for a EnvVar discoverer. |
| 33 | +func (e EnvVar) Mounts() ([]Mount, error) { |
| 34 | + return nil, nil |
| 35 | +} |
| 36 | + |
| 37 | +// Hooks allows the Hook type to also implement the Discoverer interface. |
| 38 | +// It returns a single hook |
| 39 | +func (e EnvVar) Hooks() ([]Hook, error) { |
| 40 | + return nil, nil |
| 41 | +} |
0 commit comments