{"id":44265033,"url":"https://github.com/shawntoffel/faasgo","last_synced_at":"2026-02-10T18:14:30.797Z","repository":{"id":57565252,"uuid":"151002599","full_name":"shawntoffel/faasgo","owner":"shawntoffel","description":"swaggerless golang api client for the OpenFaaS gateway","archived":false,"fork":false,"pushed_at":"2020-09-28T04:32:04.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-13T16:49:18.475Z","etag":null,"topics":["api","client","golang","openfaas"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shawntoffel.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}},"created_at":"2018-09-30T20:09:58.000Z","updated_at":"2020-09-28T04:32:06.000Z","dependencies_parsed_at":"2022-08-23T12:30:51.951Z","dependency_job_id":null,"html_url":"https://github.com/shawntoffel/faasgo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/shawntoffel/faasgo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shawntoffel%2Ffaasgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shawntoffel%2Ffaasgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shawntoffel%2Ffaasgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shawntoffel%2Ffaasgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shawntoffel","download_url":"https://codeload.github.com/shawntoffel/faasgo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shawntoffel%2Ffaasgo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29310256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T17:48:59.043Z","status":"ssl_error","status_checked_at":"2026-02-10T17:45:37.240Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","client","golang","openfaas"],"created_at":"2026-02-10T18:14:30.080Z","updated_at":"2026-02-10T18:14:30.792Z","avatar_url":"https://github.com/shawntoffel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# faasgo\n\n[![GoDoc](https://godoc.org/github.com/shawntoffel/faasgo?status.svg)](https://godoc.org/github.com/shawntoffel/faasgo)  [![Go Report Card](https://goreportcard.com/badge/github.com/shawntoffel/faasgo)](https://goreportcard.com/report/github.com/shawntoffel/faasgo)\n\nswaggerless golang api client for the [OpenFaaS gateway](https://github.com/openfaas/faas)\n\n## Installation\n\n```bash\ngo get github.com/shawntoffel/faasgo\n```\n\n## Authentication\nOpenFaaS uses basic authentication. \n\n```\ngateway.SetBasicAuth(\"user\", \"password\")\n```\n\nIf you do not specify a user/pass with `SetBasicAuth` credentials are read from the following environment variables:\n```bash\nFAASGO_USER\nFAASGO_PASS\n```\n\nAlternatively, credentials can be read from a file where the file location is specified by the following environment variables:\n```bash\nFAASGO_USER_FILE\nFAASGO_PASS_FILE\n```\nThe file path may be a docker secret location. \n\n## Basic Usage\n\n```go\ngateway := faasgo.New(faasgo.DefaultUrl)\n\n// service, image, and envprocess are required.\nfunction := faasgo.Function{\n\tService:    \"nodeinfo\",\n\tImage:      \"functions/nodeinfo:latest\",\n\tEnvProcess: \"node main.js\",\n}\n\n// Deploy a function\nerr := gateway.DeployFunction(function)\nif err != nil {\n\tlog.Fatal(err)\n}\n\n// List deployed functions\nfunctions, err := gateway.ListFunctions()\nif err != nil {\n\tlog.Fatal(err)\n}\n\n// Invoke a function\nresp, err := gateway.Invoke(\"nodeinfo\", nil)\nif err != nil {\n\tlog.Fatal(err)\n}\n\nfmt.Println(string(resp))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshawntoffel%2Ffaasgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshawntoffel%2Ffaasgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshawntoffel%2Ffaasgo/lists"}