-
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
Support TinyGo SDK for extension toolkit #104
Conversation
5f21409
to
44281c1
Compare
5c60724
to
4abe3c9
Compare
Blocker: I would like to use |
According to the discussion with @lizan, I decided to use my fork branch of TinyGo which supports WASI target: https://github.com/mathetake/tinygo/tree/non-js-wasm need to fix examples to use WASI target |
too heavy to build LLVM.... |
049dd37
to
f29d147
Compare
tinygo-org/tinygo#1373 was merged finally so I use that nightly docker image for the extension builder's base |
5eda64b
to
9352958
Compare
data/extension/init/templates/tinygo/envoy.filters.http/default/go.mod
Outdated
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.filters.http/default/main.go
Outdated
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.filters.http/default/main.go
Outdated
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.filters.http/default/main.go
Outdated
Show resolved
Hide resolved
@yskopets thanks for review and I reflected your comments except the SDK specific ones. I'm going to refactor the SDK here tetratelabs/proxy-wasm-go-sdk#68 |
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
@yskopets Thanks for the detailed review. I just did a bunch of refactoring in the SDK side, and I believe all your comments are addressed. PTAL! |
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, sorry. One more round.
data/extension/init/templates/tinygo/envoy.access_loggers/default/main.go
Outdated
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.access_loggers/default/main.go
Outdated
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.access_loggers/default/main.go
Outdated
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.access_loggers/default/main_test.go
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.access_loggers/default/go.mod
Outdated
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.access_loggers/default/go.sum
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.filters.http/default/main.go
Outdated
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.filters.network/default/main.go
Outdated
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.filters.network/default/main_test.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
looks like we have reached the dockehub limit... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, almost there. Some minor action points.
data/extension/init/templates/tinygo/envoy.access_loggers/default/go.sum
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.filters.network/default/main_test.go
Outdated
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.access_loggers/default/go.mod
Outdated
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.filters.http/default/go.mod
Outdated
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.filters.network/default/go.mod
Outdated
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.filters.network/default/main_test.go
Show resolved
Hide resolved
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thank you!
Sorry that it took long. My only goal here is to make sure that extension development is logical from a user perspective.
The next step is to add a tutorial similar to https://www.getenvoy.io/tutorials/getting-started-http-filter-rust/
data/extension/init/templates/tinygo/envoy.access_loggers/default/main_test.go
Show resolved
Hide resolved
data/extension/init/templates/tinygo/envoy.access_loggers/default/main_test.go
Show resolved
Hide resolved
Signed-off-by: Takeshi Yoneda <[email protected]>
db99b4a
to
52b7944
Compare
@yskopets Thanks a lot Yaro! Now the SDK becomes much better than before thanks to your review 👍 I'm going to merge this after I release v0.1.0 of SDK. |
Signed-off-by: Takeshi Yoneda <[email protected]>
resolves #101