mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
Remove Set from engine config API
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
@@ -105,7 +105,7 @@ func (c Config) DefaultRuntime() string {
|
||||
|
||||
// EnableCDI sets features.cdi to true in the docker config.
|
||||
func (c *Config) EnableCDI() {
|
||||
c.Set("features", map[string]bool{"cdi": true})
|
||||
(*c)["features"] = map[string]bool{"cdi": true}
|
||||
}
|
||||
|
||||
// RemoveRuntime removes a runtime from the docker config
|
||||
@@ -137,11 +137,6 @@ func (c *Config) RemoveRuntime(name string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Set sets the specified docker option
|
||||
func (c *Config) Set(key string, value interface{}) {
|
||||
(*c)[key] = value
|
||||
}
|
||||
|
||||
// Save writes the config to the specified path
|
||||
func (c Config) Save(path string) (int64, error) {
|
||||
output, err := json.MarshalIndent(c, "", " ")
|
||||
|
||||
Reference in New Issue
Block a user