Documentation ¶
Index ¶
- func New(opts ...Option) (engine.Interface, error)
- type Config
- func (c *Config) AddRuntime(name string, path string, setAsDefault bool) error
- func (c Config) DefaultRuntime() string
- func (c *Config) GetRuntimeConfig(name string) (engine.RuntimeConfig, error)
- func (c *Config) RemoveRuntime(name string) error
- func (c Config) Save(path string) (int64, error)
- func (c *Config) Set(key string, value interface{})
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config map[string]interface{}
Config defines a docker config file. TODO: This should not be public, but we need to access it from the tests in tools/container/docker
func (*Config) AddRuntime ¶
AddRuntime adds a new runtime to the docker config
func (Config) DefaultRuntime ¶
DefaultRuntime returns the default runtime for the docker config
func (*Config) GetRuntimeConfig ¶ added in v1.17.0
func (c *Config) GetRuntimeConfig(name string) (engine.RuntimeConfig, error)
GetRuntimeConfig returns the runtime info of the runtime passed as input
func (*Config) RemoveRuntime ¶
RemoveRuntime removes a runtime from the docker config
type Option ¶
type Option func(*builder)
Option defines a function that can be used to configure the config builder
func WithLogger ¶
WithLogger sets the logger for the config builder
Click to show internal directories.
Click to hide internal directories.