2
0

integrations.go 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package types
  2. // PorterIntegration is a supported integration service, specifying an auth
  3. // mechanism and the category of integration. A single service can have multiple
  4. // auth mechanisms. For example, a GKE integration can have both an "oauth" mechanism
  5. // and a "gcp" mechanism:
  6. //
  7. // PorterIntegration{
  8. // AuthMechanism: "oauth",
  9. // Category: "cluster",
  10. // Service: GKE,
  11. // }
  12. //
  13. // PorterIntegration{
  14. // AuthMechanism: "gcp",
  15. // Category: "cluster",
  16. // Service: GKE,
  17. // }
  18. type PorterIntegration struct {
  19. AuthMechanism string `json:"auth_mechanism"`
  20. Category string `json:"category"`
  21. Service string `json:"service"`
  22. }
  23. // PorterClusterIntegrations are the supported cluster integrations
  24. var PorterClusterIntegrations = []PorterIntegration{
  25. {
  26. AuthMechanism: "gcp",
  27. Category: "cluster",
  28. Service: string(GKE),
  29. },
  30. {
  31. AuthMechanism: "aws",
  32. Category: "cluster",
  33. Service: string(EKS),
  34. },
  35. {
  36. AuthMechanism: "kube",
  37. Category: "cluster",
  38. Service: string(Kube),
  39. },
  40. }
  41. // PorterRegistryIntegrations are the supported registry integrations
  42. var PorterRegistryIntegrations = []PorterIntegration{
  43. {
  44. AuthMechanism: "gcp",
  45. Category: "registry",
  46. Service: string(GCR),
  47. },
  48. {
  49. AuthMechanism: "gcp",
  50. Category: "registry",
  51. Service: string(GAR),
  52. },
  53. {
  54. AuthMechanism: "aws",
  55. Category: "registry",
  56. Service: string(ECR),
  57. },
  58. {
  59. AuthMechanism: "basic",
  60. Category: "registry",
  61. Service: string(DockerHub),
  62. },
  63. }
  64. // PorterHelmRepoIntegrations are the supported helm repo integrations
  65. var PorterHelmRepoIntegrations = []PorterIntegration{
  66. {
  67. AuthMechanism: "basic",
  68. Category: "helm",
  69. Service: "helmrepo",
  70. },
  71. }