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 ¶
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 ¶
ImageMaxPixels reads BACKD_IMAGE_MAX_PIXELS: a positive number of pixels.
Types ¶
This section is empty.