kiln

package
v0.0.1-dev.47 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotLinked = errors.New("this holon was built without Kiln, which plans how an app installs, builds and starts; " +
	"install a release build: curl -fsSL https://holonlabs.ai/install.sh | sh")

Functions

func Image

func Image(ctx context.Context, request Request) (string, error)

Image is the Dockerfile that builds the image of the app request names.

func Run

func Run(ctx context.Context, source string, command Command) (string, error)

Run is the Dockerfile of an image that runs command in the app in source and holds only the command's stdout, stderr and exit status, as the files stdout, stderr and status.

Types

type Command

type Command struct {
	Argv     []string          `json:"command"`
	Mounts   map[string]string `json:"mounts,omitempty"`
	Overlay  string            `json:"overlay,omitempty"`
	Packages []string          `json:"packages,omitempty"`
}

Command is a command Kiln runs with no network in an app's image, without the app's build: Mounts names build contexts mounted read-only at the paths given, Overlay a build context copied over the app first, and Packages Python requirements the command can import besides the app's.

type Request

type Request struct {
	Source string
	Start  []string
}

type Steps

type Steps struct {
	Inputs  []string   `json:"inputs"`
	Install [][]string `json:"install"`
	Build   [][]string `json:"build"`
}

Steps are what a development environment runs in an app's source: Install whenever a file in Inputs changes, then Build.

func Development

func Development(ctx context.Context, source string) (Steps, error)

Development is what a development environment runs for the app in source.

Jump to

Keyboard shortcuts

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