23 lines
482 B
Go
23 lines
482 B
Go
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
|
|
}
|