package
0.0.0-20220204064237-318d958e4253
Repository: https://github.com/ngduchai/faas-netes.git
Documentation: pkg.go.dev

# Functions

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 ofsecrets 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.
ValidateDeployRequest validates that the service name is valid for Kubernetes.

# Constants

OrchestrationIdentifier identifier string for provider orchestration.
ProviderName name of the provider.

# Type aliases

NamespaceResolver is a method that determines the requested namespace corresponding to an HTTP request.