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

Bundle loading #300

Open
shm12 opened this issue Nov 20, 2022 · 2 comments
Open

Bundle loading #300

shm12 opened this issue Nov 20, 2022 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@shm12
Copy link

shm12 commented Nov 20, 2022

Today, the output of opa build -t wasm is a bundle.tar.gz file.
It will be really nice if we will be able to load a bundle, like in the Go SDK.

@srenatus srenatus added enhancement New feature or request help wanted Extra attention is needed labels Nov 21, 2022
@shm12
Copy link
Author

shm12 commented Nov 22, 2022

Hi. I would like to implement it :)
I was thinking about bundle loader function that will return LoadedPolicy object.
What do you think?
Is this way OK, or we want to create a new class of LoadedBundle that can give a loaded policy object (or eval things directly)?

@srenatus
Copy link
Contributor

It's easiest to talk about a concrete PR. 👍 We can also discuss a draft, if you first want to figure out the API before dealing with tests, or something like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants