-
Notifications
You must be signed in to change notification settings - Fork 42
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
Allow downstream projects to programmatically run envoy #433
Comments
@codefromthecrypt can you please elaborate on #419 (comment) if you still believe that is the better way of allowing downstream projects to consume the CLI rather than depending on the |
I don't think you need to expose the entire package hierarchy in order to provide an api. Basically what I mean is to make a top-level api that only includes the functionality needed. That top-level type can defer to the internal code. |
this is a snippet of how someone might import
@codefromthecrypt are you referring to moving the bare minimum such as |
Sorry I don't mean move as it is clunky. I mean to design a proper api and use it. I'll put a sketch up as I think show > tell |
thanks @codefromthecrypt |
cool #434 is on a shared branch so feel free to use it or close it. Main thing is the library approach should be able to control writers and things especially as that makes it testable. Also, except for emulation, I think you'll want to default to the real architecture vs choosing something besides GOARCH. Anyway, the main idea is to make a package and only poke holes as needed, make it idiomatic for go use as opposed to exposing the CLI mechanics directly. This is true even if tactically CLI mechanics are used! Hope this helps |
* Define an api that allows go projects to use func-e as a library Takes #434 forward Fixes: #433 Signed-off-by: Arko Dasgupta <[email protected]>
* Define an api that allows go projects to use func-e as a library Takes #434 forward Fixes: #433 Signed-off-by: Arko Dasgupta <[email protected]>
Is your feature request related to a problem? Please describe.
I would like to import packages within this project to programmatically run envoy from another go process
so I can use this project to instantiate envoy sub processes during integration testing
Describe the solution you'd like
Ideally would like
github.com/tetratelabs/func-e/internal/cmd
to moved togithub.com/tetratelabs/func-e/pkg/cmd
The text was updated successfully, but these errors were encountered: