Documentation
¶
Overview ¶
Package author builds and seals packages without selecting a product or contract.
Index ¶
- func Build(ctx context.Context, o Options, command []string) error
- func Pack(o Options) error
- func Prepare(o Options) (staging string, m packagekit.Manifest, err error)
- func Read(source string) (packagekit.Manifest, error)
- func ReadAt(source, manifestPath string) (packagekit.Manifest, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
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 ¶
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.