Help us shape the future of Go! Take the 2026 Go Developer Survey

openfaas_go_sdk

package module
v0.0.0-...-71a0200 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

README

openfaas_go_sdk

Helper functions for go based OpenFaaS functions

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSecretPath string = "/var/openfaas/secrets/"

DefaultSecretPath points to the default secret path, defined in openfaas

Functions

func GetSecret

func GetSecret(secretName string) ([]byte, error)

GetSecret fetches the the Secret identified by secretName from the openfaas Secrets folder.

Most of the function is copied from the openfaas docs.

func GetSecretAsInt

func GetSecretAsInt(secretName string) (int, error)

GetSecretAsInt converts the data from GetSecret to int

func GetSecretAsString

func GetSecretAsString(secretName string) (string, error)

GetSecretAsString converts the data from GetSecret to string

Types

This section is empty.

Jump to

Keyboard shortcuts

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