package
0.0.0-20250305161301-96fbd44bcd00
Repository: https://github.com/openfaas/faas-netes.git
Documentation: pkg.go.dev
# Functions
Check checks the OpenFaaS installation against the OpenFaaS CE EULA which this code is licensed under.
ListNamespaces lists all namespaces annotated with openfaas true.
MakeDeleteHandler delete a function.
MakeDeployHandler creates a handler to create new functions in the cluster.
MakeFunctionReader handler for reading functions deployed in the cluster as deployments.
MakeHealthHandler returns 200/OK when healthy.
MakeInfoHandler creates handler for /system/info endpoint.
MakeNamespacesLister builds a list of namespaces with an "openfaas" tag, or the default name.
MakeReplicaReader reads the amount of replicas for a deployment.
MakeReplicaUpdater updates desired count of replicas.
MakeSecretHandler makes a handler for Create/List/Delete/Update of secrets in the Kubernetes API.
MakeUpdateHandler update specified function.
NewNamespaceResolver returns a generic namespace resolver that will inspect both the GET query parameters and the request body.
ProcessErrorReasons maps k8serrors.ReasonForError to http status codes.
No description provided by the author
ValidateDeployRequest validates that the service name is valid for Kubernetes.
# Constants
MaxFunctions licensed for OpenFaaS CE is 15 a license for OpenFaaS Standard is required to increase this limit.
MaxReplicas licensed for OpenFaaS CE is 5/5 a license for OpenFaaS Standard is required to increase this limit.
OrchestrationIdentifier identifier string for provider orchestration.
ProviderName name of the provider.
# Structs
SecretsHandler enabling to create openfaas secrets across namespaces.
# Type aliases
NamespaceResolver is a method that determines the requested namespace corresponding to an HTTP request.