Documentation
¶
Overview ¶
Package release wires a proxy's synthetic archive into a chisel-releases checkout for the forwarded chisel verbs (`cut`, `info`): it copies the checkout to a temp dir and adds a low-priority archive entry plus the ephemeral public key to the copy's chisel.yaml, leaving the user's checkout untouched. It also renders the same blocks as text for `serve` mode to print.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Inject ¶
func Inject(src string, a *apt.Archive, version string, slicePaths []string) (dir string, cleanup func() error, err error)
Inject copies the chisel-releases checkout at src into a fresh temp directory, adds the proxy archive (with the ephemeral public key inline) to that copy's chisel.yaml, and splices each package slices file in slicePaths into the copy's slices/ directory (by basename, overwriting). It returns the copy's path and a cleanup function. If version is "" it is taken from an existing archive entry. The user's checkout is never modified.
Types ¶
This section is empty.