Skip to content
An OpenFaaS Provider example using memory for state.
Go Shell Makefile Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
handlers
scripts
types
vendor
version
.DEREK.yaml
.gitignore
Dockerfile
Gopkg.lock
Gopkg.toml
LICENSE
Makefile
README.md
main.go

README.md

faas-memory

faas-memory implements the OpenFaaS provider API and uses in-memory objects to store state.

Purpose

This provider was created for integration testing and as a first-class example of an OpenFaaS provider for others to follow. It implements the faas-provider interface.

Getting started

In one terminal, build and start the provider:

export GOPATH=$HOME/go
go get -u github.com/openfaas-incubator/faas-memory
cd $GOPATH/go/src/github.com/openfaas-incubator/faas-memory

make build-local

port=8083 ./faas-provider

In another use the CLI with it:

$ export GOPATH=$HOME/go
$ cd $GOPATH/go/src/github.com/openfaas-incubator/faas-memory

$ export OPENFAAS_URL=127.0.0.1:8083

$ faas-cli list

Function                      	Invocations    	Replicas

$ faas-cli store deploy figlet

WARNING! Communication is not secure, please consider using HTTPS. Letsencrypt.org offers free SSL/TLS certificates.

Deployed. 200 OK.
URL: http://127.0.0.1:8083/function/figlet

$ faas-cli list

Function                      	Invocations    	Replicas
figlet                        	0              	1    

More coming soon..

Acknowledgements

This provider was built by Edward Wilde.

You can’t perform that action at this time.