├── .github ├── CODEOWNERS ├── actions │ └── libextism │ │ └── action.yml └── workflows │ └── ci.yml ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── env.go ├── example-schema.yaml ├── example ├── countvowels │ ├── std_main.go │ └── tiny_main.go ├── http │ ├── std_main.go │ └── tiny_main.go ├── httptransport │ └── std_main.go └── reactor │ ├── README.md │ ├── test.txt │ └── tiny_main.go ├── extism_pdk.go ├── go.mod ├── go.sum ├── go.work ├── http └── httptransport.go ├── internal ├── http │ └── extism_http.go └── memory │ ├── allocate.go │ ├── extism.go │ ├── memory.go │ └── pointer.go └── wasi-reactor ├── extism_pdk_reactor.go └── go.mod /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @zshipko @nilslice @mhmd-azeez 2 | -------------------------------------------------------------------------------- /.github/actions/libextism/action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/.github/actions/libextism/action.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.wasm -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/README.md -------------------------------------------------------------------------------- /env.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/env.go -------------------------------------------------------------------------------- /example-schema.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/example-schema.yaml -------------------------------------------------------------------------------- /example/countvowels/std_main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/example/countvowels/std_main.go -------------------------------------------------------------------------------- /example/countvowels/tiny_main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/example/countvowels/tiny_main.go -------------------------------------------------------------------------------- /example/http/std_main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/example/http/std_main.go -------------------------------------------------------------------------------- /example/http/tiny_main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/example/http/tiny_main.go -------------------------------------------------------------------------------- /example/httptransport/std_main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/example/httptransport/std_main.go -------------------------------------------------------------------------------- /example/reactor/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/example/reactor/README.md -------------------------------------------------------------------------------- /example/reactor/test.txt: -------------------------------------------------------------------------------- 1 | Hello World! -------------------------------------------------------------------------------- /example/reactor/tiny_main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/example/reactor/tiny_main.go -------------------------------------------------------------------------------- /extism_pdk.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/extism_pdk.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/extism/go-pdk 2 | 3 | go 1.21.0 4 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /go.work: -------------------------------------------------------------------------------- 1 | go 1.21.1 2 | 3 | use ( 4 | . 5 | ./wasi-reactor 6 | ) 7 | -------------------------------------------------------------------------------- /http/httptransport.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/http/httptransport.go -------------------------------------------------------------------------------- /internal/http/extism_http.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/internal/http/extism_http.go -------------------------------------------------------------------------------- /internal/memory/allocate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/internal/memory/allocate.go -------------------------------------------------------------------------------- /internal/memory/extism.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/internal/memory/extism.go -------------------------------------------------------------------------------- /internal/memory/memory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/internal/memory/memory.go -------------------------------------------------------------------------------- /internal/memory/pointer.go: -------------------------------------------------------------------------------- 1 | package memory 2 | 3 | type ExtismPointer uint64 4 | -------------------------------------------------------------------------------- /wasi-reactor/extism_pdk_reactor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/go-pdk/HEAD/wasi-reactor/extism_pdk_reactor.go -------------------------------------------------------------------------------- /wasi-reactor/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/extism/go-pdk/wasi-reactor 2 | 3 | go 1.21.1 4 | --------------------------------------------------------------------------------