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

feat(*)!: 1.0 compatible #9

Merged
merged 8 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
> [!WARNING]
> Experimental!

## Golang SDK for Providers
## Golang SDK for Providers

This is a experimenal SDK for writing wasmCloud providers in Go.

An example can be found in the examples repo, under providers/inmemkv
An example can be found in [cmd/keyvalue-inmemory](./cmd/keyvalue-inmemory/) which implements `wasi:keyvalue@0.2.0-draft`.

A demo can be found at
A demo can be found at
`ghcr.io/jordan-rash/kv-provider:v0.0.3`
80 changes: 0 additions & 80 deletions claims.go

This file was deleted.

16 changes: 0 additions & 16 deletions encode.go

This file was deleted.

2 changes: 2 additions & 0 deletions examples/keyvalue-inmemory/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
keyvalue-inmemory
keyvalue-inmemory.par.gz
8 changes: 8 additions & 0 deletions examples/keyvalue-inmemory/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Keyvalue inmemory golang provider

This provider implements `wasi:keyvalue/store@0.2.0-draft`.

## Notable files

- [main.go](./main.go) is a simple binary that sets up an errGroup to handle running the provider's primary requirements: executing as a standaline binary based on data received on stdin, handling RPC and connecting to a wasmCloud lattice.
- [keyvalue.go](./keyvalue.go) implements the required functions to conform to `wasi:keyvalue/store`. If the functions as specified in the [WIT](./wit/deps/keyvalue/store.wit) are not implemented, this provider will fail to build.
Loading