functions

package module
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

README

funcd-functions

Example functions and Apps that funcd deploys in its Lima lanes, the end-to-end tests that run funcd on containerd. An example App holds the kinds its scenarios need, such as TypeScript and Python functions, Workflows, ConfigMaps, Secret declarations and catalogs. Each one is configured to catch a scenario that only a real runtime shows, such as a cold start, a daemon restart, data on disk or the real edge.

Apps

  • apps/todo: the to-do App of funcd's App design, deployed by funcd's app-todo lane.
  • apps/todo-shared: the App that the to-do App requires, deployed by the same lane.

How funcd uses this repository

funcd pins this repository as a Go module in its go.mod, as it pins funcd-typescript and funcd-python (funcd's ADR-0141). A lane names this module in funcd's scripts/lanes.yaml, and funcd reads its files from the Go module cache, so a change reaches funcd only through a release and a go get in funcd:

  1. Change this repository and release it with a tag vX.Y.Z.
  2. In funcd, run go get github.com/pyvvo/funcd-functions@vX.Y.Z and open a pull request.

To test an unreleased change, clone this repository next to funcd and add a local go.work in funcd (go work init . ../funcd-functions). Git ignores it; never commit it.

Develop

nix develop -c just ci

It type-checks and rebuilds every App's TypeScript functions, failing when a committed bundle differs from its source, and checks every App's Python functions with ruff and mypy. The dev shell also installs the git hooks. They format and lint staged files, check the commit message, and run the checks before a push.

License

Apache License 2.0. See LICENSE.

Documentation

Overview

Package functions holds the example functions and Apps that funcd's Lima lanes deploy. funcd pins this module in its go.mod, as it pins the language repos (ADR-0141), and reads its files from the module cache: scripts/moddir.sh in the lanes and internal/testkit/langmod in the tests.

Index

Constants

View Source
const Module = "github.com/pyvvo/funcd-functions"

Module is this module's path, as funcd's go.mod requires it.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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