Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plugin_config to Config message #8

Merged
merged 1 commit into from
Dec 2, 2024
Merged

Add plugin_config to Config message #8

merged 1 commit into from
Dec 2, 2024

Conversation

markgoddard
Copy link
Contributor

@markgoddard markgoddard commented Nov 29, 2024

  • Add plugin_config to Config message
    This can be used to add per-plugin options to the configuration file. A Struct is used to allow for arbitrarily structured config.

@markgoddard markgoddard self-assigned this Nov 29, 2024
Copy link

github-actions bot commented Nov 29, 2024

The latest Buf updates on your PR. Results from workflow buf-ci / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedNov 29, 2024, 3:42 PM

@markgoddard markgoddard added this to the release-0.7.0 milestone Nov 29, 2024
markgoddard added a commit to cofide/cofidectl that referenced this pull request Nov 29, 2024
For some plugins it would be useful to be able to store configuration
options in cofide.yaml. This change updates the plugin manager to
support setting and retrieving per-plugin configuration keyed by the
plugin name. The config can be set during Init or later using
GetPluginConfig.

A Struct protobuf message is used to allow for arbitrarily structured
plugin config. Plugins can use the Struct directly or convert it to/from
a more convenient native Go type.

Fixes: #54

Depends-On: cofide/cofide-api-sdk#8
markgoddard added a commit to cofide/cofidectl that referenced this pull request Nov 29, 2024
For some plugins it would be useful to be able to store configuration
options in cofide.yaml. This change updates the plugin manager to
support setting and retrieving per-plugin configuration keyed by the
plugin name. The config can be set during Init or later using
GetPluginConfig.

A Struct protobuf message is used to allow for arbitrarily structured
plugin config. Plugins can use the Struct directly or convert it to/from
a more convenient native Go type.

Fixes: #54

Depends-On: cofide/cofide-api-sdk#8
@markgoddard markgoddard merged commit 0346d06 into main Dec 2, 2024
1 check passed
@markgoddard markgoddard deleted the plugin-config branch December 2, 2024 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants