Skip to content

Commit b6ec1a0

Browse files
committed
Update to faas-memory
This is a shorter name and easier to say Signed-off-by: Alex Ellis <[email protected]>
1 parent d542809 commit b6ec1a0

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
.vscode
33
examples/
44
dist
5-
faas-inmemory
5+
faas-memory
66
dive.log
77
deployment/k8s/yaml/gateway-dep.yml

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ RUN gofmt -l -d $(find . -type f -name '*.go' -not -path "./vendor/*") \
1515
&& VERSION=$(git describe --all --exact-match `git rev-parse HEAD` | grep tags | sed 's/tags\///') \
1616
&& GIT_COMMIT=$(git rev-list -1 HEAD) \
1717
&& CGO_ENABLED=0 GOOS=linux go build --ldflags "-s -w \
18-
-X github.com/openfaas/faas-inmemory/version.GitCommit=${GIT_COMMIT}\
19-
-X github.com/openfaas/faas-inmemory/version.Version=${VERSION}" \
20-
-a -installsuffix cgo -o faas-inmemory .
18+
-X github.com/openfaas/faas-memory/version.GitCommit=${GIT_COMMIT}\
19+
-X github.com/openfaas/faas-memory/version.Version=${VERSION}" \
20+
-a -installsuffix cgo -o faas-memory .
2121

2222
# Release stage
2323
FROM alpine:3.8
2424

2525
LABEL org.label-schema.license="MIT" \
26-
org.label-schema.vcs-url="https://github.com/openfaas/faas-inmemory" \
26+
org.label-schema.vcs-url="https://github.com/openfaas/faas-memory" \
2727
org.label-schema.vcs-type="Git" \
28-
org.label-schema.name="openfaas/faas-inmemory" \
28+
org.label-schema.name="openfaas/faas-memory" \
2929
org.label-schema.vendor="openfaas" \
3030
org.label-schema.docker.schema-version="1.0"
3131

@@ -38,6 +38,6 @@ EXPOSE 8080
3838
ENV http_proxy ""
3939
ENV https_proxy ""
4040

41-
COPY --from=build /go/src/github.com/openfaas-incubator/faas-memory/faas-inmemory .
41+
COPY --from=build /go/src/github.com/openfaas-incubator/faas-memory/faas-memory .
4242

43-
CMD ["./faas-inmemory"]
43+
CMD ["./faas-memory"]

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ testacc: goimportscheck
1414

1515
.PHONY: build
1616
build:
17-
docker build -t functions/faas-inmemory:$(TAG) . --squash=${SQUASH}
17+
docker build -t functions/faas-memory:$(TAG) . --squash=${SQUASH}
1818

1919
.PHONY: build-local
2020
build-local:
2121
go build --ldflags "-s -w \
2222
-X github.com/openfaas-incubator/faas-memory/version.GitCommitSHA=${GIT_COMMIT_SHA} \
2323
-X \"github.com/openfaas-incubator/faas-memory/version.GitCommitMessage=${GIT_COMMIT_MESSAGE}\" \
2424
-X github.com/openfaas-incubator/faas-memory/version.Version=${VERSION}" \
25-
-o faas-inmemory .
25+
-o faas-memory .
2626

2727
.PHONY: up-local-deps
2828
up-local-deps:
2929
docker-compose -f./docker-compose.local.yml up -d
3030

3131
.PHONY: up-local
3232
up-local: build-local
33-
-pkill faas-inmemory
33+
-pkill faas-memory
3434
docker-compose -f ./docker-compose.local.yml up -d
35-
env port=8081 ./faas-inmemory
35+
env port=8081 ./faas-memory
3636

3737
.PHONY: release
3838
release:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# faas-inmemory
1+
# faas-memory
22

33
An in-memory implementation of the OpenFaaS provider API. Useful for testing some gateway functionality.

handlers/info.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010

1111
const (
1212
//OrchestrationIdentifier identifier string for provider orchestration
13-
OrchestrationIdentifier = "inmemory"
13+
OrchestrationIdentifier = "memory"
1414
//ProviderName name of the provider
15-
ProviderName = "faas-inmemory"
15+
ProviderName = "faas-memory"
1616
)
1717

1818
//MakeInfoHandler creates handler for /system/info endpoint

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func init() {
3737

3838
func main() {
3939

40-
log.Infof("faas-inmemory version:%s. Last commit message: %s, commit SHA: %s'", version.BuildVersion(), version.GitCommitMessage, version.GitCommitSHA)
40+
log.Infof("faas-memory version:%s. Last commit message: %s, commit SHA: %s'", version.BuildVersion(), version.GitCommitMessage, version.GitCommitSHA)
4141

4242
bootstrapHandlers := bootTypes.FaaSHandlers{
4343
FunctionProxy: handlers.MakeProxy(),

0 commit comments

Comments
 (0)