upopenfaas

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

Documentation

Index

Constants

View Source
const (
	// Environment variable used by appsctl to find OpenFaaS
	EnvGatewayURL = "OPENFAAS_URL"

	// YAML file for deployment.
	ManifestYaml = "manifest.yml"
)

Variables

This section is empty.

Functions

func DeployApp

func DeployApp(bundlePath string, log utils.Logger, shouldUpdate bool, gateway, prefix string) (*apps.Manifest, error)

DeployApp creates OpenFaaS functions from an app bundle, as declared by the app's manifest.

func FunctionName

func FunctionName(appID apps.AppID, version apps.AppVersion, name string) string

func RootURL

func RootURL(m apps.Manifest, gateway, path string) (string, error)

Types

type Upstream

type Upstream struct {
	uphttp.Upstream

	Gateway string
}

func MakeUpstream

func MakeUpstream(httpOut httpout.Service, devMode bool) (*Upstream, error)

Jump to

Keyboard shortcuts

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