document

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package document contains shared bounded document reading for source adapters.

Index

Constants

View Source
const DefaultMaxBytes int64 = 8 << 20

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte, decoder x.Decoder, name, revision string) (x.Layer, error)

Decode attaches a fallback location and content hash without modifying the input.

func Read

func Read(ctx context.Context, r io.Reader, limit int64) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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