registry.go 617 B

1234567891011121314151617181920212223242526272829
  1. package types
  2. type Registry struct {
  3. ID uint `json:"id"`
  4. // The project that this integration belongs to
  5. ProjectID uint `json:"project_id"`
  6. // Name of the registry
  7. Name string `json:"name"`
  8. // URL of the registry
  9. URL string `json:"url"`
  10. // The integration service for this registry
  11. Service RegistryService `json:"service"`
  12. // The infra id, if registry was provisioned with Porter
  13. InfraID uint `json:"infra_id"`
  14. }
  15. type RegistryService string
  16. const (
  17. GCR RegistryService = "gcr"
  18. ECR RegistryService = "ecr"
  19. DOCR RegistryService = "docr"
  20. DockerHub RegistryService = "dockerhub"
  21. )