package engine import ( "context" "io/fs" ) // WriteFile writes a file outside the rendered configuration (a // certificate for named, docs/certificates.md) the way deployed files are // written: atomically, with bind.file_group, creating its directory. func (e *Engine) WriteFile(path string, content []byte, mode fs.FileMode) error { return e.deploy.writeAtomic(path, content, mode) } // Reconfig makes named reread its configuration, and with it the files // its tls blocks name (nothing with bind.no_reload). func (e *Engine) Reconfig(ctx context.Context) error { if e.cfg.NoReload { return nil } return e.tools.Reconfig(ctx) }