example/

directory
v0.2.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2025 License: MIT

README

Examples

Folder containes examples about how to use openfaas go-sdk API for different supported operations. Each subfolder contains a main.go file which can be executed independently. Before running them, please expose relevant environment variables such as OPENFAAS_USERNAME, OPENFAAS_PASSWORD and OPENFAAS_GATEWAY_URL. Do note, these are not standard environment variables. You can change them in your usecase.

Below is list of examples

  1. Deploy Function
  2. Update Function
  3. Scale Function
  4. Get All Functions Of A Namespace
  5. Create Namespace
  6. Update Namespace
  7. Get All Namespaces
  8. Create Secret
  9. Update Secret
  10. Get Logs Of A Function

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL