Skip to content

Commit 158d288

Browse files
committed
Move to using templates-sdk repo for http function
The HTTP function now makes use of a dedicated repository for SDK resources in the openfaas org. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent aeae736 commit 158d288

File tree

26 files changed

+41
-52
lines changed

26 files changed

+41
-52
lines changed

template/golang-http-armhf/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
FROM openfaas/of-watchdog:0.7.7 as watchdog
1+
FROM openfaas/of-watchdog:0.8.0 as watchdog
22
FROM golang:1.13-alpine3.11 as build
33

44
RUN apk --no-cache add git
55

6+
ENV CGO_ENABLED=0
7+
68
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
79
RUN chmod +x /usr/bin/fwatchdog
810

9-
ENV CGO_ENABLED=0
10-
1111
RUN mkdir -p /go/src/handler
1212
WORKDIR /go/src/handler
1313
COPY . .

template/golang-http-armhf/function/Gopkg.toml

Lines changed: 0 additions & 7 deletions
This file was deleted.

template/golang-http-armhf/function/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"net/http"
66

7-
"github.com/openfaas-incubator/go-function-sdk"
7+
handler "github.com/openfaas/templates-sdk/go-http"
88
)
99

1010
// Handle a function invocation

template/golang-http-armhf/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ go 1.13
44

55
replace handler/function => ./function
66

7-
require github.com/openfaas-incubator/go-function-sdk v0.0.0-20200405082418-b31e65bf8a33
7+
require github.com/openfaas/templates-sdk v0.0.0-20200723092016-0ebf61253625

template/golang-http-armhf/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/openfaas-incubator/go-function-sdk v0.0.0-20200405082418-b31e65bf8a33 h1:KhbcrtXR+IO7IWF08RzKpgMudBhEeRRqNmRurE1iph4=
2-
github.com/openfaas-incubator/go-function-sdk v0.0.0-20200405082418-b31e65bf8a33/go.mod h1:F37Kp+hwdHP+o3UKjkGzikQg4weKiMvcegT9vCQjvjE=
1+
github.com/openfaas/templates-sdk v0.0.0-20200723092016-0ebf61253625 h1:6JSt10GDCOw0F67bWnqZ6AYg92pbqCcchTu181aT1w0=
2+
github.com/openfaas/templates-sdk v0.0.0-20200723092016-0ebf61253625/go.mod h1:JWcVHdzlHcR7nLuaDL88Mz68wOqDvOn0CLO6t27OMhk=

template/golang-http-armhf/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515

1616
"handler/function"
1717

18-
handler "github.com/openfaas-incubator/go-function-sdk"
18+
handler "github.com/openfaas/templates-sdk/go-http"
1919
)
2020

2121
var (
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
language: golang-http-armhf
1+
language: golang-http
22
fprocess: ./handler

template/golang-http-armhf/vendor/github.com/openfaas-incubator/go-function-sdk/.DEREK.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

template/golang-http-armhf/vendor/github.com/openfaas-incubator/go-function-sdk/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

template/golang-http/vendor/github.com/openfaas-incubator/go-function-sdk/LICENSE renamed to template/golang-http-armhf/vendor/github.com/openfaas/templates-sdk/LICENSE

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)