The SmartConnectors Hub allows users to start building their data streaming pipeline with SmartConnectors which have been uploaded into the Hub as ready to use packages. The Hub allows Fluvio pipeline construction focusing on the business logic by providing already built, reliable and tested modules. The modules contain high level configurable inputs which can be applied without needing to rebuild the module. Pipelines can employ a mix of Hub downloaded packages as well as custom developed SmartModules.
A view of available and installed SmartModules is accessible from both the
fluvio cli as well as on the Fluvio cloud dashboard.
Commands for users to interact with the SmartModule hub are under the fluvio hub connector set of commands.
fluvio hub connector download group/package@version
fluvio hub connector list
Download SmartConnector to the local folder Usage: fluvio hub connector download [OPTIONS] <name> Arguments: <name> SmartConnector name: e.g. firstname.lastname@example.org Options: -o, --output <PATH> Target local folder or file name --target <TARGET> Target platform for the package. Optional. By default the host's one is used [default: aarch64-apple-darwin] -h, --help Print help (see more with '--help')
The command fluvio hub connector download group/package@version will download a hub SmartConnector
.ipkg locally, which can be used with
$ % fluvio hub connector download email@example.com downloading firstname.lastname@example.org to infinyon-mqtt-source-0.1.2.ipkg ... downloading complete
The command fluvio hub connector list will list Connectors and versions available for download
List all available SmartConnectors Usage: fluvio hub connector list [OPTIONS] Options: -O, --output <type> Output [default: table] [possible values: table, yaml, json] -h, --help Print help (see more with '--help')
The list command shows Connectors by group/package@version in the CONNECTOR column. The Visibility column describes if the package is accessible to public or private views. If package visibility is private only your user login can list or download the package. Packages uploaded by InfinyOn will be in the infinyon group.
$ fluvio hub connector list Using hub https://hub.infinyon.cloud CONNECTOR Visibility email@example.com public firstname.lastname@example.org public email@example.com public firstname.lastname@example.org public email@example.com public
Connector Packages are listed in the hub as in the form of
infinyon packages are published by InfinyOn, the maker of Fluvio. Third-party developers may also upload public packages which appear in other groups. The Hub service enforces signing and publishing restrictions on uploaded packages. Once a signed package of given group has been published, only the group owner may update that package or add new packages within that group.
Published packages are by default private. In order to make a published package publicly available, the package should be set to public. The cli method to do this is below:
cd connector-dev-dir cdk set-public
After the package is set to public, any publish will ask to verify the publish operation. Once a package version is publicly published, the package cannot revoked.