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

Extract LXD TypeScript client #292

Open
Igorgro opened this issue Apr 13, 2023 · 2 comments
Open

Extract LXD TypeScript client #292

Igorgro opened this issue Apr 13, 2023 · 2 comments
Labels
Enhancement New feature or request

Comments

@Igorgro
Copy link

Igorgro commented Apr 13, 2023

I'm not sure, how the source code of this software is organized, but there should be some kind of typescript wrapper around LXD API. Can it be extracted and published as a separate npm package please?

@edlerd
Copy link
Collaborator

edlerd commented Apr 13, 2023

The typescript types can easily be extracted and published. But I am not sure if I understand correctly if that is what you meant. Could you clarify the use case for the NPM package?

@Igorgro
Copy link
Author

Igorgro commented Apr 13, 2023

If i want to integrate my nodejs application with LXD, I will need to define all the TypeScript types and make a method for every api of rest api (something like getInstnaces(), getInstance(name: string), etc.). Why should I do the work which already done? You can provide the package based on this codebase. For example, this is a python binding for lxd: https://github.com/lxc/pylxd. Speaking about nodejs, there is, for example, rest api wrapper for gitlab: https://www.npmjs.com/package/@gitbeaker/node

@edlerd edlerd added the Enhancement New feature or request label May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants