function

package
v0.0.0-...-f1c27b4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GitHub SCM
	GitHub = "github"
	// GitLab SCM
	GitLab = "gitlab"
)

Variables

This section is empty.

Functions

func Handle

func Handle(req []byte) string

Handle submits the tar to the of-builder then configures an OpenFaaS deployment based upon stack.yml found in the Git repo. Finally starts a rolling deployment of the function.

Types

type CPULimits

type CPULimits struct {
	Limit     string
	Requests  string
	Available bool
}

type FunctionResources

type FunctionResources struct {
	Memory string `json:"memory,omitempty"`
	CPU    string `json:"cpu,omitempty"`
}

type Limits

type Limits struct {
	Memory string
	CPU    string
}

Jump to

Keyboard shortcuts

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