|
@@ -35,6 +35,7 @@ type Config struct {
|
|
// DaemonCfg represents libnetwork core configuration
|
|
// DaemonCfg represents libnetwork core configuration
|
|
type DaemonCfg struct {
|
|
type DaemonCfg struct {
|
|
Debug bool
|
|
Debug bool
|
|
|
|
+ Experimental bool
|
|
DataDir string
|
|
DataDir string
|
|
DefaultNetwork string
|
|
DefaultNetwork string
|
|
DefaultDriver string
|
|
DefaultDriver string
|
|
@@ -222,6 +223,14 @@ func OptionPluginGetter(pg plugingetter.PluginGetter) Option {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// OptionExperimental function returns an option setter for experimental daemon
|
|
|
|
+func OptionExperimental(exp bool) Option {
|
|
|
|
+ return func(c *Config) {
|
|
|
|
+ logrus.Debugf("Option Experimental: %v", exp)
|
|
|
|
+ c.Daemon.Experimental = exp
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
// ProcessOptions processes options and stores it in config
|
|
// ProcessOptions processes options and stores it in config
|
|
func (c *Config) ProcessOptions(options ...Option) {
|
|
func (c *Config) ProcessOptions(options ...Option) {
|
|
for _, opt := range options {
|
|
for _, opt := range options {
|