diff --git a/.gitignore b/.gitignore index 0482ed5f..02a57e66 100644 --- a/.gitignore +++ b/.gitignore @@ -27,5 +27,6 @@ coverage.txt .vscode/* bfe dist/* +conf/wasm_plugin .DS_Store diff --git a/bfe_wasmplug/abi/proxywasm010/factory.go b/bfe_wasmplug/abi/proxywasm010/factory.go index 163fcd2a..3299d070 100644 --- a/bfe_wasmplug/abi/proxywasm010/factory.go +++ b/bfe_wasmplug/abi/proxywasm010/factory.go @@ -18,54 +18,13 @@ package proxywasm010 import ( - "github.com/bfenetworks/bfe/bfe_wasmplug/abi" "github.com/bfenetworks/proxy-wasm-go-host/proxywasm/common" proxywasm "github.com/bfenetworks/proxy-wasm-go-host/proxywasm/v1" ) -func init() { - abi.RegisterABI(proxywasm.ProxyWasmABI_0_1_0, ABIContextFactory) -} - -func ABIContextFactory(instance common.WasmInstance) abi.ABI { - return &ABIContext{ - proxywasm.ABIContext{ +func ABIContextFactory(instance common.WasmInstance) proxywasm.ContextHandler { + return &proxywasm.ABIContext{ Imports: &DefaultImportsHandler{Instance: instance}, Instance: instance, - }, - } -} - -// ABIContext is a wrapper for proxywasm-go-host/proxywasm.ABIContext -// implement types.ABI -type ABIContext struct { - proxywasm.ABIContext -} - -// implement types.ABI -func (ctx *ABIContext) GetABIImports() interface{} { - return ctx.ABIContext.GetImports() -} - -func (ctx *ABIContext) SetABIImports(imports interface{}) { - if v, ok := imports.(proxywasm.ImportsHandler); ok { - ctx.ABIContext.SetImports(v) - } + } } - -func (ctx *ABIContext) GetABIExports() interface{} { - return ctx.ABIContext.GetExports() -} - -/* -// implement types.ABIHandler -func (ctx *ABIContext) OnInstanceCreate(instance common.WasmInstance) { - if err := instance.RegisterImports(ctx.Name()); err != nil { - panic(err) - } -} - -func (ctx *ABIContext) OnInstanceStart(instance common.WasmInstance) {} - -func (ctx *ABIContext) OnInstanceDestroy(instance common.WasmInstance) {} -*/ \ No newline at end of file diff --git a/bfe_wasmplug/abi/proxywasm010/imports.go b/bfe_wasmplug/abi/proxywasm010/imports.go index 772c91b1..77264e23 100644 --- a/bfe_wasmplug/abi/proxywasm010/imports.go +++ b/bfe_wasmplug/abi/proxywasm010/imports.go @@ -75,7 +75,7 @@ type httpCallout struct { id int32 d *DefaultImportsHandler instance common.WasmInstance - abiContext *ABIContext + abiContext *proxywasm.ABIContext urlString string client *http.Client @@ -101,7 +101,7 @@ func (d *DefaultImportsHandler) HttpCall(reqURL string, header common.HeaderMap, id: calloutID, d: d, instance: d.Instance, - abiContext: d.Instance.GetData().(*ABIContext), + abiContext: d.Instance.GetData().(*proxywasm.ABIContext), urlString: reqURL, } diff --git a/bfe_wasmplug/abi/proxywasm010/shim.go b/bfe_wasmplug/abi/proxywasm010/shim.go index d267589f..161480c9 100644 --- a/bfe_wasmplug/abi/proxywasm010/shim.go +++ b/bfe_wasmplug/abi/proxywasm010/shim.go @@ -56,20 +56,3 @@ func (h HeaderMapWrapper) ByteSize() uint64 { func (h HeaderMapWrapper) Clone() common.HeaderMap { return &HeaderMapWrapper{h.Header} } - -/* -// HeaderMapWrapperBack wraps proxy-wasm-go-host/common.HeaderMap into api.HeaderMap -type HeaderMapWrapperBack struct { - common.HeaderMap -} - -func (h HeaderMapWrapperBack) Clone() api.HeaderMap { - return nil -} - -// IoBufferWrapper wraps buffer.IoBuffer into proxy-wasm-go-host/common.IoBuffer -// implement common.IoBuffer -type IoBufferWrapper struct { - buffer.IoBuffer -} -*/ \ No newline at end of file diff --git a/bfe_wasmplug/abi/registry.go b/bfe_wasmplug/abi/registry.go index 3723d00c..021f73ae 100644 --- a/bfe_wasmplug/abi/registry.go +++ b/bfe_wasmplug/abi/registry.go @@ -18,67 +18,23 @@ package abi import ( - "sync" - "github.com/baidu/go-lib/log" + "github.com/bfenetworks/bfe/bfe_wasmplug/abi/proxywasm010" "github.com/bfenetworks/proxy-wasm-go-host/proxywasm/common" proxywasm "github.com/bfenetworks/proxy-wasm-go-host/proxywasm/v1" ) -// Factory is the ABI factory func. -type Factory func(instance common.WasmInstance) ABI - -// string -> Factory. -var abiMap = sync.Map{} - -// RegisterABI registers an abi factory. -func RegisterABI(name string, factory Factory) { - abiMap.Store(name, factory) -} - -func GetABI(instance common.WasmInstance, name string) ABI { - if instance == nil || name == "" { - log.Logger.Error("[abi][registry] GetABI invalid param, name: %v, instance: %v", name, instance) - return nil - } - - v, ok := abiMap.Load(name) - if !ok { - log.Logger.Error("[abi][registry] GetABI not found in registry, name: %v", name) - return nil - } - - abiNameList := instance.GetModule().GetABINameList() - for _, abi := range abiNameList { - if name == abi { - factory := v.(Factory) - return factory(instance) - } - } - - log.Logger.Error("[abi][register] GetABI not found in wasm instance, name: %v", name) - - return nil -} - -func GetABIList(instance common.WasmInstance) []ABI { +func GetABIList(instance common.WasmInstance) []proxywasm.ContextHandler { if instance == nil { log.Logger.Error("[abi][registry] GetABIList nil instance: %v", instance) return nil } - res := make([]ABI, 0) + res := make([]proxywasm.ContextHandler, 0) abiNameList := instance.GetModule().GetABINameList() if len(abiNameList) > 0 { - v, ok := abiMap.Load(proxywasm.ProxyWasmABI_0_1_0) - if !ok { - log.Logger.Warn("[abi][registry] GetABIList abi not registered, name: %v", proxywasm.ProxyWasmABI_0_1_0) - return res - } - - factory := v.(Factory) - res = append(res, factory(instance)) + res = append(res, proxywasm010.ABIContextFactory(instance)) } return res diff --git a/bfe_wasmplug/abi/wasm.go b/bfe_wasmplug/abi/wasm.go deleted file mode 100644 index 6c24e7cc..00000000 --- a/bfe_wasmplug/abi/wasm.go +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package abi - -// -// ABI -// - -// ABI represents the abi between the host and wasm, which consists of three parts: exports, imports and life-cycle handler -// *exports* represents the exported elements of the wasm module, i.e., the abilities provided by wasm and exposed to host -// *imports* represents the imported elements of the wasm module, i.e., the dependencies that required by wasm -// *life-cycle handler* manages the life-cycle of an abi - -type ABI interface { - // Name returns the name of ABI - Name() string - - // GetABIImports gets the imports part of the abi - GetABIImports() interface{} - - // SetImports sets the import part of the abi - SetABIImports(imports interface{}) - - // GetExports returns the export part of the abi - GetABIExports() interface{} - - //ABIHandler -} - -/* -type ABIHandler interface { - // life-cycle: OnInstanceCreate got called when instantiating the wasm instance - OnInstanceCreate(instance common.WasmInstance) - - // life-cycle: OnInstanceStart got called when starting the wasm instance - OnInstanceStart(instance common.WasmInstance) - - // life-cycle: OnInstanceDestroy got called when destroying the wasm instance - OnInstanceDestroy(instance common.WasmInstance) -} -*/ \ No newline at end of file diff --git a/bfe_wasmplug/adapter.go b/bfe_wasmplug/adapter.go index 30964cec..aa7eb4b2 100644 --- a/bfe_wasmplug/adapter.go +++ b/bfe_wasmplug/adapter.go @@ -21,9 +21,7 @@ import ( "bytes" "io/ioutil" - "github.com/baidu/go-lib/log" "github.com/bfenetworks/bfe/bfe_http" - "github.com/bfenetworks/bfe/bfe_module" "github.com/bfenetworks/bfe/bfe_wasmplug/abi/proxywasm010" "github.com/bfenetworks/proxy-wasm-go-host/proxywasm/common" v1Host "github.com/bfenetworks/proxy-wasm-go-host/proxywasm/v1" @@ -117,88 +115,3 @@ func (v1 *v1Imports) SendHttpResp(respCode int32, respCodeDetail common.IoBuffer v1.filter.request.HttpResponse = resp return v1Host.WasmResultOk } - -// exports -type exportAdapter struct { - v1 v1Host.Exports -} - -func (e *exportAdapter) ProxyOnContextCreate(contextID int32, parentContextID int32) error { - return e.v1.ProxyOnContextCreate(contextID, parentContextID) -} - -func (e *exportAdapter) ProxyOnVmStart(rootContextID int32, vmConfigurationSize int32) (int32, error) { - return e.v1.ProxyOnVmStart(rootContextID, vmConfigurationSize) -} - -func (e *exportAdapter) ProxyOnConfigure(rootContextID int32, pluginConfigurationSize int32) (int32, error) { - return e.v1.ProxyOnConfigure(rootContextID, pluginConfigurationSize) -} - -func (e *exportAdapter) ProxyOnDone(contextID int32) (int32, error) { - return e.v1.ProxyOnDone(contextID) -} - -func (e *exportAdapter) ProxyOnDelete(contextID int32) error { - return e.v1.ProxyOnDelete(contextID) -} - -func (e *exportAdapter) ProxyOnRequestHeaders(contextID int32, headers int32, endOfStream int32) int { - action, err := e.v1.ProxyOnRequestHeaders(contextID, headers, endOfStream) - if err != nil || action != v1Host.ActionContinue { - log.Logger.Error("[proxywasm][filter][v1] ProxyOnRequestHeaders action: %v, err: %v", action, err) - return bfe_module.BfeHandlerResponse - } - - return bfe_module.BfeHandlerGoOn -} - -func (e *exportAdapter) ProxyOnRequestBody(contextID int32, bodyBufferLength int32, endOfStream int32) int { - action, err := e.v1.ProxyOnRequestBody(contextID, bodyBufferLength, endOfStream) - if err != nil || action != v1Host.ActionContinue { - log.Logger.Error("[proxywasm][filter][v1] ProxyOnRequestBody action: %v, err: %v", action, err) - return bfe_module.BfeHandlerResponse - } - - return bfe_module.BfeHandlerGoOn -} - -func (e *exportAdapter) ProxyOnRequestTrailers(contextID int32, trailers int32, endOfStream int32) int { - action, err := e.v1.ProxyOnRequestTrailers(contextID, trailers) - if err != nil || action != v1Host.ActionContinue { - log.Logger.Error("[proxywasm][filter][v1] ProxyOnRequestTrailers action: %v, err: %v", action, err) - return bfe_module.BfeHandlerResponse - } - - return bfe_module.BfeHandlerGoOn -} - -func (e *exportAdapter) ProxyOnResponseHeaders(contextID int32, headers int32, endOfStream int32) int { - action, err := e.v1.ProxyOnResponseHeaders(contextID, headers, endOfStream) - if err != nil || action != v1Host.ActionContinue { - log.Logger.Error("[proxywasm][filter][v1] ProxyOnResponseHeaders action: %v, err: %v", action, err) - return bfe_module.BfeHandlerResponse - } - - return bfe_module.BfeHandlerGoOn -} - -func (e *exportAdapter) ProxyOnResponseBody(contextID int32, bodyBufferLength int32, endOfStream int32) int { - action, err := e.v1.ProxyOnResponseBody(contextID, bodyBufferLength, endOfStream) - if err != nil || action != v1Host.ActionContinue { - log.Logger.Error("[proxywasm][filter][v1] ProxyOnRequestBody action: %v, err: %v", action, err) - return bfe_module.BfeHandlerResponse - } - - return bfe_module.BfeHandlerGoOn -} - -func (e *exportAdapter) ProxyOnResponseTrailers(contextID int32, trailers int32, endOfStream int32) int { - action, err := e.v1.ProxyOnResponseTrailers(contextID, trailers) - if err != nil || action != v1Host.ActionContinue { - log.Logger.Error("[proxywasm][filter][v1] ProxyOnResponseTrailers action: %v, err: %v", action, err) - return bfe_module.BfeHandlerResponse - } - - return bfe_module.BfeHandlerGoOn -} diff --git a/bfe_wasmplug/filter.go b/bfe_wasmplug/filter.go index 6dbadb23..56063502 100644 --- a/bfe_wasmplug/filter.go +++ b/bfe_wasmplug/filter.go @@ -39,8 +39,8 @@ type Filter struct { //pluginName string plugin WasmPlugin instance common.WasmInstance - abi wasmABI.ABI - exports *exportAdapter + abi v1Host.ContextHandler + exports v1Host.Exports rootContextID int32 contextID int32 @@ -81,8 +81,8 @@ func NewFilter(plugin *WasmPlugin, request *bfe_basic.Request) *Filter { // v1 imports := &v1Imports{plugin: *plugin, filter: filter} imports.DefaultImportsHandler.Instance = instance - filter.abi.SetABIImports(imports) - filter.exports = &exportAdapter{v1: filter.abi.GetABIExports().(v1Host.Exports)} + filter.abi.SetImports(imports) + filter.exports = filter.abi.GetExports() } else { log.Logger.Error("[proxywasm][filter] unknown abi list: %v", filter.abi) return nil @@ -100,59 +100,7 @@ func NewFilter(plugin *WasmPlugin, request *bfe_basic.Request) *Filter { return filter } -/* -func NewFilter(ctx context.Context, pluginName string, rootContextID int32, factory *FilterConfigFactory) *Filter { - pluginWrapper := bfe_wasm.GetWasmManager().GetWasmPluginWrapperByName(pluginName) - if pluginWrapper == nil { - log.Logger.Error("[proxywasm][filter] NewFilter wasm plugin not exists, plugin name: %v", pluginName) - return nil - } - - plugin := pluginWrapper.GetPlugin() - instance := plugin.GetInstance() - - filter := &Filter{ - ctx: ctx, - factory: factory, - pluginName: pluginName, - plugin: plugin, - instance: instance, - rootContextID: rootContextID, - contextID: newContextID(rootContextID), - } - filter.abi = wasmABI.GetABIList(instance)[0] - log.Logger.Info("[proxywasm][filter] abi version: %v", filter.abi.Name()) - if filter.abi.Name() == v1Host.ProxyWasmABI_0_1_0 { - // v1 - imports := &v1Imports{factory: filter.factory, filter: filter} - imports.DefaultImportsHandler.Instance = instance - filter.abi.SetABIImports(imports) - filter.exports = &exportAdapter{v1: filter.abi.GetABIExports().(v1Host.Exports)} - } else if filter.abi.Name() == v2Host.ProxyWasmABI_0_2_0 { - // v2 - imports := &v2Imports{factory: filter.factory, filter: filter} - imports.DefaultImportsHandler.Instance = instance - filter.abi.SetABIImports(imports) - filter.exports = &exportAdapter{v2: filter.abi.GetABIExports().(v2Host.Exports)} - } else { - log.Logger.Error("[proxywasm][filter] unknown abi list: %v", filter.abi) - return nil - } - - filter.instance.Lock(filter.abi) - defer filter.instance.Unlock() - - err := filter.exports.ProxyOnContextCreate(filter.contextID, filter.rootContextID) - if err != nil { - log.Logger.Error("[proxywasm][filter] NewFilter fail to create context id: %v, rootContextID: %v, err: %v", - filter.contextID, filter.rootContextID, err) - return nil - } - - return filter -} -*/ func (f *Filter) OnDestroy() { f.destroyOnce.Do(func() { f.instance.Lock(f.abi) @@ -173,99 +121,35 @@ func (f *Filter) OnDestroy() { f.plugin.ReleaseInstance(f.instance) }) } -/* -func (f *Filter) SetReceiveFilterHandler(handler api.StreamReceiverFilterHandler) { - f.receiverFilterHandler = handler -} -func (f *Filter) SetSenderFilterHandler(handler api.StreamSenderFilterHandler) { - f.senderFilterHandler = handler -} -*/ -/* -func (f *Filter) OnReceive() int { +func (f *Filter) RequestHandler(request *bfe_basic.Request) (int, *bfe_http.Response) { f.instance.Lock(f.abi) defer f.instance.Unlock() - status := f.exports.ProxyOnRequestHeaders(f.contextID, int32(len(f.request.HttpRequest.Header)), 0) - if status != bfe_module.BfeHandlerGoOn { - return status - } - - endOfStream = 1 - if trailers != nil { - endOfStream = 0 - } - - if buf != nil && buf.Len() > 0 { - status = f.exports.ProxyOnRequestBody(f.contextID, int32(buf.Len()), int32(endOfStream)) - if status == api.StreamFilterStop { - return api.StreamFilterStop - } + action, err := f.exports.ProxyOnRequestHeaders(f.contextID, int32(len(request.HttpRequest.Header)), 0) + if err != nil { + log.Logger.Error("[proxywasm][filter][v1] ProxyOnRequestHeaders action: %v, err: %v", action, err) } - if trailers != nil { - status = f.exports.ProxyOnRequestTrailers(f.contextID, int32(headerMapSize(trailers)), int32(endOfStream)) - if status == api.StreamFilterStop { - return api.StreamFilterStop - } + status := bfe_module.BfeHandlerGoOn + if f.request.HttpResponse != nil { + status = bfe_module.BfeHandlerResponse } - - return api.StreamFilterContinue + return status, f.request.HttpResponse } -func (f *Filter) Append(ctx context.Context, headers api.HeaderMap, buf buffer.IoBuffer, trailers api.HeaderMap) api.StreamFilterStatus { +func (f *Filter) ResponseHandler(request *bfe_basic.Request) (int, *bfe_http.Response) { f.instance.Lock(f.abi) defer f.instance.Unlock() - endOfStream := 1 - if (buf != nil && buf.Len() > 0) || trailers != nil { - endOfStream = 0 - } - - status := f.exports.ProxyOnResponseHeaders(f.contextID, int32(headerMapSize(headers)), int32(endOfStream)) - if status == api.StreamFilterStop { - return api.StreamFilterStop - } - - endOfStream = 1 - if trailers != nil { - endOfStream = 0 - } - - if buf != nil && buf.Len() > 0 { - status = f.exports.ProxyOnResponseBody(f.contextID, int32(buf.Len()), int32(endOfStream)) - if status == api.StreamFilterStop { - return api.StreamFilterStop - } - } - - if trailers != nil { - status = f.exports.ProxyOnResponseTrailers(f.contextID, int32(headerMapSize(trailers)), int32(endOfStream)) - if status == api.StreamFilterStop { - return api.StreamFilterStop - } + action, err := f.exports.ProxyOnResponseHeaders(f.contextID, int32(len(request.HttpResponse.Header)), 0) + if err != nil { + log.Logger.Error("[proxywasm][filter][v1] ProxyOnResponseHeaders action: %v, err: %v", action, err) } - return api.StreamFilterContinue -} -*/ -func (f *Filter) RequestHandler(request *bfe_basic.Request) (int, *bfe_http.Response) { - f.instance.Lock(f.abi) - defer f.instance.Unlock() - - status := f.exports.ProxyOnRequestHeaders(f.contextID, int32(len(request.HttpRequest.Header)), 0) + status := bfe_module.BfeHandlerGoOn if f.request.HttpResponse != nil { status = bfe_module.BfeHandlerResponse } return status, f.request.HttpResponse } - -func (f *Filter) ResponseHandler(request *bfe_basic.Request) (int, *bfe_http.Response) { - f.instance.Lock(f.abi) - defer f.instance.Unlock() - - status := f.exports.ProxyOnResponseHeaders(f.contextID, int32(len(request.HttpResponse.Header)), 0) - return status, f.request.HttpResponse -} - diff --git a/bfe_wasmplug/plugin.go b/bfe_wasmplug/plugin.go index 587b4176..fd97e1dd 100644 --- a/bfe_wasmplug/plugin.go +++ b/bfe_wasmplug/plugin.go @@ -314,13 +314,13 @@ func (w *wasmPluginImpl) ReleaseInstance(instance common.WasmInstance) { func (w *wasmPluginImpl) OnPluginStart() { w.Exec(func(instance common.WasmInstance) bool { abi := wasmABI.GetABIList(instance)[0] - var exports *exportAdapter + var exports v1Host.Exports if abi != nil { // v1 imports := &v1Imports{plugin: w} imports.DefaultImportsHandler.Instance = instance - abi.SetABIImports(imports) - exports = &exportAdapter{v1: abi.GetABIExports().(v1Host.Exports)} + abi.SetImports(imports) + exports = abi.GetExports() } else { log.Logger.Error("[proxywasm][factory] unknown abi list: %v", abi) return false diff --git a/bfe_wasmplug/utils.go b/bfe_wasmplug/utils.go deleted file mode 100644 index 91d5b067..00000000 --- a/bfe_wasmplug/utils.go +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package bfe_wasmplug - -import ( - "io/ioutil" - "path/filepath" - - "github.com/baidu/go-lib/log" -) - -func loadWasmBytesFromPath(path string) []byte { - if path == "" { - return nil - } - - bytes, err := ioutil.ReadFile(filepath.Clean(path)) - if err != nil { - log.Logger.Error("[wasm][utils] loadWasmBytesFromPath read file err: %v", err) - return nil - } - - return bytes -} - -func loadWasmBytesFromUrl(url string) []byte { - if url == "" { - return nil - } - - return nil -} diff --git a/conf/mod_wasm/mod_wasm.data b/conf/mod_wasm/mod_wasm.data index 79b7b05a..d76dfba9 100644 --- a/conf/mod_wasm/mod_wasm.data +++ b/conf/mod_wasm/mod_wasm.data @@ -1,5 +1,5 @@ { - "Version": "9", + "Version": "1", "BeforeLocationRules": [{ "Cond": "req_path_prefix_in(\"/headers\", false)", "PluginList": [ "headers" ] @@ -19,15 +19,15 @@ }, "headers": { "Name": "headers", - "WasmVersion": "2", - "ConfVersion": "4", - "InstanceNum": 1 + "WasmVersion": "3", + "ConfVersion": "6", + "InstanceNum": 3 }, "auth": { "Name": "auth", "WasmVersion": "2", "ConfVersion": "4", - "InstanceNum": 1 + "InstanceNum": 3 } } } diff --git a/conf/wasm_plugin/auth/auth.conf b/conf/wasm_plugin/auth/auth.conf deleted file mode 100644 index e69de29b..00000000 diff --git a/conf/wasm_plugin/auth/auth.md5 b/conf/wasm_plugin/auth/auth.md5 deleted file mode 100644 index f57463d3..00000000 --- a/conf/wasm_plugin/auth/auth.md5 +++ /dev/null @@ -1 +0,0 @@ -ff3365be2f783bf3b24744be00285b04 diff --git a/conf/wasm_plugin/auth/auth.wasm b/conf/wasm_plugin/auth/auth.wasm deleted file mode 100755 index c732d872..00000000 Binary files a/conf/wasm_plugin/auth/auth.wasm and /dev/null differ diff --git a/conf/wasm_plugin/headers/headers.conf b/conf/wasm_plugin/headers/headers.conf deleted file mode 100644 index 77d8544e..00000000 --- a/conf/wasm_plugin/headers/headers.conf +++ /dev/null @@ -1,4 +0,0 @@ -{ - "header": "Wasm-Header-1", - "value": "Hello WasmPlugin!" -} diff --git a/conf/wasm_plugin/headers/headers.md5 b/conf/wasm_plugin/headers/headers.md5 deleted file mode 100644 index adb53ddf..00000000 --- a/conf/wasm_plugin/headers/headers.md5 +++ /dev/null @@ -1 +0,0 @@ -002cdf5439159779f604a8a4b3c02d3d diff --git a/conf/wasm_plugin/headers/headers.md5.bak b/conf/wasm_plugin/headers/headers.md5.bak deleted file mode 100644 index 8303da62..00000000 --- a/conf/wasm_plugin/headers/headers.md5.bak +++ /dev/null @@ -1 +0,0 @@ -21e38e220d796c57c65b43e8bbfb0d56 diff --git a/conf/wasm_plugin/headers/headers.md5.bak2 b/conf/wasm_plugin/headers/headers.md5.bak2 deleted file mode 100644 index c48b9d9d..00000000 --- a/conf/wasm_plugin/headers/headers.md5.bak2 +++ /dev/null @@ -1 +0,0 @@ -853a0cbf9399fd2f2e88d02d795b3773 diff --git a/conf/wasm_plugin/headers/headers.wasm b/conf/wasm_plugin/headers/headers.wasm deleted file mode 100755 index 4351f566..00000000 Binary files a/conf/wasm_plugin/headers/headers.wasm and /dev/null differ diff --git a/conf/wasm_plugin/headers/headers.wasm.bak b/conf/wasm_plugin/headers/headers.wasm.bak deleted file mode 100755 index 2bf8ff66..00000000 Binary files a/conf/wasm_plugin/headers/headers.wasm.bak and /dev/null differ diff --git a/conf/wasm_plugin/headers/headers.wasm.bak2 b/conf/wasm_plugin/headers/headers.wasm.bak2 deleted file mode 100755 index a73f87a9..00000000 Binary files a/conf/wasm_plugin/headers/headers.wasm.bak2 and /dev/null differ diff --git a/conf/wasm_plugin/hello/hello.conf b/conf/wasm_plugin/hello/hello.conf deleted file mode 100644 index e69de29b..00000000 diff --git a/conf/wasm_plugin/hello/hello.md5 b/conf/wasm_plugin/hello/hello.md5 deleted file mode 100644 index 8303da62..00000000 --- a/conf/wasm_plugin/hello/hello.md5 +++ /dev/null @@ -1 +0,0 @@ -21e38e220d796c57c65b43e8bbfb0d56 diff --git a/conf/wasm_plugin/hello/hello.wasm b/conf/wasm_plugin/hello/hello.wasm deleted file mode 100755 index 2bf8ff66..00000000 Binary files a/conf/wasm_plugin/hello/hello.wasm and /dev/null differ diff --git a/conf/wasm_plugin/http/http.conf b/conf/wasm_plugin/http/http.conf deleted file mode 100644 index e69de29b..00000000 diff --git a/conf/wasm_plugin/http/http.md5 b/conf/wasm_plugin/http/http.md5 deleted file mode 100644 index 8153a9da..00000000 --- a/conf/wasm_plugin/http/http.md5 +++ /dev/null @@ -1 +0,0 @@ -6f0560c9855ea90150196f95b0cc26b9 diff --git a/conf/wasm_plugin/http/http.wasm b/conf/wasm_plugin/http/http.wasm deleted file mode 100644 index a5ad62a0..00000000 Binary files a/conf/wasm_plugin/http/http.wasm and /dev/null differ