Move status into a seperate package
This commit is contained in:
parent
4752c0fcec
commit
3fada6ad38
23 changed files with 220 additions and 197 deletions
23
internal/status/distillery.go
Normal file
23
internal/status/distillery.go
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
package status
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/config"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/models"
|
||||
)
|
||||
|
||||
// Distillery holds status and analytical data about a distillery
|
||||
type Distillery struct {
|
||||
Time time.Time // Time when this information was built
|
||||
|
||||
// Configuration of the distillery
|
||||
Config *config.Config
|
||||
|
||||
// number of instances
|
||||
TotalCount int
|
||||
RunningCount int
|
||||
StoppedCount int
|
||||
|
||||
Backups []models.Export // list of backups
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue