Rename snapshots.Manager => exporter.Exporter
This commit is contained in:
parent
063f3f9b7d
commit
8d2855fdcb
23 changed files with 105 additions and 100 deletions
17
internal/component/exporter/log.go
Normal file
17
internal/component/exporter/log.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package exporter
|
||||
|
||||
import "github.com/FAU-CDI/wisski-distillery/internal/models"
|
||||
|
||||
func (backup *Backup) LogEntry() models.Export {
|
||||
return models.Export{
|
||||
Created: backup.StartTime,
|
||||
Slug: "",
|
||||
}
|
||||
}
|
||||
|
||||
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