From 249a84a8e115532bd2416147eb9f1ada9d753189 Mon Sep 17 00:00:00 2001 From: Kate Goldenring Date: Wed, 3 Jan 2024 09:39:58 -0500 Subject: [PATCH] Support exploring non-default KV stores Signed-off-by: Kate Goldenring --- explorer/go.mod | 6 +- explorer/go.sum | 4 +- explorer/index.html | 52 ++++++++++++---- explorer/main.go | 145 ++++++++++++++++---------------------------- readme.md | 20 +++--- spin.toml | 11 +++- 6 files changed, 118 insertions(+), 120 deletions(-) diff --git a/explorer/go.mod b/explorer/go.mod index 64e8646..736b42c 100644 --- a/explorer/go.mod +++ b/explorer/go.mod @@ -1,9 +1,7 @@ module github.com/golang_explorer -go 1.17 +go 1.20 -require github.com/fermyon/spin/sdk/go v1.0.0 +require github.com/fermyon/spin/sdk/go/v2 v2.0.1 require github.com/julienschmidt/httprouter v1.3.0 // indirect - -replace github.com/fermyon/spin/sdk/go v1.0.0 => github.com/radu-matei/spin/sdk/go v0.0.0-20230406224338-9d78631f2c2b diff --git a/explorer/go.sum b/explorer/go.sum index 19d2a50..7e81559 100644 --- a/explorer/go.sum +++ b/explorer/go.sum @@ -1,4 +1,4 @@ +github.com/fermyon/spin/sdk/go/v2 v2.0.1 h1:cVfGCn68Z0O0zjqsNmIDAp9mTEcjedGx+KU+95zODDM= +github.com/fermyon/spin/sdk/go/v2 v2.0.1/go.mod h1:kfJ+gdf/xIaKrsC6JHCUDYMv2Bzib1ohFIYUzvP+SCw= github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/radu-matei/spin/sdk/go v0.0.0-20230406224338-9d78631f2c2b h1:YjGlkvD2pkytU/DdJI+Bg6Zc73SNLToCcKQjKV3H5pc= -github.com/radu-matei/spin/sdk/go v0.0.0-20230406224338-9d78631f2c2b/go.mod h1:yb8lGesopgj/GwPzLPATxcOeqWZT/HjrzEFfwbztAXE= diff --git a/explorer/index.html b/explorer/index.html index 09b1909..37092ca 100644 --- a/explorer/index.html +++ b/explorer/index.html @@ -210,7 +210,16 @@

Key Value Store Explorer

- +
+
+
+ +
+
+ +
+
+
@@ -252,7 +261,7 @@

About Key Value Storage

GET — read the docs for Storing & Retrieving Data From Your - Default Key/Value Store for guidance and examples. + Key/Value Stores for guidance and examples.

@@ -289,13 +298,30 @@ integrity="sha512-6UofPqm0QupIL0kzS/UIzekR73/luZdC6i/kXDbWnLOJoqwklBK6519iUnShaYceJ0y4FaiPtX/hRnV/X/xlUQ==" crossorigin="anonymous" referrerpolicy="no-referrer">