client

package
v0.0.0-...-d52247b Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 9

Documentation

Index

Constants

View Source
const (
	MaximumRequestBodySize = 10 * 1024 * 1024 // bytes
)

Variables

This section is empty.

Functions

func CurrentProvider

func CurrentProvider() (provider.Provider, error)

func EnvAsHeader

func EnvAsHeader(req *http.Request, selectedEnv []string)

func Invoke

func Invoke(provider provider.Provider, ireq InvokeRequest) (*http.Response, error)

Invoke calls the fn invoke API

Types

type InvokeRequest

type InvokeRequest struct {
	URL         string
	Content     io.Reader
	Env         []string
	ContentType string
}

InvokeRequest are the parameters provided to Invoke

Jump to

Keyboard shortcuts

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