{backup,snapshot}: Log and display in control
This commit is contained in:
parent
3b112f1b8e
commit
630da9e12f
17 changed files with 294 additions and 44 deletions
17
internal/component/snapshots/log.go
Normal file
17
internal/component/snapshots/log.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package snapshots
|
||||
|
||||
import "github.com/FAU-CDI/wisski-distillery/internal/models"
|
||||
|
||||
func (backup *Backup) LogEntry() models.Snapshot {
|
||||
return models.Snapshot{
|
||||
Created: backup.StartTime,
|
||||
Slug: "",
|
||||
}
|
||||
}
|
||||
|
||||
func (snapshot *Snapshot) LogEntry() models.Snapshot {
|
||||
return models.Snapshot{
|
||||
Created: snapshot.StartTime,
|
||||
Slug: snapshot.Instance.Slug,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue