Remove un-used RoutelessProxy

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis
2019-06-08 10:33:53 +01:00
parent 1cf030da48
commit d2965df9f2
3 changed files with 8 additions and 5 deletions

View File

@ -3,7 +3,7 @@ services:
gateway: gateway:
ports: ports:
- 8080:8080 - 8080:8080
image: openfaas/gateway:0.13.7-rc2 image: openfaas/gateway:0.13.7-rc4
networks: networks:
- functions - functions
environment: environment:
@ -43,11 +43,13 @@ services:
# auth service provide basic-auth plugin for system APIs # auth service provide basic-auth plugin for system APIs
basic-auth-plugin: basic-auth-plugin:
image: openfaas/basic-auth-plugin:0.1.0 image: openfaas/basic-auth-plugin:0.1.1
networks: networks:
- functions - functions
environment: environment:
secret_mount_path: "/run/secrets/" secret_mount_path: "/run/secrets/"
user_filename: "basic-auth-user"
pass_filename: "basic-auth-password"
deploy: deploy:
placement: placement:
constraints: constraints:

View File

@ -95,7 +95,6 @@ func main() {
faasHandlers.Proxy = handlers.MakeForwardingProxyHandler(reverseProxy, functionNotifiers, functionURLResolver, functionURLTransformer, nil) faasHandlers.Proxy = handlers.MakeForwardingProxyHandler(reverseProxy, functionNotifiers, functionURLResolver, functionURLTransformer, nil)
faasHandlers.RoutelessProxy = handlers.MakeForwardingProxyHandler(reverseProxy, forwardingNotifiers, urlResolver, nilURLTransformer, serviceAuthInjector)
faasHandlers.ListFunctions = handlers.MakeForwardingProxyHandler(reverseProxy, forwardingNotifiers, urlResolver, nilURLTransformer, serviceAuthInjector) faasHandlers.ListFunctions = handlers.MakeForwardingProxyHandler(reverseProxy, forwardingNotifiers, urlResolver, nilURLTransformer, serviceAuthInjector)
faasHandlers.DeployFunction = handlers.MakeForwardingProxyHandler(reverseProxy, forwardingNotifiers, urlResolver, nilURLTransformer, serviceAuthInjector) faasHandlers.DeployFunction = handlers.MakeForwardingProxyHandler(reverseProxy, forwardingNotifiers, urlResolver, nilURLTransformer, serviceAuthInjector)
faasHandlers.DeleteFunction = handlers.MakeForwardingProxyHandler(reverseProxy, forwardingNotifiers, urlResolver, nilURLTransformer, serviceAuthInjector) faasHandlers.DeleteFunction = handlers.MakeForwardingProxyHandler(reverseProxy, forwardingNotifiers, urlResolver, nilURLTransformer, serviceAuthInjector)

View File

@ -4,12 +4,14 @@ import "net/http"
// HandlerSet can be initialized with handlers for binding to mux // HandlerSet can be initialized with handlers for binding to mux
type HandlerSet struct { type HandlerSet struct {
Proxy http.HandlerFunc // Proxy invokes functions upstream
Proxy http.HandlerFunc
DeployFunction http.HandlerFunc DeployFunction http.HandlerFunc
DeleteFunction http.HandlerFunc DeleteFunction http.HandlerFunc
ListFunctions http.HandlerFunc ListFunctions http.HandlerFunc
Alert http.HandlerFunc Alert http.HandlerFunc
RoutelessProxy http.HandlerFunc
UpdateFunction http.HandlerFunc UpdateFunction http.HandlerFunc
// QueryFunction - queries the metdata for a function // QueryFunction - queries the metdata for a function