function

package
v0.0.0-...-d4b8dfd Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Source = "git-tar"
	GitLab = "gitlab"
	GitHub = "github"
)

Source of this event for auditing

Variables

This section is empty.

Functions

func GitHubCloneURL

func GitHubCloneURL(pushEvent sdk.PushEvent) (string, error)

func GitLabCloneURL

func GitLabCloneURL(pushEvent sdk.PushEvent) (string, error)

func Handle

func Handle(req []byte) []byte

Handle clones the git repo and checks out the SHA then uses the OpenFaaS CLI to shrinkwrap a tarball to be build with Docker

Types

type GarbageRequest

type GarbageRequest struct {
	Functions []string `json:"functions"`
	Repo      string   `json:"repo"`
	Owner     string   `json:"owner"`
}

Jump to

Keyboard shortcuts

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