SetConfig updates the current configuration
(cfg *config.Config)
| 135 | |
| 136 | // SetConfig updates the current configuration |
| 137 | func (w *Watcher) SetConfig(cfg *config.Config) { |
| 138 | w.clientsMutex.Lock() |
| 139 | defer w.clientsMutex.Unlock() |
| 140 | w.config = cfg |
| 141 | w.oldConfigYaml, _ = yaml.Marshal(cfg) |
| 142 | } |
| 143 | |
| 144 | // SetPluginAuthParser updates the plugin auth parser used for file auth synthesis. |
| 145 | func (w *Watcher) SetPluginAuthParser(parser synthesizer.PluginAuthParser) { |
no outgoing calls