oc-lib/storage.go

23 lines
529 B
Go
Raw Normal View History

2024-07-04 16:08:59 +02:00
package oclib
2024-07-16 10:56:36 +02:00
type URL struct {
Protocol string `json:"protocol"`
Path string `json:"path"`
}
type Storage struct {
Resource `json:"resource" required:"true"`
Capacity uint `json:"capacity" required:"true"`
Url URL `json:"URL" ` // Will allow to select between several protocols
Encryption bool `json:"encryption" `
Redundancy string `json:"redundancy" `
Throughput string `json:"throughput" `
BookingPrice uint `json:"bookingPrice" `
}
func (s *Storage) GetType() ResourceType{
return STORAGE
}