package
Version:
v0.0.0-...-4caa0be
Opens a new window with list of versions in this module.
Published: Jun 24, 2024
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Handler struct {
DB *gorm.DB
}
func (h *Handler) GetListOfRunningTasks(c echo.Context) error
func (h *Handler) GetSingleTaskInformation(c echo.Context) error
func (h *Handler) InitRoutes(e *echo.Echo)
type Resources struct {
Memory int64 `json:"memory"`
Cpus float32 `json:"cpus"`
}
type ScaleConfig struct {
TaskName string `json:"taskName"`
MinTaskScale int `json:"minTaskScale"`
MaxTaskScale int `json:"maxTaskScale"`
ScalingStrategy string `json:"scalingStrategy"`
}
type TaskMetrics struct {
ContainerId string `json:"containerId"`
TaskName string `json:"taskName"`
Stats types.StatsJSON `json:"stats"`
}
type TaskResponse struct {
ID string `json:"id"`
Name string `json:"name"`
Image string `json:"image"`
State string `json:"state"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.