kiln

package
v0.0.1-dev.53 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 3 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 Development

func Development(ctx context.Context, source string, start []string) (runtimecontract.Plan, error)

Development is the plan the development runtime follows for the app in source, started by start.

func Image

func Image(ctx context.Context, source string, start []string) (string, error)

Image is the Dockerfile that builds the image of the app in source, started by start.

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.

Jump to

Keyboard shortcuts

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