assetlimits

package
v0.0.0-...-7c75ef6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 0 Imported by: 1 module, 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 assetlimits holds size ceilings shared by both sides of the inbound-attachment upload path: pkg/memory/httpsrv (the operator's POST /inbound-asset route, which enforces the ceiling) and pkg/channels/channelsd/pipeline (which clamps its own pre-fetch size check to the same number, so a file the operator will reject is never downloaded in full first). It exists ONLY to let the two import one constant without either importing the other.

It deliberately has NO dependencies — not even pkg/memory — and must stay that way. pipeline is reachable from the browser-facing pkg/web/webui/chat (via pipelinehost), and pkg/memory/httpsrv pulls in pkg/memory/provenance (the audit-signing package), so pipeline importing httpsrv just to read one integer hands the browser-facing package a transitive import of the signing path. TestChatPackageNeverImportsProvenance (pkg/web/webui/chat/session_test.go) fails on that edge. Do not "simplify" this back into httpsrv, and do not add an import here without first checking it does not reintroduce the same problem one hop removed.

Index

Constants

View Source
const MaxInboundAssetBytes = 25 << 20 // 25 MiB

MaxInboundAssetBytes hard-caps a single inbound attachment upload: the operator's absolute ceiling for the non-native (extracted) path, independent of whatever a Channel's spec.attachments.maxSizeBytes says. pkg/memory/httpsrv.MaxInboundAssetBytes aliases it; pipeline imports THIS package directly.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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