template.go 634 B

123456789101112131415161718192021
  1. package models
  2. import (
  3. "time"
  4. )
  5. type Template struct {
  6. ID string `json:"id"`
  7. Name string `json:"name"`
  8. Description string `json:"description"`
  9. Dockerfile string `json:"dockerfile"`
  10. DockerCompose string `json:"docker_compose"`
  11. ConfigTemplate string `json:"config_template"` // For generating client-specific configs
  12. ResourceRequirements struct {
  13. CPU int `json:"cpu"`
  14. MemoryMB int `json:"memory_mb"`
  15. DiskGB int `json:"disk_gb"`
  16. } `json:"resource_requirements"`
  17. CreatedAt time.Time `json:"created_at"`
  18. UpdatedAt time.Time `json:"updated_at"`
  19. }