Skip to content

[BREAKINGCHANGE] Support module and redefine plugin in a dedicated package#35

Merged
Nexucis merged 2 commits into
mainfrom
nexucis/plugin-def
Jun 9, 2026
Merged

[BREAKINGCHANGE] Support module and redefine plugin in a dedicated package#35
Nexucis merged 2 commits into
mainfrom
nexucis/plugin-def

Conversation

@Nexucis

@Nexucis Nexucis commented Jun 9, 2026

Copy link
Copy Markdown
Member

This PR is defining the module and moving the plugin definition from the package common to a dedicated package plugin.

@Nexucis
Nexucis requested review from Gladorme and jgbernalp June 9, 2026 08:54
@Nexucis
Nexucis force-pushed the nexucis/plugin-def branch from b42a996 to 3acba59 Compare June 9, 2026 08:57
…ckage

Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
@Nexucis
Nexucis force-pushed the nexucis/plugin-def branch from 3acba59 to 7789af6 Compare June 9, 2026 09:04
Comment thread go/plugin/plugin.go
@@ -11,25 +11,31 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package common
package plugin

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plugins are not specific to dashboard. Should we create a single plugin package, and include the plugin module there as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to split the module definition from the plugin definition to avoid a confusion between each definition. Also because in the module you also have a plugin struct.

And yes if you prefer I can add the package plugin at the root of the go folder, since it is not entirely related to the dashboard as you mentioned it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to split the module definition from the plugin definition to avoid a confusion between each definition. Also because in the module you also have a plugin struct.

Makes sense

And yes if you prefer I can add the package plugin at the root of the go folder, since it is not entirely related to the dashboard as you mentioned it.

yes it will make things more clear

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
@Nexucis
Nexucis added this pull request to the merge queue Jun 9, 2026
Merged via the queue into main with commit 9bad094 Jun 9, 2026
13 checks passed
@Nexucis
Nexucis deleted the nexucis/plugin-def branch June 9, 2026 15:04
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