{backup,snapshot}: Rename common code to export
This commit is contained in:
parent
b3a827e042
commit
bf57c0d5a6
14 changed files with 145 additions and 133 deletions
|
|
@ -2,15 +2,15 @@ package snapshots
|
|||
|
||||
import "github.com/FAU-CDI/wisski-distillery/internal/models"
|
||||
|
||||
func (backup *Backup) LogEntry() models.Snapshot {
|
||||
return models.Snapshot{
|
||||
func (backup *Backup) LogEntry() models.Export {
|
||||
return models.Export{
|
||||
Created: backup.StartTime,
|
||||
Slug: "",
|
||||
}
|
||||
}
|
||||
|
||||
func (snapshot *Snapshot) LogEntry() models.Snapshot {
|
||||
return models.Snapshot{
|
||||
func (snapshot *Snapshot) LogEntry() models.Export {
|
||||
return models.Export{
|
||||
Created: snapshot.StartTime,
|
||||
Slug: snapshot.Instance.Slug,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue