limits

package
v0.9.10 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 5 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 limits reads the instance limits that also decide whether a config is valid (image pixels, reference expansion, aggregation, trigger chains) from the environment. `backd config check` applies them without the server's settings, so this package never imports the server's packages.

Index

Constants

View Source
const DefaultImageMaxPixels = 40_000_000

DefaultImageMaxPixels is the pixel limit for image versions when none is set.

Variables

This section is empty.

Functions

func Aggregate

func Aggregate(getenv func(string) string) (registry.AggregateLimits, error)

Aggregate reads the instance's aggregation limits (BACKD_AGGREGATE_TIME and BACKD_AGGREGATE_MAX_GROUPS). A collection's aggregate.limits may only lower them.

func Expand

func Expand(getenv func(string) string) (registry.ExpandLimits, error)

Expand reads the instance's reference expansion limits (BACKD_EXPAND_MAX_DEPTH, _PATHS, _ARRAY and _DOCS). A collection's reference may only lower the array limit.

func ImageMaxPixels

func ImageMaxPixels(getenv func(string) string) (int64, error)

ImageMaxPixels reads BACKD_IMAGE_MAX_PIXELS: a positive number of pixels.

func Trigger

func Trigger(getenv func(string) string) (registry.TriggerLimits, error)

Trigger reads the instance's trigger limits: BACKD_TRIGGER_MAX_CHAIN, how deep a chain of writes caused by trigger runs may go. A realm's `triggers:` may only lower it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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