Documentation ¶
Index ¶
- Constants
- func MakeDeleteHandler(config *types.ProviderConfig, jobs services.Jobs, logger hclog.Logger) func(w http.ResponseWriter, r *http.Request)
- func MakeDeployHandler(config *types.ProviderConfig, jobFactory services.JobFactory, ...) func(w http.ResponseWriter, r *http.Request)
- func MakeFunctionReader(config *types.ProviderConfig, jobs services.Jobs, logger hclog.Logger) func(w http.ResponseWriter, r *http.Request)
- func MakeHealthHandler() http.HandlerFunc
- func MakeInfoHandler(version, sha string) http.HandlerFunc
- func MakeListNamespaceHandler(config *types.ProviderConfig) func(w http.ResponseWriter, r *http.Request)
- func MakeReplicaReader(config *types.ProviderConfig, client services.Jobs, logger hclog.Logger) http.HandlerFunc
- func MakeReplicaUpdater(config *types.ProviderConfig, client services.Jobs, logger hclog.Logger) func(w http.ResponseWriter, r *http.Request)
- func MakeSecretHandler(secrets services.Secrets, logger hclog.Logger) http.HandlerFunc
- type SecretsResponse
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 ¶
Click to show internal directories.
Click to hide internal directories.