Knative Functions client API and CLI
Go to file
Luke K cedda96896
license
2020-07-08 02:04:02 +00:00
appsody rename Service Function to simply Function 2020-07-02 14:52:27 +00:00
buildpacks update language references to associated runtime 2020-07-02 13:18:19 +00:00
cmd v0.2.1 2020-07-08 02:00:52 +00:00
docker docker-based pusher implementation 2020-04-11 19:43:38 +00:00
embedded update language references to associated runtime 2020-07-02 13:18:19 +00:00
k8s moved cluster config notes and yamls to dedicated config repo 2020-04-15 16:57:44 +00:00
kn references to client now faas root package 2020-05-11 00:21:17 +00:00
knative Merge remote-tracking branch 'matej/imprv-deploy' into develop 2020-07-08 01:59:46 +00:00
kubectl final url print placeholder 2020-05-23 01:25:12 +00:00
mock tests to runtime 2020-07-02 14:36:48 +00:00
progress pass in ticker channel 2020-05-29 13:57:38 +00:00
prompt add vars to prompt tests 2020-06-16 14:30:46 +00:00
templates move js template to quarkus runtime 2020-07-02 13:07:51 +00:00
testdata tests to runtime 2020-07-02 14:36:48 +00:00
.gitignore gitignore go.mod from go templates 2020-06-11 12:25:36 +00:00
LICENSE license 2020-07-08 02:04:02 +00:00
README.md rename Service Function to simply Function 2020-07-02 14:52:27 +00:00
client.go rename Service Function to simply Function 2020-07-02 14:52:27 +00:00
client_test.go rename Service Function to simply Function 2020-07-02 14:52:27 +00:00
client_unit_test.go separate function from client to enable contextless methods such as List 2020-05-11 00:12:19 +00:00
config.go rename language to runtime 2020-07-02 13:06:54 +00:00
function.go rename language to runtime 2020-07-02 13:06:54 +00:00
function_unit_test.go rename Service Function to simply Function 2020-07-02 14:52:27 +00:00
go.mod Merge remote-tracking branch 'matej/imprv-deploy' into develop 2020-07-08 01:59:46 +00:00
go.sum Merge remote-tracking branch 'matej/imprv-deploy' into develop 2020-07-08 01:59:46 +00:00
pkged.go rebuild templates using runtime names 2020-07-02 16:45:02 +00:00

README.md

faas

Function as a Service CLI

Setup and Configuration

With Go 1.13+ installed, build and install the binary to your path:

go install

Install dependent binaries:

Configure Boson appsody stack repository:

appsody repo add boson https://github.com/boson-project/stacks/releases/latest/download/boson-index.yaml

Configure Image repository:

Both the image repository and user/org namespace need to be defined either by using the --registry and --namespace flags on the create command, or by configuring as environment variables. For example to configure all images to be pushed to quay.io/alice, use:

export FAAS_REGISTRY=quay.io
export FAAS_NAMESPACE=alice

Cluster connection:

It is expected that kubectl and kn be configured to connect to a kubernetes cluster with the following configuration:

  • Knative Serving and Eventing
  • Knative Domains patched to enable your chosen domain
  • Knative Network patched to enable subdomains
  • Kourier
  • Cert-manager

see https://github.com/boson-project/config for cluster setup and configuration details.

Usage

See help:

faas

Examples

Create a new Function:

> mkdir -p example.com/www
> cd example.com/www
> faas create go
https://www.example.com
> curl https://www.example.com
OK