First batch

This commit is contained in:
pb
2024-07-16 10:56:36 +02:00
parent 5ba33d3131
commit 034a81cedb
19 changed files with 540 additions and 30 deletions

View File

@@ -1 +1,22 @@
package oclib
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
}