From a9d21799a8bda68a4657dd3498b58df3b27bd0fc Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Fri, 11 Jan 2019 18:32:47 -0800 Subject: [PATCH] watchtower/conf: adds non-experimental empty Conf --- watchtower/conf.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 watchtower/conf.go diff --git a/watchtower/conf.go b/watchtower/conf.go new file mode 100644 index 000000000..9383d8172 --- /dev/null +++ b/watchtower/conf.go @@ -0,0 +1,14 @@ +// +build !experimental + +package watchtower + +// Conf specifies the watchtower options that be configured from the command +// line or configuration file. In non-experimental builds, we disallow such +// configuration. +type Conf struct{} + +// Apply returns an error signaling that the Conf could not be applied in +// non-experimental builds. +func (c *Conf) Apply(cfg *Config) (*Config, error) { + return nil, ErrNonExperimentalConf +}