cmd

package
v0.6.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCacheMaxSizeRequired is returned if --cache-lru-schedule was given but not --cache-max-size.
	ErrCacheMaxSizeRequired = errors.New("--cache-max-size is required when --cache-lru-schedule is specified")

	// ErrStorageConfigRequired is returned if neither local nor S3 storage is configured.
	ErrStorageConfigRequired = errors.New("either --cache-storage-local or --cache-storage-s3-bucket is required")

	ErrS3ConfigIncomplete = errors.New(
		"S3 requires --cache-storage-s3-endpoint, --cache-storage-s3-access-key-id, and --cache-storage-s3-secret-access-key",
	)

	// ErrStorageConflict is returned if both local and S3 storage are configured.
	ErrStorageConflict = errors.New("cannot use both --cache-storage-local and --cache-storage-s3-bucket")

	// ErrUpstreamCacheRequired is returned if no upstream cache is configured.
	ErrUpstreamCacheRequired = errors.New("at least one --cache-upstream-url is required")
)
View Source
var Version = "dev"

Version defines the version of the binary, and is meant to be set with ldflags at build time.

Functions

func New

func New() (*cli.Command, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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