(configPath, dir string, conf *config.Config)
| 45 | } |
| 46 | |
| 47 | func NewUploader(configPath, dir string, conf *config.Config) *Uploader { |
| 48 | return &Uploader{ |
| 49 | configPath: configPath, |
| 50 | config: conf, |
| 51 | dir: dir, |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | func (up *Uploader) Validate() error { |
| 56 | if up.config.Cloud.Project == "" { |