controllers

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Overview

Copyright 2023 The Cloud-Barista Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 The Cloud-Barista Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 The Cloud-Barista Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 The Cloud-Barista Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 The Cloud-Barista Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 The Cloud-Barista Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 The Cloud-Barista Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 The Cloud-Barista Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 The Cloud-Barista Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 The Cloud-Barista Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 The Cloud-Barista Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 The Cloud-Barista Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 The Cloud-Barista Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 The Cloud-Barista Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupHandler

func BackupHandler(ctx echo.Context) error

func BackupRootHandler

func BackupRootHandler(ctx echo.Context)

func GenerateDynamoDBGetHandler

func GenerateDynamoDBGetHandler(ctx echo.Context) error

func GenerateDynamoDBPostHandler

func GenerateDynamoDBPostHandler(ctx echo.Context) error

GenerateDynamoDBPostHandler godoc

@Summary		Generate test data on AWS DynamoDB
@Description	Generate test data on AWS DynamoDB.
@Tags			[Test Data Generation]
@Accept			json
@Produce		json
@Param			RequestBody	body		GenDataParams			true	"Parameters required to generate test data"
@Success		200			{object}	models.BasicResponse	"Successfully generated test data"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/generate/dynamodb [post]

func GenerateFirestoreGetHandler

func GenerateFirestoreGetHandler(ctx echo.Context) error

func GenerateFirestorePostHandler

func GenerateFirestorePostHandler(ctx echo.Context) error

GenerateFirestorePostHandler godoc

@Summary		Generate test data on GCP Firestore
@Description	Generate test data on GCP Firestore.
@Tags			[Test Data Generation]
@Accept			multipart/form-data
@Produce		json
@Param			GenFirestoreParams	formData	GenFirestoreParams	true	"Parameters required to generate test data"
@Param			gcpCredential		formData	file				false	"Parameters required to generate test data"
@Success		200				{object}	models.BasicResponse	"Successfully generated test data"
@Failure		500				{object}	models.BasicResponse	"Internal Server Error"
@Router			/generate/firestore [post]

func GenerateGCPGetHandler

func GenerateGCPGetHandler(ctx echo.Context) error

func GenerateGCPPostHandler

func GenerateGCPPostHandler(ctx echo.Context) error

GenerateGCPPostHandler godoc

@Summary		Generate test data on GCP Cloud Storage
@Description	Generate test data on GCP Cloud Storage.
@Tags			[Test Data Generation]
@Accept			multipart/form-data
@Produce		json
@Param			RequestBody		formData	GenDataParams	true	"Parameters required to generate test data"
@Param			gcpCredential	formData	file			false	"Parameters required to generate test data"
@Success		200				{object}	models.BasicResponse	"Successfully generated test data"
@Failure		500				{object}	models.BasicResponse	"Internal Server Error"
@Router			/generate/gcp [post]

func GenerateLinuxGetHandler

func GenerateLinuxGetHandler(ctx echo.Context) error

func GenerateLinuxPostHandler

func GenerateLinuxPostHandler(ctx echo.Context) error

GenerateLinuxPostHandler godoc

@Summary		Generate test data on on-premise Linux
@Description	Generate test data on on-premise Linux.
@Tags			[Test Data Generation]
@Accept			json
@Produce		json
@Param			RequestBody	body		GenDataParams			true	"Parameters required to generate test data"
@Success		200			{object}	models.BasicResponse	"Successfully generated test data"
@Failure		400			{object}	models.BasicResponse	"Invalid Request"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/generate/linux [post]

func GenerateMongoDBGetHandler

func GenerateMongoDBGetHandler(ctx echo.Context) error

func GenerateMongoDBPostHandler

func GenerateMongoDBPostHandler(ctx echo.Context) error

GenerateMongoDBPostHandler godoc

@Summary		Generate test data on NCP MongoDB
@Description	Generate test data on NCP MongoDB.
@Tags			[Test Data Generation]
@Accept			json
@Produce		json
@Param			RequestBody	body		GenDataParams			true	"Parameters required to generate test data"
@Success		200			{object}	models.BasicResponse	"Successfully generated test data"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/generate/mongodb [post]

func GenerateMySQLGetHandler

func GenerateMySQLGetHandler(ctx echo.Context) error

func GenerateMySQLPostHandler

func GenerateMySQLPostHandler(ctx echo.Context) error

GenerateMySQLPostHandler godoc

@Summary		Generate test data on MySQL
@Description	Generate test data on MySQL.
@Tags			[Test Data Generation]
@Accept			json
@Produce		json
@Param			RequestBody	body		GenMySQLParams			true	"Parameters required to generate test data"
@Success		200			{object}	models.BasicResponse	"Successfully generated test data"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/generate/mysql [post]

func GenerateNCPGetHandler

func GenerateNCPGetHandler(ctx echo.Context) error

func GenerateNCPPostHandler

func GenerateNCPPostHandler(ctx echo.Context) error

GenerateNCPPostHandler godoc

@Summary		Generate test data on NCP Object Storage
@Description	Generate test data on NCP Object Storage.
@Tags			[Test Data Generation]
@Accept			json
@Produce		json
@Param			RequestBody	body		GenDataParams			true	"Parameters required to generate test data"
@Success		200			{object}	models.BasicResponse	"Successfully generated test data"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/generate/ncp [post]

func GenerateS3GetHandler

func GenerateS3GetHandler(ctx echo.Context) error

func GenerateS3PostHandler

func GenerateS3PostHandler(ctx echo.Context) error

GenerateS3PostHandler godoc

@Summary		Generate test data on AWS S3
@Description	Generate test data on AWS S3.
@Tags			[Test Data Generation]
@Accept			json
@Produce		json
@Param			RequestBody	body		GenDataParams			true	"Parameters required to generate test data"
@Success		200			{object}	models.BasicResponse	"Successfully generated test data"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/generate/s3 [post]

func GenerateWindowsGetHandler

func GenerateWindowsGetHandler(ctx echo.Context) error

func GenerateWindowsPostHandler

func GenerateWindowsPostHandler(ctx echo.Context) error

GenerateWindowsPostHandler godoc

@Summary		Generate test data on on-premise Windows
@Description	Generate test data on on-premise Windows.
@Tags			[Test Data Generation]
@Accept			json
@Produce		json
@Param			RequestBody	body		GenDataParams			true	"Parameters required to generate test data"
@Success		200			{object}	models.BasicResponse	"Successfully generated test data"
@Failure		400			{object}	models.BasicResponse	"Invalid Request"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/generate/windows [post]

func GetAWSRegions

func GetAWSRegions() []string

func GetGCPRegions

func GetGCPRegions() []string

func GetNCPRegions

func GetNCPRegions() []string

func MainGetHandler

func MainGetHandler(ctx echo.Context) error

func MigrationDynamoDBToFirestoreGetHandler

func MigrationDynamoDBToFirestoreGetHandler(ctx echo.Context) error

func MigrationDynamoDBToFirestorePostHandler

func MigrationDynamoDBToFirestorePostHandler(ctx echo.Context) error

MigrationDynamoDBToFirestorePostHandler godoc @Summary Migrate data from DynamoDB to Firestore @Description Migrate data stored in AWS DynamoDB to Google Cloud Firestore. @Tags [Data Migration] @Accept multipart/form-data @Produce json @Param AWSMigrationParams formData AWSMigrationParams true "Parameters required for Linux migration" @Param GCPMigrationParams formData GCPMigrationParams true "Parameters required for GCP migration" @Param gcpCredential formData file false "Parameters required to generate test data" @Success 200 {object} models.BasicResponse "Successfully migrated data" @Failure 500 {object} models.BasicResponse "Internal Server Error" @Router /migration/dynamodb/firestore [post]

func MigrationDynamoDBToMongoDBGetHandler

func MigrationDynamoDBToMongoDBGetHandler(ctx echo.Context) error

func MigrationDynamoDBToMongoDBPostHandler

func MigrationDynamoDBToMongoDBPostHandler(ctx echo.Context) error

MigrationDynamoDBToMongoDBPostHandler godoc @Summary Migrate data from DynamoDB to MongoDB @Description Migrate data stored in AWS DynamoDB to Naver Cloud MongoDB. @Tags [Data Migration] @Accept json @Produce json @Param AWSMigrationParams body AWSMigrationParams true "Parameters required for AWS migration" @Param MongoMigrationParams body MongoMigrationParams true "Parameters required for NCP migration" @Success 200 {object} models.BasicResponse "Successfully migrated data" @Failure 500 {object} models.BasicResponse "Internal Server Error" @Router /migration/dynamodb/mongodb [post]

func MigrationFirestoreToDynamoDBGetHandler

func MigrationFirestoreToDynamoDBGetHandler(ctx echo.Context) error

func MigrationFirestoreToDynamoDBPostHandler

func MigrationFirestoreToDynamoDBPostHandler(ctx echo.Context) error

MigrationFirestoreToDynamoDBPostHandler godoc @Summary Migrate data from Firestore to DynamoDB @Description Migrate data stored in Google Cloud Firestore to AWS DynamoDB. @Tags [Data Migration] @Accept multipart/form-data @Produce json @Param GCPMigrationParams formData GCPMigrationParams true "Parameters required for GCP migration" @Param AWSMigrationParams formData AWSMigrationParams true "Parameters required for AWS migration" @Param gcpCredential formData file false "Parameters required to generate test data" @Success 200 {object} models.BasicResponse "Successfully migrated data" @Failure 500 {object} models.BasicResponse "Internal Server Error" @Router /migration/firestore/dynamodb [post]

func MigrationFirestoreToMongoDBGetHandler

func MigrationFirestoreToMongoDBGetHandler(ctx echo.Context) error

func MigrationFirestoreToMongoDBPostHandler

func MigrationFirestoreToMongoDBPostHandler(ctx echo.Context) error

MigrationFirestoreToMongoDBPostHandler godoc @Summary Migrate data from Firestore to MongoDB @Description Migrate data stored in Google Cloud Firestore to Naver Cloud MongoDB. @Tags [Data Migration] @Accept multipart/form-data @Produce json @Param GCPMigrationParams formData GCPMigrationParams true "Parameters required for GCP migration" @Param MongoMigrationParams formData MongoMigrationParams true "Parameters required for NCP migration" @Param gcpCredential formData file false "Parameters required to generate test data" @Success 200 {object} models.BasicResponse "Successfully migrated data" @Failure 500 {object} models.BasicResponse "Internal Server Error" @Router /migration/firestore/mongodb [post]

func MigrationGCPToLinuxGetHandler

func MigrationGCPToLinuxGetHandler(ctx echo.Context) error

func MigrationGCPToLinuxPostHandler

func MigrationGCPToLinuxPostHandler(ctx echo.Context) error

MigrationGCPToLinuxPostHandler godoc

@Summary		Migrate data from GCP to Linux
@Description	Migrate data stored in GCP Cloud Storage to a Linux-based system.
@Tags			[Data Migration]
@Accept			multipart/form-data
@Produce		json
@Param			RequestBody		formData	MigrationForm	true	"Parameters required for migration"
@Param			gcpCredential	formData	file			false	"Parameters required for migration"
@Success		200			{object}	models.BasicResponse	"Successfully migrated data"
@Failure		400			{object}	models.BasicResponse	"Invalid Request"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/migration/gcp/linux [post]

func MigrationGCPToNCPGetHandler

func MigrationGCPToNCPGetHandler(ctx echo.Context) error

func MigrationGCPToNCPPostHandler

func MigrationGCPToNCPPostHandler(ctx echo.Context) error

MigrationGCPToNCPPostHandler godoc

@Summary		Migrate data from GCP to NCP Object Storage
@Description	Migrate data stored in GCP Cloud Storage to NCP Object Storage.
@Tags			[Data Migration]
@Accept			multipart/form-data
@Produce		json
@Param			RequestBody		formData	MigrationForm	true	"Parameters required for migration"
@Param			gcpCredential	formData	file			false	"Parameters required for migration"
@Success		200			{object}	models.BasicResponse	"Successfully migrated data"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/migration/gcp/ncp [post]

func MigrationGCPToS3GetHandler

func MigrationGCPToS3GetHandler(ctx echo.Context) error

func MigrationGCPToS3PostHandler

func MigrationGCPToS3PostHandler(ctx echo.Context) error

MigrationGCPToS3PostHandler godoc

@Summary		Migrate data from GCP to AWS S3
@Description	Migrate data stored in GCP Cloud Storage to AWS S3.
@Tags			[Data Migration]
@Accept			multipart/form-data
@Produce		json
@Param			RequestBody		formData	MigrationForm	true	"Parameters required for migration"
@Param			gcpCredential	formData	file			false	"Parameters required for migration"
@Success		200			{object}	models.BasicResponse	"Successfully migrated data"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/migration/gcp/s3 [post]

func MigrationGCPToWindowsGetHandler

func MigrationGCPToWindowsGetHandler(ctx echo.Context) error

func MigrationGCPToWindowsPostHandler

func MigrationGCPToWindowsPostHandler(ctx echo.Context) error

MigrationGCPToWindowsPostHandler godoc

@Summary		Migrate data from GCP to Windows
@Description	Migrate data stored in GCP Cloud Storage to a Windows-based system.
@Tags			[Data Migration]
@Accept			multipart/form-data
@Produce		json
@Param			RequestBody		formData	MigrationForm	true	"Parameters required for migration"
@Param			gcpCredential	formData	file			false	"Parameters required for migration"
@Success		200			{object}	models.BasicResponse	"Successfully migrated data"
@Failure		400			{object}	models.BasicResponse	"Invalid Request"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/migration/gcp/windows [post]

func MigrationLinuxToGCPGetHandler

func MigrationLinuxToGCPGetHandler(ctx echo.Context) error

func MigrationLinuxToGCPPostHandler

func MigrationLinuxToGCPPostHandler(ctx echo.Context) error

MigrationLinuxToGCPPostHandler godoc

@Summary		Migrate data from Linux to GCP Cloud Storage
@Description	Migrate data stored in a Linux-based system to GCP Cloud Storage.
@Tags			[Data Migration]
@Accept			multipart/form-data
@Produce		json
@Param			RequestBody		formData	MigrationForm	true	"Parameters required for migration"
@Param			gcpCredential	formData	file			false	"Parameters required for migration"
@Success		200			{object}	models.BasicResponse	"Successfully migrated data"
@Failure		400			{object}	models.BasicResponse	"Invalid Request"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/migration/linux/gcp [post]

func MigrationLinuxToNCPGetHandler

func MigrationLinuxToNCPGetHandler(ctx echo.Context) error

func MigrationLinuxToNCPPostHandler

func MigrationLinuxToNCPPostHandler(ctx echo.Context) error

MigrationLinuxToNCPPostHandler godoc

@Summary		Migrate data from Linux to NCP Object Storage
@Description	Migrate data stored in a Linux-based system to NCP Object Storage.
@Tags			[Data Migration]
@Accept			json
@Produce		json
@Param			RequestBody	body		MigrationForm			true	"Parameters required for migration"
@Success		200			{object}	models.BasicResponse	"Successfully migrated data"
@Failure		400			{object}	models.BasicResponse	"Invalid Request"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/migration/linux/ncp [post]

func MigrationLinuxToS3GetHandler

func MigrationLinuxToS3GetHandler(ctx echo.Context) error

func MigrationLinuxToS3PostHandler

func MigrationLinuxToS3PostHandler(ctx echo.Context) error

MigrationLinuxToS3PostHandler godoc

@Summary		Migrate data from Linux to AWS S3
@Description	Migrate data stored in a Linux-based system to AWS S3.
@Tags			[Data Migration]
@Accept			json
@Produce		json
@Param			RequestBody	body		MigrationForm			true	"Parameters required for migration"
@Success		200			{object}	models.BasicResponse	"Successfully migrated data"
@Failure		400			{object}	models.BasicResponse	"Invalid Request"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/migration/linux/s3 [post]

func MigrationMongoDBToDynamoDBGetHandler

func MigrationMongoDBToDynamoDBGetHandler(ctx echo.Context) error

func MigrationMongoDBToDynamoDBPostHandler

func MigrationMongoDBToDynamoDBPostHandler(ctx echo.Context) error

MigrationMongoDBToDynamoDBPostHandler godoc @Summary Migrate data from MongoDB to DynamoDB @Description Migrate data stored in Naver Cloud MongoDB to AWS DynamoDB. @Tags [Data Migration] @Accept json @Produce json @Param MongoMigrationParams formData MongoMigrationParams true "Parameters required for NCP migration" @Param AWSMigrationParams formData AWSMigrationParams true "Parameters required for AWS migration" @Success 200 {object} models.BasicResponse "Successfully migrated data" @Failure 500 {object} models.BasicResponse "Internal Server Error" @Router /migration/mongodb/dynamodb [post]

func MigrationMongoDBToFirestoreGetHandler

func MigrationMongoDBToFirestoreGetHandler(ctx echo.Context) error

func MigrationMongoDBToFirestorePostHandler

func MigrationMongoDBToFirestorePostHandler(ctx echo.Context) error

MigrationMongoDBToFirestorePostHandler godoc @Summary Migrate data from MongoDB to Firestore @Description Migrate data stored in Naver Cloud MongoDB to Google Cloud Firestore. @Tags [Data Migration] @Accept multipart/form-data @Produce json @Param MongoMigrationParams formData MongoMigrationParams true "Parameters required for NCP migration" @Param GCPMigrationParams formData GCPMigrationParams true "Parameters required for GCP migration" @Param gcpCredential formData file false "Parameters required to generate test data" @Success 200 {object} models.BasicResponse "Successfully migrated data" @Failure 500 {object} models.BasicResponse "Internal Server Error" @Router /migration/mongodb/firestore [post]

func MigrationMySQLGetHandler

func MigrationMySQLGetHandler(ctx echo.Context) error

func MigrationMySQLPostHandler

func MigrationMySQLPostHandler(ctx echo.Context) error

MigrationMySQLPostHandler godoc

@Summary		Migrate data from MySQL to MySQL
@Description	Migrate data from one MySQL database to another MySQL database.
@Tags			[Data Migration]
@Accept			json
@Produce		json
@Param			RequestBody	body		MigrationMySQLForm		true	"Parameters required for MySQL migration"
@Success		200			{object}	models.BasicResponse	"Successfully migrated data"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/migration/mysql [post]

func MigrationNCPToGCPGetHandler

func MigrationNCPToGCPGetHandler(ctx echo.Context) error

func MigrationNCPToGCPPostHandler

func MigrationNCPToGCPPostHandler(ctx echo.Context) error

MigrationNCPToGCPPostHandler godoc

@Summary		Migrate data from NCP to GCP Cloud Storage
@Description	Migrate data stored in NCP Object Storage to GCP Cloud Storage.
@Tags			[Data Migration]
@Accept			multipart/form-data
@Produce		json
@Param			RequestBody		formData	MigrationForm	true	"Parameters required for migration"
@Param 			gcpCredential	formData 	file 			false 	"Parameters required to generate test data"
@Success		200			{object}	models.BasicResponse	"Successfully migrated data"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/migration/ncp/gcp [post]

func MigrationNCPToLinuxGetHandler

func MigrationNCPToLinuxGetHandler(ctx echo.Context) error

func MigrationNCPToLinuxPostHandler

func MigrationNCPToLinuxPostHandler(ctx echo.Context) error

MigrationNCPToLinuxPostHandler godoc

@Summary		Migrate data from NCP to Linux
@Description	Migrate data stored in NCP Object Storage to a Linux-based system.
@Tags			[Data Migration]
@Accept			json
@Produce		json
@Param LinuxMigrationParams body LinuxMigrationParams true "Parameters required for Linux migration"
@Param NCPMigrationParams body NCPMigrationParams true "Parameters required for NCP migration"
@Success		200			{object}	models.BasicResponse	"Successfully migrated data"
@Failure		400			{object}	models.BasicResponse	"Invalid Request"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/migration/ncp/linux [post]

func MigrationNCPToS3GetHandler

func MigrationNCPToS3GetHandler(ctx echo.Context) error

func MigrationNCPToS3PostHandler

func MigrationNCPToS3PostHandler(ctx echo.Context) error

MigrationNCPToS3PostHandler godoc

@Summary		Migrate data from NCP to AWS S3
@Description	Migrate data stored in NCP Object Storage to AWS S3.
@Tags			[Data Migration]
@Accept			json
@Produce		json
@Param			RequestBody	body		MigrationForm			true	"Parameters required for migration"
@Success		200			{object}	models.BasicResponse	"Successfully migrated data"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/migration/ncp/s3 [post]

func MigrationNCPToWindowsGetHandler

func MigrationNCPToWindowsGetHandler(ctx echo.Context) error

func MigrationNCPToWindowsPostHandler

func MigrationNCPToWindowsPostHandler(ctx echo.Context) error

MigrationNCPToWindowsPostHandler godoc

@Summary		Migrate data from NCP to Windows
@Description	Migrate data stored in NCP Object Storage to a Windows-based system.
@Tags			[Data Migration]
@Accept			json
@Produce		json
@Param			RequestBody	body		MigrationForm			true	"Parameters required for migration"
@Success		200			{object}	models.BasicResponse	"Successfully migrated data"
@Failure		400			{object}	models.BasicResponse	"Invalid Request"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/migration/ncp/windows [post]

func MigrationS3ToGCPGetHandler

func MigrationS3ToGCPGetHandler(ctx echo.Context) error

func MigrationS3ToGCPPostHandler

func MigrationS3ToGCPPostHandler(ctx echo.Context) error

MigrationS3ToGCPPostHandler godoc @Summary Migrate data from AWS S3 to GCP @Description Migrate data stored in AWS S3 to Google Cloud Storage. @Tags [Data Migration] @Accept multipart/form-data @Produce json @Param RequestBody formData MigrationForm true "Parameters required for migration" @Param gcpCredential formData file false "Parameters required to generate test data" @Success 200 {object} models.BasicResponse "Successfully migrated data" @Failure 500 {object} models.BasicResponse "Internal Server Error" @Router /migration/s3/gcp [post]

func MigrationS3ToLinuxGetHandler

func MigrationS3ToLinuxGetHandler(ctx echo.Context) error

func MigrationS3ToLinuxPostHandler

func MigrationS3ToLinuxPostHandler(ctx echo.Context) error

MigrationS3ToLinuxPostHandler godoc @Summary Migrate data from AWS S3 to Linux @Description Migrate data stored in AWS S3 to a Linux-based system. @Tags [Data Migration] @Accept json @Produce json @Param RequestBody body MigrationForm true "Parameters required for migration" @Success 200 {object} models.BasicResponse "Successfully migrated data" @Failure 400 {object} models.BasicResponse "Invalid Request" @Failure 500 {object} models.BasicResponse "Internal Server Error" @Router /migration/s3/linux [post]

func MigrationS3ToNCPGetHandler

func MigrationS3ToNCPGetHandler(ctx echo.Context) error

func MigrationS3ToNCPPostHandler

func MigrationS3ToNCPPostHandler(ctx echo.Context) error

MigrationS3ToNCPPostHandler godoc @Summary Migrate data from AWS S3 to NCP @Description Migrate data stored in AWS S3 to Naver Cloud Object Storage. @Tags [Data Migration] @Accept json @Produce json @Param RequestBody body MigrationForm true "Parameters required for migration" @Success 200 {object} models.BasicResponse "Successfully migrated data" @Failure 500 {object} models.BasicResponse "Internal Server Error" @Router /migration/s3/ncp [post]

func MigrationS3ToWindowsGetHandler

func MigrationS3ToWindowsGetHandler(ctx echo.Context) error

func MigrationS3ToWindowsPostHandler

func MigrationS3ToWindowsPostHandler(ctx echo.Context) error

MigrationS3ToWindowsPostHandler godoc @Summary Migrate data from AWS S3 to Windows @Description Migrate data stored in AWS S3 to a Windows-based system. @Tags [Data Migration] @Accept json @Produce json @Param RequestBody body MigrationForm true "Parameters required for migration" @Success 200 {object} models.BasicResponse "Successfully migrated data" @Failure 400 {object} models.BasicResponse "Invalid Request" @Failure 500 {object} models.BasicResponse "Internal Server Error" @Router /migration/s3/windows [post]

func MigrationWindowsToGCPGetHandler

func MigrationWindowsToGCPGetHandler(ctx echo.Context) error

func MigrationWindowsToGCPPostHandler

func MigrationWindowsToGCPPostHandler(ctx echo.Context) error

MigrationWindowsToGCPPostHandler godoc

@Summary		Migrate data from Windows to GCP Cloud Storage
@Description	Migrate data stored in a Windows-based system to GCP Cloud Storage.
@Tags			[Data Migration]
@Accept			multipart/form-data
@Produce		json
@Param			RequestBody		formData	MigrationForm	true	"Parameters required for migration"
@Param			gcpCredential	formData	file			false	"Parameters required for migration"
@Success		200			{object}	models.BasicResponse	"Successfully migrated data"
@Failure		400			{object}	models.BasicResponse	"Invalid Request"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/migration/windows/gcp [post]

func MigrationWindowsToNCPGetHandler

func MigrationWindowsToNCPGetHandler(ctx echo.Context) error

func MigrationWindowsToNCPPostHandler

func MigrationWindowsToNCPPostHandler(ctx echo.Context) error

MigrationWindowsToNCPPostHandler godoc

@Summary		Migrate data from Windows to NCP Object Storage
@Description	Migrate data stored in a Windows-based system to NCP Object Storage.
@Tags			[Data Migration]
@Accept			json
@Produce		json
@Param			RequestBody	body		MigrationForm			true	"Parameters required for migration"
@Success		200			{object}	models.BasicResponse	"Successfully migrated data"
@Failure		400			{object}	models.BasicResponse	"Invalid Request"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/migration/windows/ncp [post]

func MigrationWindowsToS3GetHandler

func MigrationWindowsToS3GetHandler(ctx echo.Context) error

func MigrationWindowsToS3PostHandler

func MigrationWindowsToS3PostHandler(ctx echo.Context) error

MigrationWindowsToS3PostHandler godoc

@Summary		Migrate data from Windows to AWS S3
@Description	Migrate data stored in a Windows-based system to AWS S3.
@Tags			[Data Migration]
@Accept			json
@Produce		json
@Param			RequestBody	body		MigrationForm			true	"Parameters required for migration"
@Success		200			{object}	models.BasicResponse	"Successfully migrated data"
@Failure		400			{object}	models.BasicResponse	"Invalid Request"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/migration/windows/s3 [post]

Types

type AWSMigrationParams

type AWSMigrationParams struct {
	AWSRegion    string `form:"awsRegion" json:"awsRegion"`
	AWSAccessKey string `form:"awsAccessKey" json:"awsAccessKey"`
	AWSSecretKey string `form:"awsSecretKey" json:"awsSecretKey"`
	AWSBucket    string `form:"awsBucket" json:"awsBucket"`
}

type GCPMigrationParams

type GCPMigrationParams struct {
	ProjectID         string                `json:"projectId" form:"projectId"`
	DatabaseID        string                `json:"databaseId" form:"databaseId"`
	GCPRegion         string                `form:"gcpRegion" json:"gcpRegion"`
	GCPBucket         string                `form:"gcpBucket" json:"gcpBucket"`
	GCPCredentialJson string                `form:"gcpCredentialJson" json:"gcpCredentialJson"`
	GCPCredential     *multipart.FileHeader `form:"gcpCredential" json:"-" swaggerignore:"true"`
}

type GenDataParams

type GenDataParams struct {
	Region    string `json:"region" form:"region"`
	AccessKey string `json:"accessKey" form:"accessKey"`
	SecretKey string `json:"secretKey" form:"secretKey"`
	Bucket    string `json:"bucket" form:"bucket"`
	Endpoint  string `json:"endpoint" form:"endpoint"`
	DummyPath string `json:"path" form:"path"`

	CheckSQL        string `json:"checkSQL" form:"checkSQL"`
	CheckCSV        string `json:"checkCSV" form:"checkCSV"`
	CheckTXT        string `json:"checkTXT" form:"checkTXT"`
	CheckPNG        string `json:"checkPNG" form:"checkPNG"`
	CheckGIF        string `json:"checkGIF" form:"checkGIF"`
	CheckZIP        string `json:"checkZIP" form:"checkZIP"`
	CheckJSON       string `json:"checkJSON" form:"checkJSON"`
	CheckXML        string `json:"checkXML" form:"checkXML"`
	CheckServerJSON string `json:"checkServerJSON" form:"checkServerJSON"`
	CheckServerSQL  string `json:"checkServerSQL" form:"checkServerSQL"`

	SizeSQL        string `json:"sizeSQL" form:"sizeSQL"`
	SizeCSV        string `json:"sizeCSV" form:"sizeCSV"`
	SizeTXT        string `json:"sizeTXT" form:"sizeTXT"`
	SizePNG        string `json:"sizePNG" form:"sizePNG"`
	SizeGIF        string `json:"sizeGIF" form:"sizeGIF"`
	SizeZIP        string `json:"sizeZIP" form:"sizeZIP"`
	SizeJSON       string `json:"sizeJSON" form:"sizeJSON"`
	SizeXML        string `json:"sizeXML" form:"sizeXML"`
	SizeServerJSON string `json:"sizeServerJSON" form:"sizeServerJSON"`
	SizeServerSQL  string `json:"sizeServerSQL" form:"sizeServerSQL"`

	DBProvider   string `json:"provider" form:"provider"`
	DBHost       string `json:"host" form:"host"`
	DBPort       string `json:"port" form:"port"`
	DBUser       string `json:"username" form:"username"`
	DBPassword   string `json:"password" form:"password"`
	DatabaseName string `json:"databaseName" form:"databaseName"`

	GCPCredential     *multipart.FileHeader `json:"-" form:"gcpCredential" swaggerignore:"true"`
	GCPCredentialJson string                `json:"gcpCredentialJson" form:"gcpCredentialJson"`
	DatabaseID        string                `json:"databaseId" form:"databaseId"`
	ProjectID         string                `json:"projectId" form:"projectId"`
}

type GenFirestoreParams

type GenFirestoreParams struct {
	Region            string                `json:"region" form:"region"`
	GCPCredential     *multipart.FileHeader `json:"-" form:"gcpCredential" swaggerignore:"true"`
	GCPCredentialJson string                `json:"gcpCredentialJson" form:"gcpCredentialJson"`
	DatabaseID        string                `json:"databaseId" form:"databaseId"`
	ProjectID         string                `json:"projectId" form:"projectId"`
}

type GenMySQLParams

type GenMySQLParams struct {
	DBProvider   string `json:"provider" form:"provider"`
	DBHost       string `json:"host" form:"host"`
	DBPort       string `json:"port" form:"port"`
	DBUser       string `json:"username" form:"username"`
	DBPassword   string `json:"password" form:"password"`
	DatabaseName string `json:"databaseName" form:"databaseName"`
}

type GenerateS3PostHandlerResponseBody

type GenerateS3PostHandlerResponseBody struct {
	models.BasicResponse
}

type LinuxMigrationParams

type LinuxMigrationParams struct {
	Path string `form:"path" json:"path"`
}

type MigrationForm

type MigrationForm struct {
	Path string `form:"path" json:"path"`

	AWSRegion    string `form:"awsRegion" json:"awsRegion"`
	AWSAccessKey string `form:"awsAccessKey" json:"awsAccessKey"`
	AWSSecretKey string `form:"awsSecretKey" json:"awsSecretKey"`
	AWSBucket    string `form:"awsBucket" json:"awsBucket"`

	ProjectID         string                `json:"projectId" form:"projectId"`
	DatabaseID        string                `json:"databaseId" form:"databaseId"`
	GCPRegion         string                `form:"gcpRegion" json:"gcpRegion"`
	GCPBucket         string                `form:"gcpBucket" json:"gcpBucket"`
	GCPCredentialJson string                `form:"gcpCredentialJson" json:"gcpCredentialJson"`
	GCPCredential     *multipart.FileHeader `form:"gcpCredential" json:"-" swaggerignore:"true"`

	NCPRegion    string `form:"ncpRegion" json:"ncpRegion"`
	NCPAccessKey string `form:"ncpAccessKey" json:"ncpAccessKey"`
	NCPSecretKey string `form:"ncpSecretKey" json:"ncpSecretKey"`
	NCPEndPoint  string `form:"ncpEndpoint" json:"ncpEndpoint"`
	NCPBucket    string `form:"ncpBucket" json:"ncpBucket"`

	MongoHost     string `form:"host" json:"host"`
	MongoPort     string `form:"port" json:"port"`
	MongoUsername string `form:"username" json:"username"`
	MongoPassword string `form:"password" json:"password"`
	MongoDBName   string `form:"databaseName" json:"databaseName"`
}

MigrationForm represents the form data required for migration processes. @Description MigrationForm contains all the necessary fields for migrating data between different services.

type MigrationMySQLForm

type MigrationMySQLForm struct {
	SProvider     string `json:"srcProvider" form:"srcProvider"`
	SHost         string `json:"srcHost" form:"srcHost"`
	SPort         string `json:"srcPort" form:"srcPort"`
	SUsername     string `json:"srcUsername" form:"srcUsername"`
	SPassword     string `json:"srcPassword" form:"srcPassword"`
	SDatabaseName string `json:"srcDatabaseName" form:"srcDatabaseName"`

	DProvider     string `json:"destProvider" form:"destProvider"`
	DHost         string `json:"destHost" form:"destHost"`
	DPort         string `json:"destPort" form:"destPort"`
	DUsername     string `json:"destUsername" form:"destUsername"`
	DPassword     string `json:"destPassword" form:"destPassword"`
	DDatabaseName string `json:"destDatabaseName" form:"destDatabaseName"`
}

type MigrationMySQLParams

type MigrationMySQLParams struct {
	Source MySQLParams
	Dest   MySQLParams
}

func GetMigrationParamsFormFormData

func GetMigrationParamsFormFormData(form MigrationMySQLForm) MigrationMySQLParams

type MongoDBParams

type MongoDBParams struct {
	Host         string `json:"Host"`
	Port         string `json:"Port"`
	Username     string `json:"Username"`
	Password     string `json:"Password"`
	DatabaseName string `json:"DatabaseName"`
}

type MongoMigrationParams

type MongoMigrationParams struct {
	MongoHost     string `form:"host" json:"host"`
	MongoPort     string `form:"port" json:"port"`
	MongoUsername string `form:"username" json:"username"`
	MongoPassword string `form:"password" json:"password"`
	MongoDBName   string `form:"databaseName" json:"databaseName"`
}

type MySQLParams

type MySQLParams struct {
	Provider     string `json:"Provider"`
	Host         string `json:"Host"`
	Port         string `json:"Port"`
	Username     string `json:"Username"`
	Password     string `json:"Password"`
	DatabaseName string `json:"DatabaseName"`
}

type NCPMigrationParams

type NCPMigrationParams struct {
	NCPRegion    string `form:"ncpRegion" json:"ncpRegion"`
	NCPAccessKey string `form:"ncpAccessKey" json:"ncpAccessKey"`
	NCPSecretKey string `form:"ncpSecretKey" json:"ncpSecretKey"`
	NCPEndPoint  string `form:"ncpEndpoint" json:"ncpEndpoint"`
	NCPBucket    string `form:"ncpBucket" json:"ncpBucket"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL