storage type as enum

This commit is contained in:
mr 2024-10-02 16:44:39 +02:00
parent 9d246ad180
commit d865ee2766

View File

@ -40,7 +40,8 @@ type URL struct {
type StorageResource struct { type StorageResource struct {
resource_model.AbstractResource // AbstractResource contains the basic fields of an object (id, name) resource_model.AbstractResource // AbstractResource contains the basic fields of an object (id, name)
Acronym string `bson:"acronym,omitempty" json:"acronym,omitempty"` // Acronym is the acronym of the storage Acronym string `bson:"acronym,omitempty" json:"acronym,omitempty"` // Acronym is the acronym of the storage
Type StorageType `bson:"type" json:"type" default:"0"` // Type is the type of the storage Type string `bson:"type,omitempty" json:"type,omitempty"` // Type is the type of the storage
SizeType StorageType `bson:"sizeType" json:"sizeType" default:"0"` // SizeType is the type of the storage size
Size uint `bson:"size,omitempty" json:"size,omitempty"` // Size is the size of the storage Size uint `bson:"size,omitempty" json:"size,omitempty"` // Size is the size of the storage
Url *URL `bson:"url,omitempty" json:"url,omitempty"` // Will allow to select between several protocols Url *URL `bson:"url,omitempty" json:"url,omitempty"` // Will allow to select between several protocols
Local bool `bson:"local" json:"local"` // Local is a flag that indicates if the storage is local Local bool `bson:"local" json:"local"` // Local is a flag that indicates if the storage is local