diff options
author | Nick Thomas <nick@gitlab.com> | 2018-09-28 14:50:26 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-09-28 14:50:26 +0100 |
commit | 7f1098a1d9fd79b394b53b0c43fcc4741349d43a (patch) | |
tree | c31273b3b1a49c73c6c19ab2c008230e2d488b5a /go/internal/config/config.go | |
parent | c37020bb5ae66bfb7596e2b1b4f7b5c79203ecf3 (diff) | |
download | gitlab-shell-7f1098a1d9fd79b394b53b0c43fcc4741349d43a.tar.gz |
Specify a richer scheme to run the migration with
Diffstat (limited to 'go/internal/config/config.go')
-rw-r--r-- | go/internal/config/config.go | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/go/internal/config/config.go b/go/internal/config/config.go index 64822c7..4069851 100644 --- a/go/internal/config/config.go +++ b/go/internal/config/config.go @@ -13,11 +13,16 @@ const ( logFile = "gitlab-shell.log" ) +type MigrationConfig struct { + Enabled bool `yaml:"enabled"` + Features []string `yaml:"features"` +} + type Config struct { - RootDir string - LogFile string `yaml:"log_file"` - LogFormat string `yaml:"log_format"` - Experimental bool `yaml:"experimental"` + RootDir string + LogFile string `yaml:"log_file"` + LogFormat string `yaml:"log_format"` + Migration MigrationConfig `yaml:"migration"` } func New() (*Config, error) { |