goless

command module
v0.0.0-...-0c31e83 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

Goless

Goless is a serverless platform for Golang.

Functions

Here's an example of all you need to run your serverless function:

apiVersion: goless.io/v1beta1
kind: Function
metadata:
  name: function-sample
spec:
  service: "sample"
  serverPort: 9000
  function: |
    package handlers
    import (
      "net/http"
    )
    func Handler(w http.ResponseWriter, r *http.Request) {
      w.Write([]byte("This works!"))
    }

Deploying

Either use the Makefile to deploy or the following commands (you will need kustomize)

CRDs

kustomize build config/crd | kubectl apply -f -

Controller

kustomize build config/default | kubectl apply -f -

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1beta1
Package v1 contains API Schema definitions for the goless v1 API group +kubebuilder:object:generate=true +groupName=goless.io
Package v1 contains API Schema definitions for the goless v1 API group +kubebuilder:object:generate=true +groupName=goless.io

Jump to

Keyboard shortcuts

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