Updated code generation tool

- Module rename to acmedns
This commit is contained in:
Toby Chui
2024-05-10 20:02:39 +08:00
parent 1d63b679dc
commit 55bc939a37
5 changed files with 34 additions and 94 deletions

View File

@ -1,6 +1,6 @@
### DNS Challenge Update Data Structure Code Generator
This script is designed to automatically pull lego, update the providersdef module with new json file and create a function for automatically create a provider based on the given providers name and config json.
This script is designed to automatically pull lego, update the `acmedns` module with new json file and create a function for automatically create a provider based on the given providers name and config json.
### Usage
@ -10,13 +10,13 @@ To update the module, simply run update.sh
./update.sh
```
The updated files will be written into the providersdef folder. Then, you can copy it to the ACME module folder (or later-on a CICD pipeline will be made to do this automatically, but for now you have to manually copy it into the module under `src/mod/`)
The updated files will be written into the `acmedns` folder. Then, you can copy it to the ACME module folder (or later-on a CICD pipeline will be made to do this automatically, but for now you have to manually copy it into the module under `src/mod/acme/`)
### Module Usage
To use the module, you can call to the following function inside the providersdef
To use the module, you can call to the following function inside the `acmedns`
```go
func GetDNSProviderByJsonConfig(name string, js string)(challenge.Provider, error)