light modification

This commit is contained in:
mr 2025-01-16 15:25:44 +01:00
parent d9c9f05cd2
commit a4a249bab8

View File

@ -22,7 +22,7 @@ func (t StorageSize) String() string {
return [...]string{"GB", "MB", "KB", "TB"}[t]
}
func (t StorageSize) SizeList() []StorageSize {
func SizeList() []StorageSize {
return []StorageSize{GB, MB, KB, TB}
}
@ -49,6 +49,6 @@ func (t StorageType) String() string {
return [...]string{"FILE", "STREAM", "API", "DATABASE", "S3", "MEMORY", "HARDWARE"}[t]
}
func (t StorageType) TypeList() []StorageType {
func TypeList() []StorageType {
return []StorageType{FILE, STREAM, API, DATABASE, S3, MEMORY, HARDWARE}
}