{"id":13581884,"url":"https://github.com/openfaas/faas-provider","last_synced_at":"2025-05-15T01:04:39.541Z","repository":{"id":24845804,"uuid":"102582597","full_name":"openfaas/faas-provider","owner":"openfaas","description":"A backend provider interface for OpenFaaS","archived":false,"fork":false,"pushed_at":"2025-03-11T10:46:25.000Z","size":3898,"stargazers_count":126,"open_issues_count":2,"forks_count":45,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-06T18:13:41.830Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/openfaas/faas","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openfaas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-06T08:20:14.000Z","updated_at":"2025-03-11T10:46:08.000Z","dependencies_parsed_at":"2023-07-14T09:22:25.071Z","dependency_job_id":"4710f126-d71d-40d3-ba5d-0b6851a699a8","html_url":"https://github.com/openfaas/faas-provider","commit_stats":null,"previous_names":["alexellis/faas-provider"],"tags_count":69,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfaas%2Ffaas-provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfaas%2Ffaas-provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfaas%2Ffaas-provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfaas%2Ffaas-provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openfaas","download_url":"https://codeload.github.com/openfaas/faas-provider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248785359,"owners_count":21161274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T15:02:17.820Z","updated_at":"2025-04-13T21:29:47.382Z","avatar_url":"https://github.com/openfaas.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"faas-provider\n==============\n\nThis faas-provider can be used to write your own back-end for OpenFaaS. The Golang SDK can be vendored into your project so that you can provide a provider which is compliant and compatible with the OpenFaaS gateway.\n\n![Conceptual diagram](docs/conceptual.png)\n\nThe faas-provider provides CRUD for functions and an invoke capability. If you complete the required endpoints then you will be able to use your container orchestrator or back-end system with the existing OpenFaaS ecosystem and tooling.\n\nRead more: [The power of interfaces in OpenFaaS](https://blog.alexellis.io/the-power-of-interfaces-openfaas/)\n\n### Recommendations\n\nThe following is used in OpenFaaS and recommended for those seeking to build their own back-ends:\n\n* License: MIT\n* Language: Golang\n\n### How to use this project\n\nAll the required HTTP routes are configured automatically including a HTTP server on port 8080. Your task is to implement the supplied HTTP handler functions.\n\nExamples:\n\n**OpenFaaS for Kubernetes**\n\nSee the [main.go](https://github.com/openfaas/faas-netes/blob/master/main.go) file in the [faas-netes](https://github.com/openfaas/faas-netes) Kubernetes backend.\n\n**OpenFaaS for containerd (faasd)**\n\nSee [provider.go](https://github.com/openfaas/faasd/blob/master/cmd/provider.go#L100) for the [faasd backend](https://github.com/openfaas/faasd/)\n\nI.e.:\n\n```go\n\ttimeout := 8 * time.Second\n\tbootstrapHandlers := bootTypes.FaaSHandlers{\n\t\tListNamespaces: handlers.MakeNamespaceLister(),\n\t\tFunctionProxy:  handlers.MakeProxyHandler(),\n\t\tFunctionLister: handlers.MakeFunctionLister(),\n\t\tDeployFunction: handlers.MakeDeployFunctionHandler(),\n\t\tDeleteFunction: handlers.MakeDeleteFunctionHandler(),\n\t\tUpdateFunction: handlers.MakeUpdateFunctionHandler(),\n\t\tFunctionStatus: handlers.MakeFunctionStatusHandler(),\n\t\tScaleFunction: \thandlers.MakeScaleFunctionHandler(),\n\t\tSecrets: \t  \thandlers.MakeSecretHandler(),\n\t\tLogs: \t\t\thandlers.MakeLogsHandler(),\n\t\tInfo: \t\t\thandlers.MakeInfoHandler(),\n\t\tHealth: \t\thandlers.MakeHealthHandler(),\n\t}\n\n\tvar port int\n\tport = 8080\n\tbootstrapConfig := bootTypes.FaaSConfig{\n\t\tReadTimeout:  timeout,\n\t\tWriteTimeout: timeout,\n\t\tTCPPort:      \u0026port,\n\t}\n\n\tbootstrap.Serve(\u0026bootstrapHandlers, \u0026bootstrapConfig)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfaas%2Ffaas-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenfaas%2Ffaas-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfaas%2Ffaas-provider/lists"}