content

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 6 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 content streams plaintext payloads independently of Artifact IR and storage.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSizeMismatch   = errors.New("payload size mismatch")
	ErrDigestMismatch = errors.New("payload digest mismatch")
)

Functions

func VerifyCopy

func VerifyCopy(ctx context.Context, dst io.Writer, src io.Reader, ref artifact.PayloadRef) error

VerifyCopy streams plaintext from src to dst and verifies its size and SHA-256. Both streams are borrowed; the caller owns opening and closing them, and resolving or decrypting the source independently of the plaintext digest. Bytes written before success are unverified: callers must stage them and only publish/use the destination after VerifyCopy returns nil. Cancellation is checked between reads and writes. The caller must arrange interruption of blocking I/O when required.

Types

This section is empty.

Jump to

Keyboard shortcuts

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