Sfoglia il codice sorgente

rename package project_integrations -> project_integration

Anukul Sangwan 4 anni fa
parent
commit
b3cae227a4

+ 0 - 0
api/server/handlers/project_integrations/create_aws.go → api/server/handlers/project_integration/create_aws.go


+ 0 - 0
api/server/handlers/project_integrations/create_basic.go → api/server/handlers/project_integration/create_basic.go


+ 0 - 0
api/server/handlers/project_integrations/create_gcp.go → api/server/handlers/project_integration/create_gcp.go


+ 0 - 0
api/server/handlers/project_integrations/list_oauth.go → api/server/handlers/project_integration/list_oauth.go


+ 0 - 0
api/server/handlers/project_integrations/overwrite_aws.go → api/server/handlers/project_integration/overwrite_aws.go


+ 6 - 6
api/server/router/project_integration.go

@@ -2,7 +2,7 @@ package router
 
 import (
 	"github.com/go-chi/chi"
-	project_integration "github.com/porter-dev/porter/api/server/handlers/project_integrations"
+	project_integration "github.com/porter-dev/porter/api/server/handlers/project_integration"
 	"github.com/porter-dev/porter/api/server/shared"
 	"github.com/porter-dev/porter/api/server/shared/config"
 	"github.com/porter-dev/porter/api/types"
@@ -52,7 +52,7 @@ func getProjectIntegrationRoutes(
 
 	routes := make([]*Route, 0)
 
-	// GET /api/projects/{project_id}/integrations/oauth -> project_integrations.NewListOAuth
+	// GET /api/projects/{project_id}/integrations/oauth -> project_integration.NewListOAuthHandler
 	listOAuthEndpoint := factory.NewAPIEndpoint(
 		&types.APIRequestMetadata{
 			Verb:   types.APIVerbGet,
@@ -79,7 +79,7 @@ func getProjectIntegrationRoutes(
 		Router:   r,
 	})
 
-	// POST /api/projects/{project_id}/integrations/basic -> project_integrations.NewCreateBasicHandler
+	// POST /api/projects/{project_id}/integrations/basic -> project_integration.NewCreateBasicHandler
 	createBasicEndpoint := factory.NewAPIEndpoint(
 		&types.APIRequestMetadata{
 			Verb:   types.APIVerbCreate,
@@ -107,7 +107,7 @@ func getProjectIntegrationRoutes(
 		Router:   r,
 	})
 
-	// POST /api/projects/{project_id}/integrations/aws -> project_integrations.NewCreateAWSHandler
+	// POST /api/projects/{project_id}/integrations/aws -> project_integration.NewCreateAWSHandler
 	createAWSEndpoint := factory.NewAPIEndpoint(
 		&types.APIRequestMetadata{
 			Verb:   types.APIVerbCreate,
@@ -135,7 +135,7 @@ func getProjectIntegrationRoutes(
 		Router:   r,
 	})
 
-	// POST /api/projects/{project_id}/integrations/aws/overwrite -> project_integrations.NewOverwriteAWSHandler
+	// POST /api/projects/{project_id}/integrations/aws/overwrite -> project_integration.NewOverwriteAWSHandler
 	overwriteAWSEndpoint := factory.NewAPIEndpoint(
 		&types.APIRequestMetadata{
 			Verb:   types.APIVerbCreate,
@@ -163,7 +163,7 @@ func getProjectIntegrationRoutes(
 		Router:   r,
 	})
 
-	// POST /api/projects/{project_id}/integrations/gcp -> project_integrations.NewCreateGCPHandler
+	// POST /api/projects/{project_id}/integrations/gcp -> project_integration.NewCreateGCPHandler
 	createGCPEndpoint := factory.NewAPIEndpoint(
 		&types.APIRequestMetadata{
 			Verb:   types.APIVerbCreate,