artifacts

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 17 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

Overview

Package artifacts brings a remote job's declared paths back into the work tree (spec 8.4).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(acctDir, wt, job, archive string, declared []config.Artifact) error

Apply stages the archive and swaps declared paths in under the work tree's artifacts lock.

func Download

func Download(ctx context.Context, fetch func(off int64, w io.Writer) error, dst string, max int64) error

Download fetches with resume: after a failure it continues from the bytes it has, at most five attempts, and never writes more than max bytes.

func Validate

func Validate(archive string, declared []config.Artifact, lim config.ArtifactLimits) error

Validate checks the whole archive before anything is touched (spec 8.4).

Types

This section is empty.

Jump to

Keyboard shortcuts

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