mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-25 05:21:33 +00:00
Fix docstring
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
3604927034
commit
b6987c526a
@ -19,8 +19,9 @@ package containerd
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/NVIDIA/nvidia-container-toolkit/pkg/config/engine"
|
|
||||||
"github.com/pelletier/go-toml"
|
"github.com/pelletier/go-toml"
|
||||||
|
|
||||||
|
"github.com/NVIDIA/nvidia-container-toolkit/pkg/config/engine"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ConfigV1 represents a version 1 containerd config
|
// ConfigV1 represents a version 1 containerd config
|
||||||
@ -134,7 +135,7 @@ func (c *ConfigV1) RemoveRuntime(name string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetOption sets the specified containerd option.
|
// Set sets the specified containerd option.
|
||||||
func (c *ConfigV1) Set(key string, value interface{}) error {
|
func (c *ConfigV1) Set(key string, value interface{}) error {
|
||||||
config := *c.Tree
|
config := *c.Tree
|
||||||
config.SetPath([]string{"plugins", "cri", "containerd", key}, value)
|
config.SetPath([]string{"plugins", "cri", "containerd", key}, value)
|
||||||
|
Loading…
Reference in New Issue
Block a user