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

Plugins #4073

Merged
merged 11 commits into from
Jul 20, 2023
Merged

Plugins #4073

merged 11 commits into from
Jul 20, 2023

Conversation

gmgigi96
Copy link
Member

@gmgigi96 gmgigi96 commented Jul 19, 2023

This PR adds a plugin system for allowing the creation of external plugins for different plugable components in reva, for example grpc drivers, http services and middlewares.

An external plugin to register itself must use the function reva.RegisterPlugin and provide a plugin ID, in the form of ., and a new func depending on the driver it is implementing.

Plugins have been designed to be included in the final reva binary, to ease the deployment. This can be achieved, adding the import _ "<repository_path>" into the file cmd/revad/main.go and then compiling revad. Once the plugin has been included in the final binary, it can be configured as a normal driver in reva.

The repository https://github.com/gmgigi96/reva-plugin-example can be used as a simple example on how a plugin can be created.

@gmgigi96 gmgigi96 changed the title Reva plugins Plugins Jul 19, 2023
@gmgigi96 gmgigi96 marked this pull request as ready for review July 19, 2023 12:50
@gmgigi96 gmgigi96 requested review from labkode, wkloucek, glpatcern and a team as code owners July 19, 2023 12:50
@cs3org cs3org deleted a comment from update-docs bot Jul 20, 2023
@gmgigi96 gmgigi96 merged commit 7c8eb90 into cs3org:master Jul 20, 2023
abaldacchino pushed a commit to abaldacchino/reva that referenced this pull request Aug 25, 2023
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.

1 participant