2026-04-29 10:58:09 +00:00
|
|
|
package handler
|
|
|
|
|
|
2026-07-15 02:57:32 +00:00
|
|
|
import "github.com/Tencent/WeKnora/internal/storageallowlist"
|
2026-04-29 10:58:09 +00:00
|
|
|
|
|
|
|
|
func getSupportedStorageProviders() []string {
|
2026-07-15 02:57:32 +00:00
|
|
|
return storageallowlist.Supported()
|
2026-04-29 10:58:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func getAllowedStorageProviders() map[string]bool {
|
2026-07-15 02:57:32 +00:00
|
|
|
return storageallowlist.AllowedMap()
|
2026-04-29 10:58:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func isStorageProviderAllowed(provider string) bool {
|
2026-07-15 02:57:32 +00:00
|
|
|
return storageallowlist.IsAllowed(provider)
|
2026-04-29 10:58:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func firstAllowedStorageProvider() string {
|
2026-07-15 02:57:32 +00:00
|
|
|
return storageallowlist.FirstAllowed()
|
2026-04-29 10:58:09 +00:00
|
|
|
}
|