controllers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 41 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.

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 BackupNRDBPostHandler added in v0.2.1

func BackupNRDBPostHandler(ctx echo.Context) error

BackupNRDBPostHandler godoc

@ID 			BackupNRDBPostHandler
@Summary		Export data from MySQL
@Description	Export data from a MySQL database to SQL files.
@Tags			[Backup]
@Accept			json
@Produce		json
@Param			RequestBody		body	models.BackupTask	true	"Parameters required for backup"
@Success		200			{object}	models.BasicResponse	"Successfully backup data"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/backup/nrdbms [post]

func BackupOSPostHandler added in v0.2.1

func BackupOSPostHandler(ctx echo.Context) error

BackupOSPostHandler godoc

@ID 			BackupOSPostHandler
@Summary		Export data from objectstorage
@Description	Export data from a objectstorage  to files.
@Tags			[Backup]
@Accept			json
@Produce		json
@Param			RequestBody		body	models.BackupTask	true	"Parameters required for backup"
@Success		200			{object}	models.BasicResponse	"Successfully backup data"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/backup/objectstorage [post]

func BackupRDBPostHandler added in v0.2.1

func BackupRDBPostHandler(ctx echo.Context) error

BackupRDBPostHandler godoc

@ID 			BackupRDBPostHandler
@Summary		Export data from MySQL
@Description	Export data from a MySQL database to SQL files.
@Tags			[Backup]
@Accept			json
@Produce		json
@Param			RequestBody		body	models.BackupTask	true	"Parameters required for backup"
@Success		200			{object}	models.BasicResponse	"Successfully backup data"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/backup/rdbms [post]

func DashBoardHandler added in v0.2.1

func DashBoardHandler(ctx echo.Context) error

func DeleteBackupkHandler added in v0.2.1

func DeleteBackupkHandler(ctx echo.Context) error

DeleteBackupkHandler godoc

@ID 			DeleteBackupkHandler
@Summary		Delete a Task
@Description	Delete an existing Task using its ID.
@Tags			[Backup]
@Produce		json
@Param			id		path	string	true	"Task ID"
@Success		200		{object}	models.BasicResponse	"Successfully deleted the Task"
@Failure		404		{object}	models.BasicResponse	"Task not found"
@Router			/backup/{id} [delete]

func DeleteGeneratekHandler added in v0.2.1

func DeleteGeneratekHandler(ctx echo.Context) error

DeleteGeneratekHandler godoc

@ID 			DeleteGeneratekHandler
@Summary		Delete a Task
@Description	Delete an existing Task using its ID.
@Tags			[Generate]
@Produce		json
@Param			id		path	string	true	"Task ID"
@Success		200		{object}	models.BasicResponse	"Successfully deleted the Task"
@Failure		404		{object}	models.BasicResponse	"Task not found"
@Router			/generate/{id} [delete]

func DeleteMigratekHandler added in v0.2.1

func DeleteMigratekHandler(ctx echo.Context) error

DeleteMigratekHandler godoc

@ID 			DeleteMigratekHandler
@Summary		Delete a Task
@Description	Delete an existing Task using its ID.
@Tags			[Migrate]
@Produce		json
@Param			id		path	string	true	"Task ID"
@Success		200		{object}	models.BasicResponse	"Successfully deleted the Task"
@Failure		404		{object}	models.BasicResponse	"Task not found"
@Router			/migrate/{id} [delete]

func DeleteRestorekHandler added in v0.2.1

func DeleteRestorekHandler(ctx echo.Context) error

DeleteRestorekHandler godoc

@ID 			DeleteRestorekHandler
@Summary		Delete a Task
@Description	Delete an existing Task using its ID.
@Tags			[Restore]
@Produce		json
@Param			id		path	string	true	"Task ID"
@Success		200		{object}	models.BasicResponse	"Successfully deleted the Task"
@Failure		404		{object}	models.BasicResponse	"Task not found"
@Router			/restore/{id} [delete]

func GenerateDynamoDBGetHandler

func GenerateDynamoDBGetHandler(ctx echo.Context) error

func GenerateFirestoreGetHandler

func GenerateFirestoreGetHandler(ctx echo.Context) error

func GenerateGCPGetHandler

func GenerateGCPGetHandler(ctx echo.Context) error

func GenerateLinuxGetHandler

func GenerateLinuxGetHandler(ctx echo.Context) error

func GenerateLinuxPostHandler

func GenerateLinuxPostHandler(ctx echo.Context) error

GenerateLinuxPostHandler godoc

@ID 			GenerateLinuxPostHandler
@Summary		Generate test data on on-premise Linux
@Description	Generate test data on on-premise Linux.
@Tags			[Generate]
@Accept			json
@Produce		json
@Param			RequestBody	body		 models.DataTask			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 GenerateMySQLGetHandler

func GenerateMySQLGetHandler(ctx echo.Context) error

func GenerateNCPGetHandler

func GenerateNCPGetHandler(ctx echo.Context) error

func GenerateNRDBMSPostHandler added in v0.2.1

func GenerateNRDBMSPostHandler(ctx echo.Context) error

GenerateNRDBMSPostHandler godoc

@ID 			GenerateNRDBMSPostHandler
@Summary		Generate test data on Object Storage
@Description	Generate test data on Object Storage
@Tags			[Generate]
@Accept			json
@Produce		json
@Param			RequestBody	body		 models.GenarateTask			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/nrdbms [post]

func GenerateObjectStoragePostHandler added in v0.2.1

func GenerateObjectStoragePostHandler(ctx echo.Context) error

GenerateObjectStoragePostHandler godoc

@ID 			GenerateObjectStoragePostHandler
@Summary		Generate test data on Object Storage
@Description	Generate test data on Object Storage
@Tags			[Generate]
@Accept			json
@Produce		json
@Param			RequestBody	body		 models.GenarateTask			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/objectstorage [post]

func GenerateRDBMSPostHandler added in v0.2.1

func GenerateRDBMSPostHandler(ctx echo.Context) error

GenerateRDBMSPostHandler godoc

@ID 			GenerateRDBMSPostHandler
@Summary		Generate test data on RDBMS
@Description	Generate test data on RDBMS
@Tags			[Generate]
@Accept			json
@Produce		json
@Param			RequestBody	body		 models.GenarateTask			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/rdbms [post]

func GenerateS3GetHandler

func GenerateS3GetHandler(ctx echo.Context) error

func GenerateWindowsGetHandler

func GenerateWindowsGetHandler(ctx echo.Context) error

func GenerateWindowsPostHandler

func GenerateWindowsPostHandler(ctx echo.Context) error

GenerateWindowsPostHandler godoc

@ID 			GenerateWindowsPostHandler
@Summary		Generate test data on on-premise Windows
@Description	Generate test data on on-premise Windows.
@Tags			[Generate]
@Accept			json
@Produce		json
@Param			RequestBody	body		 models.DataTask			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 GetAllBackupHandler added in v0.2.1

func GetAllBackupHandler(ctx echo.Context) error

GetAllBackupHandler godoc

@ID 			GetAllBackupHandler
@Summary		Get all Tasks
@Description	Retrieve a list of all Tasks in the system.
@Tags			[Backup]
@Produce		json
@Success		200		{array}		models.Task	"Successfully retrieved all Tasks"
@Failure		500		{object}	models.BasicResponse	"Internal Server Error"
@Router			/backup [get]

func GetAllGenerateHandler added in v0.2.1

func GetAllGenerateHandler(ctx echo.Context) error

GetAllGenerateHandler godoc

@ID 			GetAllGenerateHandler
@Summary		Get all Tasks
@Description	Retrieve a list of all Tasks in the system.
@Tags			[Generate]
@Produce		json
@Success		200		{array}		models.Task	"Successfully retrieved all Tasks"
@Failure		500		{object}	models.BasicResponse	"Internal Server Error"
@Router			/generate [get]

func GetAllMigrateHandler added in v0.2.1

func GetAllMigrateHandler(ctx echo.Context) error

GetAllMigrateHandler godoc

@ID 			GetAllMigrateHandler
@Summary		Get all Tasks
@Description	Retrieve a list of all Tasks in the system.
@Tags			[Migrate]
@Produce		json
@Success		200		{array}		models.Task	"Successfully retrieved all Tasks"
@Failure		500		{object}	models.BasicResponse	"Internal Server Error"
@Router			/migrate [get]

func GetAllRestoreHandler added in v0.2.1

func GetAllRestoreHandler(ctx echo.Context) error

GetAllRestoreHandler godoc

@ID 			GetAllRestoreHandler
@Summary		Get all Tasks
@Description	Retrieve a list of all Tasks in the system.
@Tags			[Restore]
@Produce		json
@Success		200		{array}		models.Task	"Successfully retrieved all Tasks"
@Failure		500		{object}	models.BasicResponse	"Internal Server Error"
@Router			/restore [get]

func GetBackupHandler added in v0.2.1

func GetBackupHandler(ctx echo.Context) error

GetBackupHandler godoc

@ID 			GetBackupHandler
@Summary		Get a Task by ID
@Description	Get the details of a Task using its ID.
@Tags			[Backup]
@Accept			json
@Produce		json
@Param			id		path	string	true	"Task ID"
@Success		200		{object}	models.Task	"Successfully retrieved a Task"
@Failure		404		{object}	models.BasicResponse	"Task not found"
@Router			/backup/{id} [get]

func GetGCPRegions

func GetGCPRegions() []string

func GetGenerateHandler added in v0.2.1

func GetGenerateHandler(ctx echo.Context) error

GetGenerateHandler godoc

@ID 			GetGenerateHandler
@Summary		Get a Task by ID
@Description	Get the details of a Task using its ID.
@Tags			[Generate]
@Accept			json
@Produce		json
@Param			id		path	string	true	"Task ID"
@Success		200		{object}	models.Task	"Successfully retrieved a Task"
@Failure		404		{object}	models.BasicResponse	"Task not found"
@Router			/generate/{id} [get]

func GetMigrateHandler added in v0.2.1

func GetMigrateHandler(ctx echo.Context) error

GetMigrateHandler godoc

@ID 			GetMigrateHandler
@Summary		Get a Task by ID
@Description	Get the details of a Task using its ID.
@Tags			[Migrate]
@Accept			json
@Produce		json
@Param			id		path	string	true	"Task ID"
@Success		200		{object}	models.Task	"Successfully retrieved a Task"
@Failure		404		{object}	models.BasicResponse	"Task not found"
@Router			/migrate/{id} [get]

func GetNCPRegions

func GetNCPRegions() []string

func GetRestoreHandler added in v0.2.1

func GetRestoreHandler(ctx echo.Context) error

GetRestoreHandler godoc

@ID 			GetRestoreHandler
@Summary		Get a Task by ID
@Description	Get the details of a Task using its ID.
@Tags			[Restore]
@Accept			json
@Produce		json
@Param			id		path	string	true	"Task ID"
@Success		200		{object}	models.Task	"Successfully retrieved a Task"
@Failure		404		{object}	models.BasicResponse	"Task not found"
@Router			/restore/{id} [get]

func GetSystemReadyHandler added in v0.2.1

func GetSystemReadyHandler(ctx echo.Context) error

GetSystemReadyHandler godoc

@ID 			GetSystemReadyHandler
@Summary		Get System Ready Handler
@Description	Get System Ready
@Tags			[Already Check System]
@Produce		json
@Success		200		{object}	models.BasicResponse	"System is Ready"
@Failure		404		{object}	models.BasicResponse	"Profile Load , Failed: err"
@Router			/readyZ [Get]

func MainGetHandler

func MainGetHandler(ctx echo.Context) error

func MigrationDynamoDBToFirestoreGetHandler

func MigrationDynamoDBToFirestoreGetHandler(ctx echo.Context) error

func MigrationDynamoDBToMongoDBGetHandler

func MigrationDynamoDBToMongoDBGetHandler(ctx echo.Context) error

func MigrationFirestoreToDynamoDBGetHandler

func MigrationFirestoreToDynamoDBGetHandler(ctx echo.Context) error

func MigrationFirestoreToMongoDBGetHandler

func MigrationFirestoreToMongoDBGetHandler(ctx echo.Context) error

func MigrationGCPToLinuxGetHandler

func MigrationGCPToLinuxGetHandler(ctx echo.Context) error

func MigrationGCPToNCPGetHandler

func MigrationGCPToNCPGetHandler(ctx echo.Context) error

func MigrationGCPToS3GetHandler

func MigrationGCPToS3GetHandler(ctx echo.Context) error

func MigrationGCPToWindowsGetHandler

func MigrationGCPToWindowsGetHandler(ctx echo.Context) error

func MigrationLinuxToGCPGetHandler

func MigrationLinuxToGCPGetHandler(ctx echo.Context) error

func MigrationLinuxToNCPGetHandler

func MigrationLinuxToNCPGetHandler(ctx echo.Context) error

func MigrationLinuxToS3GetHandler

func MigrationLinuxToS3GetHandler(ctx echo.Context) error

func MigrationMongoDBToDynamoDBGetHandler

func MigrationMongoDBToDynamoDBGetHandler(ctx echo.Context) error

func MigrationMongoDBToFirestoreGetHandler

func MigrationMongoDBToFirestoreGetHandler(ctx echo.Context) error

func MigrationMySQLGetHandler

func MigrationMySQLGetHandler(ctx echo.Context) error

func MigrationNCPToGCPGetHandler

func MigrationNCPToGCPGetHandler(ctx echo.Context) error

func MigrationNCPToLinuxGetHandler

func MigrationNCPToLinuxGetHandler(ctx echo.Context) error

func MigrationNCPToS3GetHandler

func MigrationNCPToS3GetHandler(ctx echo.Context) error

func MigrationNCPToWindowsGetHandler

func MigrationNCPToWindowsGetHandler(ctx echo.Context) error

func MigrationNRDBMSPostHandler added in v0.2.1

func MigrationNRDBMSPostHandler(ctx echo.Context) error

MigrationNRDBMSPostHandler godoc

@ID 			MigrationNRDBMSPostHandler
@Summary		Migrate data from NRDBMS to NRDBMS
@Description	Migrate data from NRDBMS to NRDBMS.
@Tags			[Migrate]
@Accept			json
@Produce		json
@Param			RequestBody		body	models.MigrateTask	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			/migrate/nrdbms [post]

func MigrationObjectstoragePostHandler added in v0.2.1

func MigrationObjectstoragePostHandler(ctx echo.Context) error

MigrationObjectstoragePostHandler godoc

@ID 			MigrationObjectstoragePostHandler
@Summary		Migrate data from ObjectStorage to ObjectStorage
@Description	Migrate data from ObjectStorage to ObjectStorage.
@Tags			[Migrate]
@Accept			json
@Produce		json
@Param			RequestBody		body	models.MigrateTask	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			/migrate/objectstorage [post]

func MigrationRDBMSPostHandler added in v0.2.1

func MigrationRDBMSPostHandler(ctx echo.Context) error

MigrationRDBMSPostHandler godoc

@ID 			MigrationRDBMSPostHandler
@Summary		Migrate data from RDBMS to RDBMS
@Description	Migrate data from RDBMS to RDBMS.
@Tags			[Migrate]
@Accept			json
@Produce		json
@Param			RequestBody		body	models.MigrateTask	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			/migrate/rdbms [post]

func MigrationS3ToGCPGetHandler

func MigrationS3ToGCPGetHandler(ctx echo.Context) error

func MigrationS3ToLinuxGetHandler

func MigrationS3ToLinuxGetHandler(ctx echo.Context) error

func MigrationS3ToNCPGetHandler

func MigrationS3ToNCPGetHandler(ctx echo.Context) error

func MigrationS3ToWindowsGetHandler

func MigrationS3ToWindowsGetHandler(ctx echo.Context) error

func MigrationWindowsToGCPGetHandler

func MigrationWindowsToGCPGetHandler(ctx echo.Context) error

func MigrationWindowsToNCPGetHandler

func MigrationWindowsToNCPGetHandler(ctx echo.Context) error

func MigrationWindowsToS3GetHandler

func MigrationWindowsToS3GetHandler(ctx echo.Context) error

func RestoreHandler added in v0.2.1

func RestoreHandler(ctx echo.Context) error

func RestoreNRDBPostHandler added in v0.2.1

func RestoreNRDBPostHandler(ctx echo.Context) error

RestoreNRDBPostHandler godoc

@ID 			RestoreNRDBPostHandler
@Summary		Restore NoSQL from data to NoSQL
@Description	Restore NoSQL from SQL files to a NoSQL database
@Tags			[Restore]
@Accept			json
@Produce		json
@Param			RequestBody		body	models.RestoreTask	true	"Parameters required for Restore"
@Success		200			{object}	models.BasicResponse	"Successfully Restore data"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/restore/nrdbms [post]

func RestoreOSPostHandler added in v0.2.1

func RestoreOSPostHandler(ctx echo.Context) error

RestoreOSPostHandler godoc

@ID 			RestoreOSPostHandler
@Summary		Restore data from objectstorage
@Description	Restore objectstorage from files to a objectstorage
@Tags			[Restore]
@Accept			json
@Produce		json
@Param			RequestBody		body	models.RestoreTask	true	"Parameters required for Restore"
@Success		200			{object}	models.BasicResponse	"Successfully Restore data"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/restore/objectstorage [post]

func RestoreRDBPostHandler added in v0.2.1

func RestoreRDBPostHandler(ctx echo.Context) error

RestoreRDBPostHandler godoc

@ID 			RestoreRDBPostHandler
@Summary		Restore data from MySQL
@Description	Restore MySQL from MySQL files to a MySQL database
@Tags			[Restore]
@Accept			json
@Produce		json
@Param			RequestBody		body	models.RestoreTask	true	"Parameters required for Restore"
@Success		200			{object}	models.BasicResponse	"Successfully Restore data"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/restore/rdbms [post]

func TaskRegisterHandler added in v0.2.1

func TaskRegisterHandler(ctx echo.Context) error

func UpdateBackupHandler added in v0.2.1

func UpdateBackupHandler(ctx echo.Context) error

UpdateBackupHandler godoc

@ID 			UpdateBackupHandler
@Summary		Update an existing Task
@Description	Update the details of an existing Task using its ID.
@Tags			[Backup]
@Accept			json
@Produce		json
@Param			id			path	string	true	"Task ID"
@Param			RequestBody	body	models.Schedule	true	"Parameters required for updating a Task"
@Success		200			{object}	models.BasicResponse	"Successfully updated the Task"
@Failure		404			{object}	models.BasicResponse	"Task not found"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/backup/{id} [put]

func UpdateGenerateHandler added in v0.2.1

func UpdateGenerateHandler(ctx echo.Context) error

UpdateGenerateHandler godoc

@ID 			UpdateGenerateHandler
@Summary		Update an existing Task
@Description	Update the details of an existing Task using its ID.
@Tags			[Generate]
@Accept			json
@Produce		json
@Param			id			path	string	true	"Task ID"
@Param			RequestBody	body	models.Schedule	true	"Parameters required for updating a Task"
@Success		200			{object}	models.BasicResponse	"Successfully updated the Task"
@Failure		404			{object}	models.BasicResponse	"Task not found"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/generate/{id} [put]

func UpdateMigrateHandler added in v0.2.1

func UpdateMigrateHandler(ctx echo.Context) error

UpdateMigrateHandler godoc

@ID 			UpdateMigrateHandler
@Summary		Update an existing Task
@Description	Update the details of an existing Task using its ID.
@Tags			[Migrate]
@Accept			json
@Produce		json
@Param			id			path	string	true	"Task ID"
@Param			RequestBody	body	models.Schedule	true	"Parameters required for updating a Task"
@Success		200			{object}	models.BasicResponse	"Successfully updated the Task"
@Failure		404			{object}	models.BasicResponse	"Task not found"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/migrate/{id} [put]

func UpdateRestoreHandler added in v0.2.1

func UpdateRestoreHandler(ctx echo.Context) error

UpdateRestoreHandler godoc

@ID 			UpdateRestoreHandler
@Summary		Update an existing Task
@Description	Update the details of an existing Task using its ID.
@Tags			[Restore]
@Accept			json
@Produce		json
@Param			id			path	string	true	"Task ID"
@Param			RequestBody	body	models.Schedule	true	"Parameters required for updating a Task"
@Success		200			{object}	models.BasicResponse	"Successfully updated the Task"
@Failure		404			{object}	models.BasicResponse	"Task not found"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/restore/{id} [put]

Types

type GenerateS3PostHandlerResponseBody

type GenerateS3PostHandlerResponseBody struct {
	models.BasicResponse
}

type ScheduleController added in v0.2.1

type ScheduleController struct {
	ScheduleService *task.FileScheduleManager
}

ScheduleController is a struct that holds a reference to the ScheduleService

func (*ScheduleController) CreateScheduleHandler added in v0.2.1

func (tc *ScheduleController) CreateScheduleHandler(ctx echo.Context) error

CreateScheduleHandler godoc

@ID 			CreateScheduleHandler
@Summary		Create a new Schedule
@Description	Create a new Schedule and store it in the system.
@Tags			[Schedule]
@Accept			json
@Produce		json
@Param			RequestBody		body	models.Schedule	true	"Parameters required for creating a Schedule"
@Success		200			{object}	models.BasicResponse	"Successfully created a Schedule"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/schedule [post]

func (*ScheduleController) DeleteScheduleHandler added in v0.2.1

func (tc *ScheduleController) DeleteScheduleHandler(ctx echo.Context) error

DeleteScheduleHandler godoc

@ID 			DeleteScheduleHandler
@Summary		Delete a Schedule
@Description	Delete an existing Schedule using its ID.
@Tags			[Schedule]
@Produce		json
@Param			id		path	string	true	"Schedule ID"
@Success		200		{object}	models.BasicResponse	"Successfully deleted the Schedule"
@Failure		404		{object}	models.BasicResponse	"Schedule not found"
@Router			/schedule/{id} [delete]

func (*ScheduleController) GetAllSchedulesHandler added in v0.2.1

func (tc *ScheduleController) GetAllSchedulesHandler(ctx echo.Context) error

GetAllSchedulesHandler godoc

@ID 			GetAllSchedulesHandler
@Summary		Get all Schedules
@Description	Retrieve a list of all Schedules in the system.
@Tags			[Schedule]
@Produce		json
@Success		200		{array}		models.Schedule	"Successfully retrieved all Schedules"
@Failure		500		{object}	models.BasicResponse	"Internal Server Error"
@Router			/schedule [get]

func (*ScheduleController) GetScheduleHandler added in v0.2.1

func (tc *ScheduleController) GetScheduleHandler(ctx echo.Context) error

GetScheduleHandler godoc

@ID 			GetScheduleHandler
@Summary		Get a Schedule by ID
@Description	Get the details of a Schedule using its ID.
@Tags			[Schedule]
@Accept			json
@Produce		json
@Param			id		path	string	true	"Schedule ID"
@Success		200		{object}	models.Schedule	"Successfully retrieved a Schedule"
@Failure		404		{object}	models.BasicResponse	"Schedule not found"
@Router			/schedule/{id} [get]

func (*ScheduleController) UpdateScheduleHandler added in v0.2.1

func (tc *ScheduleController) UpdateScheduleHandler(ctx echo.Context) error

UpdateScheduleHandler godoc

@ID 			UpdateScheduleHandler
@Summary		Update an existing Schedule
@Description	Update the details of an existing Schedule using its ID.
@Tags			[Schedule]
@Accept			json
@Produce		json
@Param			id			path	string	true	"Schedule ID"
@Param			RequestBody	body	models.Schedule	true	"Parameters required for updating a Schedule"
@Success		200			{object}	models.BasicResponse	"Successfully updated the Schedule"
@Failure		404			{object}	models.BasicResponse	"Schedule not found"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/schedule/{id} [put]

type TaskController added in v0.2.1

type TaskController struct {
	TaskService *task.FileScheduleManager
}

TaskController is a struct that holds a reference to the TaskService

func (*TaskController) ApplyResourceHandler added in v0.3.0

func (tc *TaskController) ApplyResourceHandler(ctx echo.Context) error

applyResourceHandler godoc

@ID 			applyResourceHandler
@Summary		Apply Resources
@Description	Execute the apply.sh script to set up resources.
@Tags			[Service]
@Produce		json
@Success		200	{object}	models.BasicResponse	"Successfully applied resources"
@Failure		500	{object}	models.BasicResponse	"Failed to apply resources"
@Router			/service/apply [post]

func (*TaskController) CreateTaskHandler added in v0.2.1

func (tc *TaskController) CreateTaskHandler(ctx echo.Context) error

CreateTaskHandler godoc

@ID 			CreateTaskHandler
@Summary		Create a new Task
@Description	Create a new Task and store it in the system.
@Tags			[Task]
@Accept			json
@Produce		json
@Param			RequestBody		body	models.Schedule	true	"Parameters required for creating a Task"
@Success		200			{object}	models.BasicResponse	"Successfully created a Task"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/task [post]

func (*TaskController) DeleteServiceAndTaskAllHandler added in v0.2.1

func (tc *TaskController) DeleteServiceAndTaskAllHandler(ctx echo.Context) error

DeleteServiceAndTaskAllHandler godoc

@ID 			DeleteServiceAndTaskAllHandler
@Summary		Delete a Task
@Description	Delete an All Service and Task.
@Tags			[Service]
@Produce		json
@Success		200		{object}	models.BasicResponse	"Successfully deleted the All Service"
@Failure		404		{object}	models.BasicResponse	"Clear All Task , Failed"
@Router			/service/clearAll [delete]

func (*TaskController) DeleteTaskHandler added in v0.2.1

func (tc *TaskController) DeleteTaskHandler(ctx echo.Context) error

DeleteTaskHandler godoc

@ID 			DeleteTaskHandler
@Summary		Delete a Task
@Description	Delete an existing Task using its ID.
@Tags			[Task]
@Produce		json
@Param			id		path	string	true	"Task ID"
@Success		200		{object}	models.BasicResponse	"Successfully deleted the Task"
@Failure		404		{object}	models.BasicResponse	"Task not found"
@Router			/task/{id} [delete]

func (*TaskController) DestroyResourceHandler added in v0.3.0

func (tc *TaskController) DestroyResourceHandler(ctx echo.Context) error

destroyResourceHandler godoc

@ID 			destroyResourceHandler
@Summary		Destroy Resources
@Description	Execute the destroy.sh script to destroy resources.
@Tags			[Service]
@Produce		json
@Success		200	{object}	models.BasicResponse	"Successfully destroyed resources"
@Failure		500	{object}	models.BasicResponse	"Failed to destroy resources"
@Router			/service/destroy [delete]

func (*TaskController) GetAllTasksHandler added in v0.2.1

func (tc *TaskController) GetAllTasksHandler(ctx echo.Context) error

GetAllTasksHandler godoc

@ID 			GetAllTasksHandler
@Summary		Get all Tasks
@Description	Retrieve a list of all Tasks in the system.
@Tags			[Task]
@Produce		json
@Success		200		{array}		models.Task	"Successfully retrieved all Tasks"
@Failure		500		{object}	models.BasicResponse	"Internal Server Error"
@Router			/task [get]

func (*TaskController) GetTaskHandler added in v0.2.1

func (tc *TaskController) GetTaskHandler(ctx echo.Context) error

GetTaskHandler godoc

@ID 			GetTaskHandler
@Summary		Get a Task by ID
@Description	Get the details of a Task using its ID.
@Tags			[Task]
@Accept			json
@Produce		json
@Param			id		path	string	true	"Task ID"
@Success		200		{object}	models.Task	"Successfully retrieved a Task"
@Failure		404		{object}	models.BasicResponse	"Task not found"
@Router			/task/{id} [get]

func (*TaskController) UpdateTaskHandler added in v0.2.1

func (tc *TaskController) UpdateTaskHandler(ctx echo.Context) error

UpdateTaskHandler godoc

@ID 			UpdateTaskHandler
@Summary		Update an existing Task
@Description	Update the details of an existing Task using its ID.
@Tags			[Task]
@Accept			json
@Produce		json
@Param			id			path	string	true	"Task ID"
@Param			RequestBody	body	models.Schedule	true	"Parameters required for updating a Task"
@Success		200			{object}	models.BasicResponse	"Successfully updated the Task"
@Failure		404			{object}	models.BasicResponse	"Task not found"
@Failure		500			{object}	models.BasicResponse	"Internal Server Error"
@Router			/task/{id} [put]

Jump to

Keyboard shortcuts

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