Config loads and returns current configuration
()
| 80 | |
| 81 | // Config loads and returns current configuration |
| 82 | func (context *AptlyContext) Config() *utils.ConfigStructure { |
| 83 | context.Lock() |
| 84 | defer context.Unlock() |
| 85 | |
| 86 | return context.config() |
| 87 | } |
| 88 | |
| 89 | func (context *AptlyContext) config() *utils.ConfigStructure { |
| 90 | if !context.configLoaded { |