diff --git a/server-go/collection/entity.go b/server-go/collection/entity.go deleted file mode 100644 index 4ff7f96f..00000000 --- a/server-go/collection/entity.go +++ /dev/null @@ -1,34 +0,0 @@ -package collection - -import ( - "github.com/riotkit-org/backup-repository/config" - "github.com/riotkit-org/backup-repository/security" -) - -type StrategySpec struct { - KeepLastOlderNotMoreThan string `json:"keepLastOlderNotMoreThan"` - MaxOlderCopies int `json:"maxOlderCopies"` -} - -type BackupWindow struct { - From string `json:"from"` - Duration string `json:"duration"` -} - -type BackupWindows []BackupWindow - -type Spec struct { - Description string `json:"description"` - FilenameTemplate string `json:"filenameTemplate"` - MaxBackupsCount int `json:"maxBackupsCount"` - MaxOneVersionSize string `json:"maxOneVersionSize"` - MaxCollectionSize string `json:"maxCollectionSize"` - Windows BackupWindows `json:"windows"` - StrategyName string `json:"strategyName"` - StrategySpec StrategySpec `json:"strategySpec"` - AccessControl security.AccessControlList `json:"accessControl"` -} - -type Collection struct { - Metadata config.ObjectMetadata `json:"metadata"` -} diff --git a/server-go/collections/entity.go b/server-go/collections/entity.go index 0224625c..3d3ea064 100644 --- a/server-go/collections/entity.go +++ b/server-go/collections/entity.go @@ -1 +1,34 @@ package collections + +import ( + "github.com/riotkit-org/backup-repository/config" + "github.com/riotkit-org/backup-repository/security" +) + +type StrategySpec struct { + KeepLastOlderNotMoreThan string `json:"keepLastOlderNotMoreThan"` + MaxOlderCopies int `json:"maxOlderCopies"` +} + +type BackupWindow struct { + From string `json:"from"` + Duration string `json:"duration"` +} + +type BackupWindows []BackupWindow + +type Spec struct { + Description string `json:"description"` + FilenameTemplate string `json:"filenameTemplate"` + MaxBackupsCount int `json:"maxBackupsCount"` + MaxOneVersionSize string `json:"maxOneVersionSize"` + MaxCollectionSize string `json:"maxCollectionSize"` + Windows BackupWindows `json:"windows"` + StrategyName string `json:"strategyName"` + StrategySpec StrategySpec `json:"strategySpec"` + AccessControl security.AccessControlList `json:"accessControl"` +} + +type Collection struct { + Metadata config.ObjectMetadata `json:"metadata"` +}