Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { *toml.Tree RuntimeType string UseDefaultRuntimeName bool ContainerAnnotations []string }
Config represents the containerd config
func (*Config) AddRuntime ¶
AddRuntime adds a runtime to the containerd config
func (Config) DefaultRuntime ¶
DefaultRuntime returns the default runtime for the cri-o config
func (*Config) RemoveRuntime ¶
RemoveRuntime removes a runtime from the docker config
type ConfigV1 ¶
type ConfigV1 Config
ConfigV1 represents a version 1 containerd config
func (*ConfigV1) AddRuntime ¶
AddRuntime adds a runtime to the containerd config
func (ConfigV1) DefaultRuntime ¶
DefaultRuntime returns the default runtime for the cri-o config
func (*ConfigV1) 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 WithContainerAnnotations ¶
WithContainerAnnotations sets the container annotations for the config builder
func WithLogger ¶
WithLogger sets the logger for the config builder
func WithRuntimeType ¶
WithRuntimeType sets the runtime type for the config builder
func WithUseLegacyConfig ¶
WithUseLegacyConfig sets the useLegacyConfig flag for the config builder