build-trust / ockam

Orchestrate end-to-end encryption, cryptographic identities, mutual authentication, and authorization policies between distributed applications – at massive scale.
https://ockam.io
Apache License 2.0
4.48k stars 560 forks source link

Command - refactor to use typed interfaces to implement commands for `kafka services` #6706

Open nazmulidris opened 1 year ago

nazmulidris commented 1 year ago

Following the refactoring of RPC calls, we can now implement all commands using typed interfaces and implemented with a specific RPC client.

For example the Projects trait provides an access to projects, to create/list/delete them. That trait is implemented by the Controller client by making requests to the controller.

The use of the Projects interface can be seen in the following command to create projects.

Desired behavior

Provide similar interfaces for all other commands and remove all the "api helpers" from the ockam_command crate for the following:

All the interfaces and implementations must be part of the ockam_api crate so that the purpose of the ockam_command is only to:

[!NOTE] Related epic: https://github.com/build-trust/ockam/issues/6310


We love helping new contributors! ❤️ If you have questions or need help as you explore, please join us on Discord. If you're looking for other issues to contribute to, please checkout our good first issues.

oguseynov commented 8 months ago

@nazmulidris I would like to take this one, could you please assign to me? Also it would be really to update 2rd and 3rd links in the description.

oguseynov commented 8 months ago

@nazmulidris I would like to take this one, could you please assign to me? Also it would be really to update 2rd and 3rd links in the description.

And please ignore because things on my side changed a bit and I no more have capacity for it, sorry.