Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidallendj/configurator-plugin-example
An example showing how to create a plugin for the [configurator](https://github.com/OpenCHAMI/configurator)
https://github.com/davidallendj/configurator-plugin-example
Last synced: 1 day ago
JSON representation
An example showing how to create a plugin for the [configurator](https://github.com/OpenCHAMI/configurator)
- Host: GitHub
- URL: https://github.com/davidallendj/configurator-plugin-example
- Owner: davidallendj
- Created: 2024-07-15T17:14:05.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-15T18:18:30.000Z (4 months ago)
- Last Synced: 2024-09-15T08:56:30.850Z (2 months ago)
- Language: Go
- Size: 7.01 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Configurator Plugin Example
This repository is simply demonstrates how to create an external generator plugin for the configurator. If you're making a completely new plugin, make sure you initialize the Go project first:
```bash
go mod init github.com/mynewplugin
```Then, the plugin can be modified and built using the following command:
```bash
go build -buildmode=plugin -o testplugin.so testplugin.go
```To use the plugin with the `configurator`, drop the `testplugin.so` file in a directory under the `plugins` list in the `config.yaml` file. Then, add a target with the template files to use when generating new configs.