handlers

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderContentType   = "Content-Type"
	TypeApplicationJson = "application/json"

	EnvProcessName = "fprocess"
)
View Source
const (
	OrchestrationIdentifier = "nomad"
	ProviderName            = "faas-nomad"
)

Variables

This section is empty.

Functions

func MakeDeleteHandler

func MakeDeleteHandler(config *types.ProviderConfig, jobs services.Jobs, logger hclog.Logger) func(w http.ResponseWriter, r *http.Request)

func MakeDeployHandler

func MakeDeployHandler(config *types.ProviderConfig, jobFactory services.JobFactory, jobs services.Jobs, secrets services.Secrets, logger hclog.Logger) func(w http.ResponseWriter, r *http.Request)

func MakeFunctionReader

func MakeFunctionReader(config *types.ProviderConfig, jobs services.Jobs, logger hclog.Logger) func(w http.ResponseWriter, r *http.Request)

func MakeHealthHandler

func MakeHealthHandler() http.HandlerFunc

func MakeInfoHandler

func MakeInfoHandler(version, sha string) http.HandlerFunc

func MakeListNamespaceHandler

func MakeListNamespaceHandler(config *types.ProviderConfig) func(w http.ResponseWriter, r *http.Request)

func MakeReplicaReader

func MakeReplicaReader(config *types.ProviderConfig, client services.Jobs, logger hclog.Logger) http.HandlerFunc

func MakeReplicaUpdater

func MakeReplicaUpdater(config *types.ProviderConfig, client services.Jobs, logger hclog.Logger) func(w http.ResponseWriter, r *http.Request)

func MakeSecretHandler

func MakeSecretHandler(secrets services.Secrets, logger hclog.Logger) http.HandlerFunc

Types

type SecretsResponse

type SecretsResponse struct {
	StatusCode int
	Body       []byte
}

Jump to

Keyboard shortcuts

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