validation

package
v0.3.196 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCompressionFlag

func ValidateCompressionFlag(compression string) error

ValidateCompressionFlag checks if the --compression flag has a valid value. This can be "gzip" (soon to be legacy) or "zstd" (what we'd like to be the default)

func ValidateCompressionLevelFlag

func ValidateCompressionLevelFlag(level int) error

ValidateCompressionLevelFlag checks if the --compression-level flag has a value between 0 and 9. This is what is currently supported by Depot Builder (they map these to proper zstd compression levels)

Types

This section is empty.

Jump to

Keyboard shortcuts

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