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 ¶
- func BackupHandler(ctx echo.Context) error
- func BackupNRDBPostHandler(ctx echo.Context) error
- func BackupOSPostHandler(ctx echo.Context) error
- func BackupRDBPostHandler(ctx echo.Context) error
- func DashBoardHandler(ctx echo.Context) error
- func DeleteBackupkHandler(ctx echo.Context) error
- func DeleteGeneratekHandler(ctx echo.Context) error
- func DeleteMigratekHandler(ctx echo.Context) error
- func DeleteRestorekHandler(ctx echo.Context) error
- func GenerateALIBABAGetHandler(ctx echo.Context) error
- func GenerateCredentialGetHandler(ctx echo.Context) error
- func GenerateDynamoDBGetHandler(ctx echo.Context) error
- func GenerateFirestoreGetHandler(ctx echo.Context) error
- func GenerateGCPGetHandler(ctx echo.Context) error
- func GenerateLinuxGetHandler(ctx echo.Context) error
- func GenerateLinuxPostHandler(ctx echo.Context) error
- func GenerateMongoDBGetHandler(ctx echo.Context) error
- func GenerateMySQLGetHandler(ctx echo.Context) error
- func GenerateNCPGetHandler(ctx echo.Context) error
- func GenerateNRDBMSPostHandler(ctx echo.Context) error
- func GenerateNoSQLGetHandler(ctx echo.Context) error
- func GenerateObjectStorageGetHandler(ctx echo.Context) error
- func GenerateObjectStoragePostHandler(ctx echo.Context) error
- func GenerateRDBMSPostHandler(ctx echo.Context) error
- func GenerateS3GetHandler(ctx echo.Context) error
- func GenerateWindowsGetHandler(ctx echo.Context) error
- func GenerateWindowsPostHandler(ctx echo.Context) error
- func GetAWSRegions() []string
- func GetAllBackupHandler(ctx echo.Context) error
- func GetAllGenerateHandler(ctx echo.Context) error
- func GetAllMigrateHandler(ctx echo.Context) error
- func GetAllRestoreHandler(ctx echo.Context) error
- func GetBackupHandler(ctx echo.Context) error
- func GetGCPRegions() []string
- func GetGenerateHandler(ctx echo.Context) error
- func GetMigrateHandler(ctx echo.Context) error
- func GetMigrationParamsFormFormData(form models.MigrationMySQLForm) models.MigrationMySQLParams
- func GetNCPRegions() []string
- func GetRestoreHandler(ctx echo.Context) error
- func MainGetHandler(ctx echo.Context) error
- func MigrationDynamoDBToFirestoreGetHandler(ctx echo.Context) error
- func MigrationDynamoDBToMongoDBGetHandler(ctx echo.Context) error
- func MigrationFirestoreToDynamoDBGetHandler(ctx echo.Context) error
- func MigrationFirestoreToMongoDBGetHandler(ctx echo.Context) error
- func MigrationGCPToLinuxGetHandler(ctx echo.Context) error
- func MigrationGCPToNCPGetHandler(ctx echo.Context) error
- func MigrationGCPToS3GetHandler(ctx echo.Context) error
- func MigrationGCPToWindowsGetHandler(ctx echo.Context) error
- func MigrationLinuxToGCPGetHandler(ctx echo.Context) error
- func MigrationLinuxToNCPGetHandler(ctx echo.Context) error
- func MigrationLinuxToS3GetHandler(ctx echo.Context) error
- func MigrationMongoDBToDynamoDBGetHandler(ctx echo.Context) error
- func MigrationMongoDBToFirestoreGetHandler(ctx echo.Context) error
- func MigrationMySQLGetHandler(ctx echo.Context) error
- func MigrationNCPToGCPGetHandler(ctx echo.Context) error
- func MigrationNCPToLinuxGetHandler(ctx echo.Context) error
- func MigrationNCPToS3GetHandler(ctx echo.Context) error
- func MigrationNCPToWindowsGetHandler(ctx echo.Context) error
- func MigrationNRDBMSPostHandler(ctx echo.Context) error
- func MigrationNoSQLHandler(ctx echo.Context) error
- func MigrationObjectStorageHandler(ctx echo.Context) error
- func MigrationObjectstoragePostHandler(ctx echo.Context) error
- func MigrationRDBMSPostHandler(ctx echo.Context) error
- func MigrationS3ToGCPGetHandler(ctx echo.Context) error
- func MigrationS3ToLinuxGetHandler(ctx echo.Context) error
- func MigrationS3ToNCPGetHandler(ctx echo.Context) error
- func MigrationS3ToWindowsGetHandler(ctx echo.Context) error
- func MigrationWindowsToGCPGetHandler(ctx echo.Context) error
- func MigrationWindowsToNCPGetHandler(ctx echo.Context) error
- func MigrationWindowsToS3GetHandler(ctx echo.Context) error
- func ObjectstorageBucketsHandler(ctx echo.Context) error
- func RestoreHandler(ctx echo.Context) error
- func RestoreNRDBPostHandler(ctx echo.Context) error
- func RestoreOSPostHandler(ctx echo.Context) error
- func RestoreRDBPostHandler(ctx echo.Context) error
- func TaskRegisterHandler(ctx echo.Context) error
- func UpdateBackupHandler(ctx echo.Context) error
- func UpdateGenerateHandler(ctx echo.Context) error
- func UpdateMigrateHandler(ctx echo.Context) error
- func UpdateRestoreHandler(ctx echo.Context) error
- type CredentialHandler
- func (c *CredentialHandler) CreateCredentialHandler(ctx echo.Context) error
- func (c *CredentialHandler) DeleteCredentialHandler(ctx echo.Context) error
- func (c *CredentialHandler) GetCredentialHandler(ctx echo.Context) error
- func (c *CredentialHandler) ListCredentialsHandler(ctx echo.Context) error
- func (c *CredentialHandler) UpdateCredentialHandler(ctx echo.Context) error
- type CredentialManager
- type DiagnoseHandler
- type GenerateS3PostHandlerResponseBody
- type HealthHandler
- type ScheduleController
- func (tc *ScheduleController) CreateScheduleHandler(ctx echo.Context) error
- func (tc *ScheduleController) DeleteScheduleHandler(ctx echo.Context) error
- func (tc *ScheduleController) GetAllSchedulesHandler(ctx echo.Context) error
- func (tc *ScheduleController) GetScheduleHandler(ctx echo.Context) error
- func (tc *ScheduleController) UpdateScheduleHandler(ctx echo.Context) error
- type TaskController
- func (tc *TaskController) ApplyResourceHandler(ctx echo.Context) error
- func (tc *TaskController) CreateTaskHandler(ctx echo.Context) error
- func (tc *TaskController) DeleteServiceAndTaskAllHandler(ctx echo.Context) error
- func (tc *TaskController) DeleteTaskHandler(ctx echo.Context) error
- func (tc *TaskController) DestroyResourceHandler(ctx echo.Context) error
- func (tc *TaskController) GetAllTasksHandler(ctx echo.Context) error
- func (tc *TaskController) GetTaskHandler(ctx echo.Context) error
- func (tc *TaskController) UpdateTaskHandler(ctx echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupHandler ¶
func BackupNRDBPostHandler ¶ added in v0.2.1
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
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
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 DeleteBackupkHandler ¶ added in v0.2.1
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
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
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
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 GenerateALIBABAGetHandler ¶ added in v0.5.3
func GenerateCredentialGetHandler ¶ added in v0.4.3
func GenerateGCPGetHandler ¶
func GenerateLinuxGetHandler ¶
func GenerateLinuxPostHandler ¶
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 GenerateMySQLGetHandler ¶
func GenerateNCPGetHandler ¶
func GenerateNRDBMSPostHandler ¶ added in v0.2.1
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 GenerateNoSQLGetHandler ¶ added in v0.4.4
func GenerateObjectStorageGetHandler ¶ added in v0.4.4
func GenerateObjectStoragePostHandler ¶ added in v0.2.1
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
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 GenerateWindowsPostHandler ¶
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
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
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
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
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
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
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
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 GetMigrationParamsFormFormData ¶
func GetMigrationParamsFormFormData(form models.MigrationMySQLForm) models.MigrationMySQLParams
func GetNCPRegions ¶
func GetNCPRegions() []string
func GetRestoreHandler ¶ added in v0.2.1
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 MainGetHandler ¶
func MigrationNRDBMSPostHandler ¶ added in v0.2.1
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 MigrationNoSQLHandler ¶ added in v0.4.4
No-SQL AWS DynamoDB to others
func MigrationObjectStorageHandler ¶ added in v0.4.4
func MigrationObjectstoragePostHandler ¶ added in v0.2.1
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
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 ObjectstorageBucketsHandler ¶ added in v0.4.7
func RestoreHandler ¶ added in v0.2.1
func RestoreNRDBPostHandler ¶ added in v0.2.1
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
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
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 UpdateBackupHandler ¶ added in v0.2.1
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
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
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
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 CredentialHandler ¶ added in v0.4.1
type CredentialHandler struct {
// contains filtered or unexported fields
}
func NewCredentialHandler ¶ added in v0.4.1
func NewCredentialHandler(db *gorm.DB) *CredentialHandler
func (*CredentialHandler) CreateCredentialHandler ¶ added in v0.4.1
func (c *CredentialHandler) CreateCredentialHandler(ctx echo.Context) error
CreateCredentialHandler godoc
@ID CreateCredentialHandler
@Summary save encrypted credential.
@Description save encrypted credential.
@Tags [Credential]
@Accept json
@Produce json
@Param RequestBody body models.CredentialCreateRequest true "Parameters required for Credential"
@Success 200 {object} models.BasicResponse "Successfully saved credential"
@Failure 400 {object} models.BasicResponse "Invalid Request"
@Failure 500 {object} models.BasicResponse "Internal Server Error"
@Router /credentials [post]
func (*CredentialHandler) DeleteCredentialHandler ¶ added in v0.4.1
func (c *CredentialHandler) DeleteCredentialHandler(ctx echo.Context) error
DeleteCredentialHandler godoc
@ID DeleteCredentialHandler
@Summary Delete a credential
@Description Delete an existing credential using its ID.
@Tags [Credential]
@Produce json
@Param id path string true "Credential ID"
@Success 200 {object} models.BasicResponse "Successfully deleted Credential"
@Failure 404 {object} models.BasicResponse "Credential not found"
@Router /credentials/{id} [delete]
func (*CredentialHandler) GetCredentialHandler ¶ added in v0.4.1
func (c *CredentialHandler) GetCredentialHandler(ctx echo.Context) error
GetCredentialHandler godoc
@ID GetCredentialHandler
@Summary Get a Credential by ID
@Description Get the details of a Credential using its ID.
@Tags [Credential]
@Accept json
@Produce json
@Param id path string true "Credential ID"
@Success 200 {object} models.Task "Successfully retrieved credential"
@Failure 404 {object} models.BasicResponse "Task not found"
@Router /credentials/{id} [get]
func (*CredentialHandler) ListCredentialsHandler ¶ added in v0.4.1
func (c *CredentialHandler) ListCredentialsHandler(ctx echo.Context) error
ListCredentialsHandler godoc
@ID ListCredentialsHandler
@Summary Get all credentials
@Description Retrieve a list of all credentials in the system.
@Tags [Credential]
@Produce json
@Success 200 {array} models.Task "Successfully retrieved all credentials"
@Failure 500 {object} models.BasicResponse "Internal Server Error"
@Router /credentials [get]
func (*CredentialHandler) UpdateCredentialHandler ¶ added in v0.4.1
func (c *CredentialHandler) UpdateCredentialHandler(ctx echo.Context) error
PUT /credentials/:id
type CredentialManager ¶ added in v0.4.3
type CredentialManager struct {
CredentialService *service.CredentialService
// contains filtered or unexported fields
}
type DiagnoseHandler ¶ added in v0.4.3
type DiagnoseHandler struct {
}
func NewDiagnoseHandler ¶ added in v0.4.3
func NewDiagnoseHandler() *DiagnoseHandler
func (*DiagnoseHandler) PostConnectionHandler ¶ added in v0.4.7
func (d *DiagnoseHandler) PostConnectionHandler(ctx echo.Context) error
func (*DiagnoseHandler) PostStatusDiagnose ¶ added in v0.4.3
func (d *DiagnoseHandler) PostStatusDiagnose(ctx echo.Context) error
func (*DiagnoseHandler) PostSysbenchDiagnose ¶ added in v0.4.3
func (d *DiagnoseHandler) PostSysbenchDiagnose(ctx echo.Context) error
type GenerateS3PostHandlerResponseBody ¶
type GenerateS3PostHandlerResponseBody struct {
models.BasicResponse
}
type HealthHandler ¶ added in v0.4.1
type HealthHandler struct {
// contains filtered or unexported fields
}
func NewHealthHandler ¶ added in v0.4.1
func NewHealthHandler(db *gorm.DB) *HealthHandler
func (*HealthHandler) GetSystemReadyHandler ¶ added in v0.4.1
func (h *HealthHandler) 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]
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 /tasks [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 /tasks/{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 /tasks [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 /tasks/{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 /tasks/{id} [put]