controller

package
v0.0.0-...-db31b74 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsReady = false
View Source
var OkMessage = model.SimpleMsg{}

Functions

func CheckReady

func CheckReady(c echo.Context) error

CheckReady func is for checking Honeybee server health.

@ID				health-check-readyz
@Summary		Check Ready
@Description	Check Honeybee is ready
@Tags [Admin]	System management
@Accept			json
@Produce		json
@Success		200 {object}	model.SimpleMsg			"Successfully get ready state."
@Failure		500	{object}	common.ErrorResponse	"Failed to check ready state."
@Router			/readyz [get]

func CreateConnectionInfo

func CreateConnectionInfo(c echo.Context) error

CreateConnectionInfo godoc

@ID				create-connection-info
@Summary		Create ConnectionInfo
@Description	Create the connection information.
@Tags			[On-premise] ConnectionInfo
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the SourceGroup"
@Param			ConnectionInfo body model.CreateConnectionInfoReq true "Connection information of the node."
@Success		200	{object}	model.ConnectionInfo	"Successfully register the connection information"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to register the connection information"
@Router			/source_group/{sgId}/connection_info [post]

func CreateSourceGroup

func CreateSourceGroup(c echo.Context) error

CreateSourceGroup godoc

@ID				register-source-group
@Summary		Register SourceGroup
@Description	Register the source group.
@Tags			[On-premise] SourceGroup
@Accept			json
@Produce		json
@Param			SourceGroup body model.CreateSourceGroupReq true "source group of the node."
@Success		200	{object}	model.SourceGroupRes		"Successfully register the source group"
@Failure		400	{object}	common.ErrorResponse		"Sent bad request."
@Failure		500	{object}	common.ErrorResponse		"Failed to register the source group"
@Router			/source_group [post]

func DeleteConnectionInfo

func DeleteConnectionInfo(c echo.Context) error

DeleteConnectionInfo godoc

@ID				delete-connection-info
@Summary		Delete ConnectionInfo
@Description	Delete the connection information.
@Tags			[On-premise] ConnectionInfo
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the SourceGroup"
@Param			connId path string true "ID of the connectionInfo"
@Success		200	{object}	model.SimpleMsg			"Successfully delete the connection information"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to delete the connection information"
@Router			/source_group/{sgId}/connection_info/{connId} [delete]

func DeleteSourceGroup

func DeleteSourceGroup(c echo.Context) error

DeleteSourceGroup godoc

@ID				delete-source-group
@Summary		Delete SourceGroup
@Description	Delete the source group.
@Tags			[On-premise] SourceGroup
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the SourceGroup"
@Success		200	{object}	model.SimpleMsg			"Successfully delete the source group"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to delete the source group"
@Router			/source_group/{sgId} [delete]

func GetBenchmarkInfo

func GetBenchmarkInfo(c echo.Context) error

GetBenchmarkInfo godoc

@ID				get-benchmark-info
@Summary		Get Benchmark Info
@Description	Get the benchmark information of the connection information.
@Tags			[Import] BenchmarkInfo
@Accept			json
@Produce		json
@Param			connId path string true "ID of the connection info"
@Success		200	{object}	model.Benchmark			"Successfully get information of the benchmark."
@Success		200	{object}	model.SavedBenchmarkInfo		"Successfully get information of the benchmark."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get information of the benchmark."
@Router			/bench/{connId} [get]

func GetConnectionInfo

func GetConnectionInfo(c echo.Context) error

GetConnectionInfo godoc

@ID				get-connection-info
@Summary		Get ConnectionInfo
@Description	Get the connection information.
@Tags			[On-premise] ConnectionInfo
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the SourceGroup"
@Param			connId path string true "ID of the connectionInfo"
@Success		200	{object}	model.ConnectionInfo	"Successfully get the connection information"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get the connection information"
@Router			/source_group/{sgId}/connection_info/{connId} [get]

func GetConnectionInfoDirectly

func GetConnectionInfoDirectly(c echo.Context) error

GetConnectionInfoDirectly godoc

@ID				get-connection-info-directly
@Summary		Get ConnectionInfo Directly
@Description	Get the connection information directly.
@Tags			[On-premise] ConnectionInfo
@Accept			json
@Produce		json
@Param			connId path string true "ID of the connectionInfo"
@Success		200	{object}	model.ConnectionInfo	"Successfully get the connection information"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get the connection information"
@Router			/connection_info/{connId} [get]

func GetDataInfo

func GetDataInfo(c echo.Context) error

GetDataInfo godoc

@ID				get-data-info
@Summary		Get Data Information
@Description	Get the data information of the connection information.
@Tags			[Get] Get source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Param			connId path string true "ID of the connection info."
@Success		200	{object}	data.MinIOData		"Successfully get information of the data."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get information of the data."
@Router			/source_group/{sgId}/connection_info/{connId}/data [get]

func GetDataInfoSourceGroup

func GetDataInfoSourceGroup(c echo.Context) error

GetDataInfoSourceGroup godoc

@ID				get-data-info-source-group
@Summary		Get Data Information Source Group
@Description	Get the data information for all connections in the source group.
@Tags			[Get] Get source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Success		200	{object}	model.DataInfoList	"Successfully get information of the data."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get information of the data."
@Router			/source_group/{sgId}/data [get]

func GetHelmInfo

func GetHelmInfo(c echo.Context) error

GetHelmInfo godoc

@ID				get-helm-info
@Summary		Get Helm Information
@Description	Get the helm information of the connection information.
@Tags			[Get] Get source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Param			connId path string true "ID of the connection info."
@Success		200	{object}	kubernetes.Helm		"Successfully get information of the kubernetes."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get information of the kubernetes."
@Router			/source_group/{sgId}/connection_info/{connId}/helm [get]

func GetHelmInfoSourceGroup

func GetHelmInfoSourceGroup(c echo.Context) error

GetHelmInfoSourceGroup godoc

@ID				get-helm-info-source-group
@Summary		Get helm Information Source Group
@Description	Get the helm information for all connections in the source group.
@Tags			[Get] Get source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Success		200	{object}	model.HelmInfoList	"Successfully get information of the helm."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get information of the helm."
@Router		/source_group/{sgId}/helm [get]

func GetInfraInfo

func GetInfraInfo(c echo.Context) error

GetInfraInfo godoc

@ID				get-infra-info
@Summary		Get Infra Information
@Description	Get the infra information of the connection information.
@Tags			[Get] Get source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Param			connId path string true "ID of the connection info."
@Success		200	{object}	infra.Infra				"Successfully get information of the infra."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get information of the infra."
@Router			/source_group/{sgId}/connection_info/{connId}/infra [get]

func GetInfraInfoRefined

func GetInfraInfoRefined(c echo.Context) error

GetInfraInfoRefined godoc

@ID				get-infra-info-refined
@Summary		Get Refined Infra Information
@Description	Get the refined infra information of the connection information.
@Tags			[Get] Get refined source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Param			connId path string true "ID of the connection info."
@Success		200	{object}	inframodel.OnpremiseInfraModel	"Successfully get refined information of the infra."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get refined information of the infra."
@Router			/source_group/{sgId}/connection_info/{connId}/infra/refined [get]

func GetInfraInfoSourceGroup

func GetInfraInfoSourceGroup(c echo.Context) error

GetInfraInfoSourceGroup godoc

@ID				get-infra-info-source-group
@Summary		Get Infra Information Source Group
@Description	Get the infra information for all connections in the source group.
@Tags			[Get] Get source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Success		200	{object}	model.InfraInfoList		"Successfully get information of the infra."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get information of the infra."
@Router			/source_group/{sgId}/infra [get]

func GetInfraInfoSourceGroupRefined

func GetInfraInfoSourceGroupRefined(c echo.Context) error

GetInfraInfoSourceGroupRefined godoc

@ID				get-infra-info-source-group-refined
@Summary		Get Refined Infra Information Source Group
@Description	Get the refined infra information for all connections in the source group.
@Tags			[Get] Get refined source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Success		200	{object}	inframodel.OnpremiseInfraModel		"Successfully get refined information of the infra."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get refined information of the infra."
@Router		/source_group/{sgId}/infra/refined [get]

func GetKubernetesInfo

func GetKubernetesInfo(c echo.Context) error

GetKubernetesInfo godoc

@ID				get-kubernetes-info
@Summary		Get Kubernetes Information
@Description	Get the kubernetes information of the connection information.
@Tags			[Get] Get source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Param			connId path string true "ID of the connection info."
@Success		200	{object}	kubernetes.Kubernetes		"Successfully get information of the kubernetes."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get information of the kubernetes."
@Router			/source_group/{sgId}/connection_info/{connId}/kubernetes [get]

func GetKubernetesInfoSourceGroup

func GetKubernetesInfoSourceGroup(c echo.Context) error

GetKubernetesInfoSourceGroup godoc

@ID				get-kubernetes-info-source-group
@Summary		Get Kubernetes Information Source Group
@Description	Get the kubernetes information for all connections in the source group.
@Tags			[Get] Get source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Success		200	{object}	model.KubernetesInfoList	"Successfully get information of the kubernetes."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get information of the kubernetes."
@Router		/source_group/{sgId}/kubernetes [get]

func GetSoftwareInfo

func GetSoftwareInfo(c echo.Context) error

GetSoftwareInfo godoc

@ID				get-software-info
@Summary		Get Software Information
@Description	Get the software information of the connection information.
@Tags			[Get] Get source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Param			connId path string true "ID of the connection info."
@Success		200	{object}	software.Software		"Successfully get information of the software."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get information of the software."
@Router			/source_group/{sgId}/connection_info/{connId}/software [get]

func GetSoftwareInfoRefined

func GetSoftwareInfoRefined(c echo.Context) error

GetSoftwareInfoRefined godoc

@ID				get-software-info-refined
@Summary		Get Refined Software Information
@Description	Get the refined software information of the connection information.
@Tags			[Get] Get refined source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Param			connId path string true "ID of the connection info."
@Success		200	{object}	softwaremodel.SourceConnectionInfoSoftwareProperty	"Successfully get refined information of softwares."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get refined information of the infra."
@Router			/source_group/{sgId}/connection_info/{connId}/software/refined [get]

func GetSoftwareInfoSourceGroup

func GetSoftwareInfoSourceGroup(c echo.Context) error

GetSoftwareInfoSourceGroup godoc

@ID				get-software-info-source-group
@Summary		Get Software Information Source Group
@Description	Get the software information for all connections in the source group.
@Tags			[Get] Get source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Success		200	{object}	model.SoftwareInfoList	"Successfully get information of the software."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get information of the software."
@Router			/source_group/{sgId}/software [get]

func GetSoftwareInfoSourceGroupRefined

func GetSoftwareInfoSourceGroupRefined(c echo.Context) error

GetSoftwareInfoSourceGroupRefined godoc

@ID				get-software-info-source-group-refined
@Summary		Get Refined Software Information Source Group
@Description	Get the refined software information for all connections in the source group.
@Tags			[Get] Get refined source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Success		200	{object}	softwaremodel.SourceGroupSoftwareProperty		"Successfully get refined information of softwares."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get refined information of the software."
@Router		/source_group/{sgId}/software/refined [get]

func GetSourceGroup

func GetSourceGroup(c echo.Context) error

GetSourceGroup godoc

@ID				get-source-group
@Summary		Get SourceGroup
@Description	Get the source group.
@Tags			[On-premise] SourceGroup
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the SourceGroup"
@Success		200	{object}	model.SourceGroupRes	"Successfully get the source group"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get the source group"
@Router			/source_group/{sgId} [get]

func ImportData

func ImportData(c echo.Context) error

ImportData godoc

@ID				import-data
@Summary		Import data
@Description	Import the data information.
@Tags			[Import] Import source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Param			connId path string true "ID of the connection info."
@Success		200	{object}	model.SavedDataInfo	"Successfully saved the data information"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to save the data information"
@Router			/source_group/{sgId}/connection_info/{connId}/import/data [post]

func ImportDataSourceGroup

func ImportDataSourceGroup(c echo.Context) error

ImportDataSourceGroup godoc

@ID				import-data-source-group
@Summary		Import Data Source Group
@Description	Import data information for all connections in the source group.
@Tags			[Import] Import source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Success		200	{object}	[]model.SavedDataInfo	"Successfully saved the data information"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to save the data information"
@Router			/source_group/{sgId}/import/data [post]

func ImportHelm

func ImportHelm(c echo.Context) error

ImportHelm godoc

@ID				import-helm
@Summary		Import helm
@Description	Import the helm information.
@Tags			[Import] Import source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Param			connId path string true "ID of the connection info."
@Success		200	{object}	model.SavedHelmInfo	"Successfully saved the helm information"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to save the helm information"
@Router			/source_group/{sgId}/connection_info/{connId}/import/helm [post]

func ImportHelmSourceGroup

func ImportHelmSourceGroup(c echo.Context) error

ImportHelmSourceGroup godoc

@ID				import-helm-source-group
@Summary		Import helm Source Group
@Description	Import helm information for all connections in the source group.
@Tags			[Import] Import source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Success		200	{object}	[]model.SavedHelmInfo	"Successfully saved the helm information"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to save the helm information"
@Router			/source_group/{sgId}/import/helm [post]

func ImportInfra

func ImportInfra(c echo.Context) error

ImportInfra godoc

@ID				import-infra
@Summary		Import Infra
@Description	Import the infra information.
@Tags			[Import] Import source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Param			connId path string true "ID of the connection info."
@Success		200	{object}	model.SavedInfraInfo	"Successfully saved the infra information"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to save the infra information"
@Router			/source_group/{sgId}/connection_info/{connId}/import/infra [post]

func ImportInfraSourceGroup

func ImportInfraSourceGroup(c echo.Context) error

ImportInfraSourceGroup godoc

@ID				import-infra-source-group
@Summary		Import Infra Source Group
@Description	Import infra information for all connections in the source group.
@Tags		[Import] Import source info
@Accept		json
@Produce		json
@Param		sgId path string true "ID of the source group."
@Success		200	{object}	[]model.SavedInfraInfo	"Successfully saved the infra information"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to save the infra information"
@Router		/source_group/{sgId}/import/infra [post]

func ImportKubernetes

func ImportKubernetes(c echo.Context) error

ImportKubernetes godoc

@ID				import-kubernetes
@Summary		Import kubernetes
@Description	Import the kubernetes information.
@Tags			[Import] Import source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Param			connId path string true "ID of the connection info."
@Success		200	{object}	model.SavedKubernetesInfo	"Successfully saved the kubernetes information"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to save the kubernetes information"
@Router			/source_group/{sgId}/connection_info/{connId}/import/kubernetes [post]

func ImportKubernetesSourceGroup

func ImportKubernetesSourceGroup(c echo.Context) error

ImportKubernetesSourceGroup godoc

@ID				import-kubernetes-source-group
@Summary		Import Kubernetes Source Group
@Description	Import kubernetes information for all connections in the source group.
@Tags			[Import] Import source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Success		200	{object}	[]model.SavedKubernetesInfo	"Successfully saved the kubernetes information"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to save the kubernetes information"
@Router			/source_group/{sgId}/import/kubernetes [post]

func ImportSoftware

func ImportSoftware(c echo.Context) error

ImportSoftware godoc

@ID				import-software
@Summary		Import software
@Description	Import the software information.
@Tags			[Import] Import source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Param			connId path string true "ID of the connection info."
@Param			show_default_packages query bool false "Enable for show all packages include default packages. (Default: false)"
@Success		200	{object}	model.SavedSoftwareInfo	"Successfully saved the software information"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to save the software information"
@Router		/source_group/{sgId}/connection_info/{connId}/import/software [post]

func ImportSoftwareSourceGroup

func ImportSoftwareSourceGroup(c echo.Context) error

ImportSoftwareSourceGroup godoc

@ID				import-software-source-group
@Summary		Import Software Source Group
@Description	Import software information for all connections in the source group.
@Tags			[Import] Import source info
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the source group."
@Param			show_default_packages query bool false "Enable for show all packages include default packages. (Default: false)"
@Success		200	{object}	[]model.SavedSoftwareInfo	"Successfully saved the software information"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to save the software information"
@Router			/source_group/{sgId}/import/software [post]

func ListConnectionInfo

func ListConnectionInfo(c echo.Context) error

ListConnectionInfo godoc

@ID				list-connection-info
@Summary		List ConnectionInfo
@Description	Get a list of connection information.
@Tags			[On-premise] ConnectionInfo
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the SourceGroup"
@Param			page query string false "Page of the connection information list."
@Param			row query string false "Row of the connection information list."
@Param			name query string false "Name of the connection information."
@Param			description query string false "Description of the connection information."
@Param			ip_address query string false "IP address of the connection information."
@Param			ssh_port query string false "SSH port of the connection information."
@Param			user query string false "User of the connection information."
@Success		200	{object}	[]model.ListConnectionInfoRes	"Successfully get a list of connection information."
@Failure		400	{object}	common.ErrorResponse			"Sent bad request."
@Failure		500	{object}	common.ErrorResponse			"Failed to get a list of connection information."
@Router			/source_group/{sgId}/connection_info [get]

func ListSourceGroup

func ListSourceGroup(c echo.Context) error

ListSourceGroup godoc

@ID				list-source-group
@Summary		List SourceGroup
@Description	Get a list of source group.
@Tags			[On-premise] SourceGroup
@Accept			json
@Produce		json
@Param			page query string false "Page of the source group list."
@Param			row query string false "Row of the source group list."
@Param			name query string false "Name of the source group."
@Param			description query string false "Description of the source group."
@Success		200	{object}	[]model.ListSourceGroupRes		"Successfully get a list of source group."
@Failure		400	{object}	common.ErrorResponse			"Sent bad request."
@Failure		500	{object}	common.ErrorResponse			"Failed to get a list of source group."
@Router			/source_group [get]

func RefreshConnectionInfoStatus

func RefreshConnectionInfoStatus(c echo.Context) error

RefreshConnectionInfoStatus godoc

@ID				refresh-connection-info-status
@Summary		Refresh Connection Info Status
@Description	Refresh the connection info status.
@Tags			[On-premise] ConnectionInfo
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the SourceGroup"
@Param			connId path string true "ID of the connectionInfo"
@Success		200	{object}	model.SimpleMsg			"Successfully refresh the source group"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to refresh the source group"
@Router			/source_group/{sgId}/connection_info/{connId}/refresh [put]

func RefreshConnectionInfoStatusDirectly

func RefreshConnectionInfoStatusDirectly(c echo.Context) error

RefreshConnectionInfoStatusDirectly godoc

@ID				refresh-connection-info-status-directly
@Summary		Refresh Connection Info Status Directly
@Description	Refresh the connection info status directly.
@Tags			[On-premise] ConnectionInfo
@Accept			json
@Produce		json
@Param			connId path string true "ID of the connectionInfo"
@Success		200	{object}	model.SimpleMsg			"Successfully refresh the source group"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to refresh the source group"
@Router			/connection_info/{connId}/refresh [put]

func RefreshSourceGroupConnectionInfoStatus

func RefreshSourceGroupConnectionInfoStatus(c echo.Context) error

RefreshSourceGroupConnectionInfoStatus godoc

@ID				refresh-source-group-connection-info-status
@Summary		Refresh SourceGroup Connection Info Status
@Description	Refresh connection info status of the source group.
@Tags			[On-premise] SourceGroup
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the SourceGroup"
@Success		200	{object}	model.SimpleMsg			"Successfully refresh the source group"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to refresh the source group"
@Router			/source_group/{sgId}/refresh [put]

func RegisterTargetInfoToSourceGroup

func RegisterTargetInfoToSourceGroup(c echo.Context) error

RegisterTargetInfoToSourceGroup godoc

@ID				register-target-to-source-group
@Summary		Register TargetInfo to SourceGroup
@Description	Register target information to the source group.
@Tags			[On-premise] SourceGroup
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the SourceGroup"
@Param			TargetInfo body model.RegisterTargetInfoReq true "Target info data received from infra migration via beetle."
@Success		200	{object}	model.SourceGroup	"Successfully update the source group"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to update the source group"
@Router			/source_group/{sgId}/target [post]

func RunBenchmarkInfo

func RunBenchmarkInfo(c echo.Context) error

RunBenchmarkInfo godoc

@ID				run-benchmark-info
@Summary		Run Benchmark Information
@Description	Run the benchmark information of the connection information. If no Benchmark Agent is present on the connected server, it will be automatically installed, and the benchmark will be executed.
@Tags			[Import] BenchmarkInfo
@Accept			json
@Produce		json
@Param			connId path string true "ID of the connection info"
@Param			types query string false "Comma-separated types for benchmarking (e.g., cpus, cpum, memR, memW, fioR, fioW, dbR, dbW)" default(cpus,cpum)
@Success		200	{object}	model.Benchmark			"Successfully get information of the benchmark."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to get information of the benchmark."
@Router			/bench/{connId}/run [post]

func StopBenchmarkInfo

func StopBenchmarkInfo(c echo.Context) error

StopBenchmarkInfo godoc

@ID				stop-benchmark
@Summary		Stop Benchmark
@Description	Stop the benchmark
@Tags			[Import] BenchmarkInfo
@Accept			json
@Produce		json
@Param			connId path string true "ID of the connection info"
@Success		200	{object}	model.SimpleMsg				"Benchmark Stopped."
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to stop of the benchmark."
@Router			/bench/{connId}/stop [post]

func UpdateConnectionInfo

func UpdateConnectionInfo(c echo.Context) error

UpdateConnectionInfo godoc

@ID				update-connection-info
@Summary		Update ConnectionInfo
@Description	Update the connection information.
@Tags			[On-premise] ConnectionInfo
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the SourceGroup"
@Param			connId path string true "ID of the connectionInfo"
@Param			ConnectionInfo body model.CreateConnectionInfoReq true "Connection information to modify."
@Success		200	{object}	model.ConnectionInfo	"Successfully update the connection information"
@Failure		400	{object}	common.ErrorResponse	"Sent bad request."
@Failure		500	{object}	common.ErrorResponse	"Failed to update the connection information"
@Router			/source_group/{sgId}/connection_info/{connId} [put]

func UpdateSourceGroup

func UpdateSourceGroup(c echo.Context) error

UpdateSourceGroup godoc

@ID				update-source-group
@Summary		Update SourceGroup
@Description	Update the source group.
@Tags			[On-premise] SourceGroup
@Accept			json
@Produce		json
@Param			sgId path string true "ID of the SourceGroup"
@Param			SourceGroup body model.UpdateSourceGroupReq true	"source group to modify."
@Success		200	{object}	model.SourceGroup					"Successfully update the source group"
@Failure		400	{object}	common.ErrorResponse				"Sent bad request."
@Failure		500	{object}	common.ErrorResponse				"Failed to update the source group"
@Router			/source_group/{sgId} [put]

Types

This section is empty.

Jump to

Keyboard shortcuts

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