Help us shape the future of Go! Take the 2026 Go Developer Survey

supervisor

package
v0.19.1276 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package supervisor provides the actions-supervisor: a small POSIX shell script Nuon mounts into an image-backed action's container and runs via the image's own /bin/sh. It installs the nuon_output helper and runs the rendered step script. Shipping it as a shell script (rather than a compiled binary) means it runs in any base image that has a shell — which image-backed actions require anyway, since command, inline_contents, and repo-backed scripts all run as a shell script — with no arch/libc/static-linking concerns.

Index

Constants

View Source
const (
	// OutputFilepathEnvVar names the file the nuon_output helper appends to.
	OutputFilepathEnvVar = "NUON_ACTIONS_OUTPUT_FILEPATH"
	// RootEnvVar names the workspace root inside the container.
	RootEnvVar = "NUON_ACTIONS_ROOT"

	// Filename is the supervisor script name written into the workspace.
	Filename = ".nuon-actions-supervisor.sh"
)

Variables

View Source
var Script []byte

Functions

func Write

func Write(dir string) (string, error)

Write writes the embedded supervisor script into dir and returns its path. It refuses to follow a pre-existing symlink at the destination: the script lands in the shared workspace, where a prior image-backed action container could have planted one to redirect the write to a host file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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