validators

package
v0.39.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: Apache-2.0 Imports: 17 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

Index

Constants

View Source
const (
	StorageValidationTimeout     = 10 * time.Second
	StorageCredentialSyncTimeout = 10 * time.Second
)

Variables

View Source
var (
	// ErrBucketNotFound is returned when a provider does not contain the expected bucket
	ErrBucketNotFound = errors.New("bucket not found")
)
View Source
var MimeTypeValidator storage.ValidationFunc = mimeTypeValidator

Functions

func StorageAvailabilityCheck

func StorageAvailabilityCheck(cfgProvider func() storage.ProviderConfig) handlers.CheckFunc

StorageAvailabilityCheck returns a handlers.CheckFunc that validates storage provider availability

func ValidateAvailabilityByProvider

func ValidateAvailabilityByProvider(ctx context.Context, cfg storage.ProviderConfig) []error

ValidateAvailabilityByProvider validates only providers that have EnsureAvailable enabled. This allows per-provider strict availability enforcement instead of a global setting.

func ValidateConfiguredStorageProviders

func ValidateConfiguredStorageProviders(ctx context.Context, cfg storage.ProviderConfig) []error

ValidateConfiguredStorageProviders checks connectivity and configuration of all enabled storage providers

Types

This section is empty.

Jump to

Keyboard shortcuts

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