Docker template generator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

model.go 735B

1234567891011121314151617181920212223242526272829303132
  1. package model
  2. // Container models a docker container that is running on the system.
  3. type Container struct {
  4. Id string
  5. Name string
  6. Labels map[string]string
  7. }
  8. // LabelConfig describes the labels used for various properties.
  9. type LabelConfig struct {
  10. Hostnames string
  11. }
  12. // Hostname describes a DNS name used for proxying, retrieving certificates, etc.
  13. type Hostname struct {
  14. Name string
  15. Alternatives map[string]bool
  16. Containers []Container
  17. }
  18. // Config is the user-definable configuration for Dotege.
  19. type Config struct {
  20. Templates []TemplateConfig
  21. Labels LabelConfig
  22. }
  23. // TemplateConfig configures a single template for the generator.
  24. type TemplateConfig struct {
  25. Source string
  26. Destination string
  27. }