Documentation
¶
Index ¶
- Constants
- Variables
- func StorageAvailabilityCheck(cfgProvider func() storage.ProviderConfig) handlers.CheckFunc
- func ValidateAvailabilityByProvider(ctx context.Context, cfg storage.ProviderConfig) []error
- func ValidateConfiguredStorageProviders(ctx context.Context, cfg storage.ProviderConfig) []error
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.
Click to show internal directories.
Click to hide internal directories.