author

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 18 Imported by: ? 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

Overview

Package author builds and seals packages without selecting a product or contract.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, o Options, command []string) error

Build runs the author's explicit command in an isolated source copy, then packs its declared outputs. The command is executed directly, never interpreted by an implicit shell.

func Pack

func Pack(o Options) error

Pack writes a new ZIP. It never overwrites existing output or installs/trusts a package.

func Prepare

func Prepare(o Options) (staging string, m packagekit.Manifest, err error)

Prepare copies only declared artifacts, filters explicit targets and seals a private staging directory. Existing hashes and revisions are never silently replaced. The caller removes staging.

func Read

func Read(source string) (packagekit.Manifest, error)

Read accepts an ext.json template. Full validation occurs before any artifact is opened.

func ReadAt

func ReadAt(source, manifestPath string) (packagekit.Manifest, error)

Types

type Options

type Options struct{ Source, Output, OS, Arch, ManifestPath string }

Jump to

Keyboard shortcuts

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