Skip to content

An OpenFaaS Provider example using memory for state.

License

Notifications You must be signed in to change notification settings

peaclab/openfaas-microfaas

 
 

Repository files navigation

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 install github.com/yannip1234/[email protected]
cd faas-memory
go build

In another use the CLI with it:

$ 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

Orchestrator Setup

  1. Connect the orchestrator to your computer via serial communication.
  2. After compiling main.go, then transfer file via serial using the rz command.

About

An OpenFaaS Provider example using memory for state.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 61.1%
  • Shell 18.8%
  • Python 11.6%
  • Makefile 4.6%
  • Dockerfile 3.9%