Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
refactor: #164 rename module
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Feb 13, 2022
1 parent 22c7b85 commit 4410982
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 34 deletions.
34 changes: 0 additions & 34 deletions server-go/collection/entity.go

This file was deleted.

33 changes: 33 additions & 0 deletions server-go/collections/entity.go
Original file line number Diff line number Diff line change
@@ -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"`
}

0 comments on commit 4410982

Please sign in to comment.