(c *config.ClientConfig)
| 103 | } |
| 104 | |
| 105 | func validateConfig(c *config.ClientConfig) error { |
| 106 | if len(c.Domains) < 1 { |
| 107 | return errors.New("no domains specified") |
| 108 | } |
| 109 | |
| 110 | if len(c.Hostname) == 0 { |
| 111 | return errors.New("hostname was empty") |
| 112 | } |
| 113 | |
| 114 | return nil |
| 115 | } |
| 116 | |
| 117 | func configureTasks(client api.CertificateIssuerClient, config *config.ClientConfig, storage *CertStorage) []Job { |
| 118 | var tasks []Job |