watchtower/conf: adds non-experimental empty Conf
This commit is contained in:
parent
b1c6dd678b
commit
a9d21799a8
14
watchtower/conf.go
Normal file
14
watchtower/conf.go
Normal file
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user