20 lines
345 B
Go
20 lines
345 B
Go
package config
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"gitea.maximumdirect.net/eric/distributor/internal/storage"
|
|
)
|
|
|
|
func NormalizeS3Prefix(prefix string) string {
|
|
return strings.Trim(prefix, "/")
|
|
}
|
|
|
|
func ValidateS3Prefix(prefix string) error {
|
|
return storage.ValidatePrefix(prefix)
|
|
}
|
|
|
|
func ForcePathStyle(value *bool) bool {
|
|
return value == nil || *value
|
|
}
|