github.com/awesome-flow/flow@v0.0.3-0.20190918184116-508d75d68a2c/pkg/corev1alpha1/config.go (about) 1 package corev1alpha1 2 3 import "github.com/awesome-flow/flow/pkg/cfg" 4 5 type Config struct { 6 *cfg.Repository 7 } 8 9 var _ Runner = (*Config)(nil) 10 11 func NewConfig(repo *cfg.Repository) *Config { 12 return &Config{repo} 13 } 14 15 func (config *Config) Start() error { 16 return config.SetUp() 17 } 18 19 func (config *Config) Stop() error { 20 return config.TearDown() 21 }