Documentation ¶
Index ¶
- func CheckInfracodeForObjectStorage(c echo.Context) error
- func CheckInfracodeForSqlDb(c echo.Context) error
- func CheckInfracodeOfGcpAwsVpn(c echo.Context) error
- func CheckInfracodeOfGcpAzureVpn(c echo.Context) error
- func CheckInfracodeOfTestEnv(c echo.Context) error
- func ClearEnvOfObjectStorage(c echo.Context) error
- func ClearEnvOfSqlDb(c echo.Context) error
- func ClearGcpAwsVpn(c echo.Context) error
- func ClearGcpAzureVpn(c echo.Context) error
- func ClearTestEnv(c echo.Context) error
- func CreateGcpAwsVpn(c echo.Context) error
- func CreateGcpAzureVpn(c echo.Context) error
- func CreateInfracodeForObjectStorage(c echo.Context) error
- func CreateInfracodeForSqlDb(c echo.Context) error
- func CreateInfracodeOfGcpAwsVpn(c echo.Context) error
- func CreateInfracodeOfGcpAzureVpn(c echo.Context) error
- func CreateInfracodeOfTestEnv(c echo.Context) error
- func CreateObjectStorage(c echo.Context) error
- func CreateSqlDb(c echo.Context) error
- func CreateTestEnv(c echo.Context) error
- func CreateUser(c echo.Context) error
- func DeleteUser(c echo.Context) error
- func DestroyGcpAwsVpn(c echo.Context) error
- func DestroyGcpAzureVpn(c echo.Context) error
- func DestroyObjectStorage(c echo.Context) error
- func DestroySqlDb(c echo.Context) error
- func DestroyTestEnv(c echo.Context) error
- func EraseTerrarium(c echo.Context) error
- func GetRequestStatusOfGcpAwsVpn(c echo.Context) error
- func GetRequestStatusOfGcpAzureVpn(c echo.Context) error
- func GetRequestStatusOfObjectStorage(c echo.Context) error
- func GetRequestStatusOfSqlDb(c echo.Context) error
- func GetRequestStatusOfTestEnv(c echo.Context) error
- func GetResouceInfoOfTestEnv(c echo.Context) error
- func GetResourceInfoOfGcpAwsVpn(c echo.Context) error
- func GetResourceInfoOfGcpAzureVpn(c echo.Context) error
- func GetResourceInfoOfObjectStorage(c echo.Context) error
- func GetResourceInfoOfSqlDb(c echo.Context) error
- func GetUser(c echo.Context) error
- func GetUsers(c echo.Context) error
- func HTTPVersion(c echo.Context) error
- func InitEnvForGcpAwsVpn(c echo.Context) error
- func InitEnvForGcpAzureVpn(c echo.Context) error
- func InitEnvForObjectStorage(c echo.Context) error
- func InitEnvForSqlDb(c echo.Context) error
- func InitTerrariumForTestEnv(c echo.Context) error
- func IssueTerrarium(c echo.Context) error
- func PatchUser(c echo.Context) error
- func ReadAllTerrarium(c echo.Context) error
- func ReadTerrarium(c echo.Context) error
- func Readyz(c echo.Context) error
- func TofuVersion(c echo.Context) error
- func UpdateUser(c echo.Context) error
- type CreateUserRequest
- type CreateUserResponse
- type GetUserResponse
- type GetUsersResponse
- type PatchUserRequest
- type PatchUserResponse
- type UpdateUserRequest
- type UpdateUserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckInfracodeForObjectStorage ¶ added in v0.0.17
func CheckInfracodeForObjectStorage(c echo.Context) error
CheckInfracodeForObjectStorage godoc @Summary Check and show changes by the current infracode @Description Check and show changes by the current infracode @Tags [Object Storage] Operations @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param x-request-id header string false "Custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/object-storage/plan [post]
func CheckInfracodeForSqlDb ¶ added in v0.0.11
func CheckInfracodeForSqlDb(c echo.Context) error
CheckInfracodeForSqlDb godoc @Summary Check and show changes by the current infracode @Description Check and show changes by the current infracode @Tags [SQL Database] Operations @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param x-request-id header string false "Custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/sql-db/plan [post]
func CheckInfracodeOfGcpAwsVpn ¶
func CheckInfracodeOfGcpAwsVpn(c echo.Context) error
CheckInfracodeOfGcpAwsVpn godoc @Summary Check and show changes by the current infracode to configure GCP to AWS VPN tunnels @Description Check and show changes by the current infracode to configure GCP to AWS VPN tunnels @Tags [VPN] GCP to AWS VPN tunnel configuration @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param x-request-id header string false "Custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/vpn/gcp-aws/plan [post]
func CheckInfracodeOfGcpAzureVpn ¶
func CheckInfracodeOfGcpAzureVpn(c echo.Context) error
CheckInfracodeOfGcpAzureVpn godoc @Summary Check and show changes by the current infracode to configure GCP to Azure VPN tunnels @Description Check and show changes by the current infracode to configure GCP to Azure VPN tunnels @Tags [VPN] GCP to Azure VPN tunnel configuration (under development) @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param x-request-id header string false "Custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/vpn/gcp-azure/plan [post]
func CheckInfracodeOfTestEnv ¶
func CheckInfracodeOfTestEnv(c echo.Context) error
CheckInfracodeOfTestEnv godoc @Summary Check the infracode and show changes of test environment @Description Check the infracode and show changes of test environment @Tags [Test env] Test environment management @Accept json @Produce json @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 503 {object} model.Response "Service Unavailable" @Router /test-env/plan [post]
func ClearEnvOfObjectStorage ¶ added in v0.0.17
func ClearEnvOfObjectStorage(c echo.Context) error
ClearEnvOfObjectStorage godoc @Summary Clear the entire directory and configuration files @Description Clear the entire directory and configuration files @Tags [Object Storage] Operations @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param action query string false "Action" Enums(force) default() @Param x-request-id header string false "Custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/object-storage/env [delete]
func ClearEnvOfSqlDb ¶ added in v0.0.13
func ClearEnvOfSqlDb(c echo.Context) error
ClearEnvOfSqlDb godoc @Summary Clear the entire directory and configuration files @Description Clear the entire directory and configuration files @Tags [SQL Database] Operations @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param action query string false "Action" Enums(force) default() @Param x-request-id header string false "Custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/sql-db/env [delete]
func ClearGcpAwsVpn ¶
func ClearGcpAwsVpn(c echo.Context) error
ClearGcpAwsVpn godoc @Summary Clear the entire directory and configuration files @Description Clear the entire directory and configuration files @Tags [VPN] GCP to AWS VPN tunnel configuration @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param x-request-id header string false "Custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/vpn/gcp-aws/env [delete]
func ClearGcpAzureVpn ¶
func ClearGcpAzureVpn(c echo.Context) error
ClearGcpAzureVpn godoc @Summary Clear the entire directory and configuration files @Description Clear the entire directory and configuration files @Tags [VPN] GCP to Azure VPN tunnel configuration (under development) @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param x-request-id header string false "Custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/vpn/gcp-azure/env [delete]
func ClearTestEnv ¶
func ClearTestEnv(c echo.Context) error
ClearTestEnv godoc @Summary Clear the entire directory and configuration files @Description Clear the entire directory and configuration files @Tags [Test env] Test environment management @Accept json @Produce json @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 503 {object} model.Response "Service Unavailable" @Router /test-env/env [delete]
func CreateGcpAwsVpn ¶
func CreateGcpAwsVpn(c echo.Context) error
CreateGcpAwsVpn godoc @Summary Create network resources for VPN tunnel in GCP and AWS @Description Create network resources for VPN tunnel in GCP and AWS @Tags [VPN] GCP to AWS VPN tunnel configuration @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param x-request-id header string false "Custom request ID" @Success 201 {object} model.Response "Created" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/vpn/gcp-aws [post]
func CreateGcpAzureVpn ¶
func CreateGcpAzureVpn(c echo.Context) error
CreateGcpAzureVpn godoc @Summary Create network resources for VPN tunnel in GCP and Azure @Description Create network resources for VPN tunnel in GCP and Azure @Tags [VPN] GCP to Azure VPN tunnel configuration (under development) @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param x-request-id header string false "Custom request ID" @Success 201 {object} model.Response "Created" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/vpn/gcp-azure [post]
func CreateInfracodeForObjectStorage ¶ added in v0.0.17
func CreateInfracodeForObjectStorage(c echo.Context) error
CreateInfracodeForObjectStorage godoc @Summary Create the infracode for Object Storage @Description Create the infracode for Object Storage @Tags [Object Storage] Operations @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param ParamsForInfracode body model.CreateInfracodeOfObjectStorageRequest true "Parameters of infracode for Object Storage" @Param x-request-id header string false "Custom request ID" @Success 201 {object} model.Response "Created" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/object-storage/infracode [post]
func CreateInfracodeForSqlDb ¶ added in v0.0.11
func CreateInfracodeForSqlDb(c echo.Context) error
CreateInfracodeForSqlDb godoc @Summary Create the infracode for SQL database @Description Create the infracode for SQL database @Tags [SQL Database] Operations @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param ParamsForInfracode body model.CreateInfracodeOfSqlDbRequest true "Parameters of infracode for SQL database" @Param x-request-id header string false "Custom request ID" @Success 201 {object} model.Response "Created" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/sql-db/infracode [post]
func CreateInfracodeOfGcpAwsVpn ¶
func CreateInfracodeOfGcpAwsVpn(c echo.Context) error
CreateInfracodeOfGcpAwsVpn godoc @Summary Create the infracode to configure GCP to AWS VPN tunnels @Description Create the infracode to configure GCP to AWS VPN tunnels @Tags [VPN] GCP to AWS VPN tunnel configuration @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param ParamsForInfracode body model.CreateInfracodeOfGcpAwsVpnRequest true "Parameters requied to create the infracode to configure GCP to AWS VPN tunnels" @Param x-request-id header string false "Custom request ID" @Success 201 {object} model.Response "Created" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/vpn/gcp-aws/infracode [post]
func CreateInfracodeOfGcpAzureVpn ¶
func CreateInfracodeOfGcpAzureVpn(c echo.Context) error
CreateInfracodeOfGcpAzureVpn godoc @Summary Create the infracode to configure GCP to Azure VPN tunnels @Description Create the infracode to configure GCP to Azure VPN tunnels @Tags [VPN] GCP to Azure VPN tunnel configuration (under development) @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param ParamsForInfracode body model.CreateInfracodeOfGcpAzureVpnRequest true "Parameters requied to create the infracode to configure GCP to Azure VPN tunnels" @Param x-request-id header string false "Custom request ID" @Success 201 {object} model.Response "Created" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/vpn/gcp-azure/infracode [post]
func CreateInfracodeOfTestEnv ¶
func CreateInfracodeOfTestEnv(c echo.Context) error
CreateInfrcodeOfGcpAzureVpn godoc @Summary Create the infracode to configure test environment @Description Create the infracode to configure test environment @Tags [Test env] Test environment management @Accept json @Produce json @Param ParamsForInfracode body model.CreateInfracodeOfTestEnvRequest true "Parameters requied to create the infracode to configure test environment" @Success 201 {object} model.Response "Created" @Failure 400 {object} model.Response "Bad Request" @Failure 503 {object} model.Response "Service Unavailable" @Router /test-env/infracode [post]
func CreateObjectStorage ¶ added in v0.0.17
func CreateObjectStorage(c echo.Context) error
CreateObjectStorage godoc @Summary Create Object Storage @Description Create Object Storage @Tags [Object Storage] Operations @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param x-request-id header string false "Custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/object-storage [post]
func CreateSqlDb ¶ added in v0.0.11
func CreateSqlDb(c echo.Context) error
CreateSqlDb godoc @Summary Create SQL database @Description Create SQL database @Tags [SQL Database] Operations @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param x-request-id header string false "Custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/sql-db [post]
func CreateTestEnv ¶
func CreateTestEnv(c echo.Context) error
CreateTestEnv godoc @Summary Create test environment @Description Create test environment @Tags [Test env] Test environment management @Accept json @Produce json @Success 201 {object} model.Response "Created" @Failure 400 {object} model.Response "Bad Request" @Failure 503 {object} model.Response "Service Unavailable" @Router /test-env [post]
func CreateUser ¶
func CreateUser(c echo.Context) error
CreateUser godoc @Summary Create a new user @Description Create a new user with the given information. @Tags [Sample] Users @Accept json @Produce json @Param User body CreateUserRequest true "User information" @Success 201 {object} GetUserResponse "(Sample) This is a sample description for success response in Swagger UI" @Failure 400 {object} object "Invalid Request" @Router /sample/users [post]
func DeleteUser ¶
func DeleteUser(c echo.Context) error
DeleteUser godoc @Summary Delete a user @Description Delete a user with the given information. @Tags [Sample] Users @Accept json @Produce json @Param id path int true "User ID" @Success 200 {string} string "User deletion successful" @Failure 400 {object} object "Invalid Request" @Failure 404 {object} object "User Not Found" @Router /sample/users/{id} [delete]
func DestroyGcpAwsVpn ¶
func DestroyGcpAwsVpn(c echo.Context) error
DestroyGcpAwsVpn godoc @Summary Destroy network resources that were used to configure GCP as an AWS VPN tunnel @Description Destroy network resources that were used to configure GCP as an AWS VPN tunnel @Tags [VPN] GCP to AWS VPN tunnel configuration @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param x-request-id header string false "Custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/vpn/gcp-aws [delete]
func DestroyGcpAzureVpn ¶
func DestroyGcpAzureVpn(c echo.Context) error
DestroyGcpAzureVpn godoc @Summary Destroy network resources that were used to configure GCP as an Azure VPN tunnel @Description Destroy network resources that were used to configure GCP as an Azure VPN tunnel @Tags [VPN] GCP to Azure VPN tunnel configuration (under development) @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param x-request-id header string false "Custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/vpn/gcp-azure [delete]
func DestroyObjectStorage ¶ added in v0.0.17
func DestroyObjectStorage(c echo.Context) error
DestroyObjectStorage godoc @Summary Destroy Object Storage @Description Destroy Object Storage @Tags [Object Storage] Operations @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param x-request-id header string false "Custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/object-storage [delete]
func DestroySqlDb ¶ added in v0.0.11
func DestroySqlDb(c echo.Context) error
DestroySqlDb godoc @Summary Destroy SQL database @Description Destroy SQL database @Tags [SQL Database] Operations @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param x-request-id header string false "Custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/sql-db [delete]
func DestroyTestEnv ¶
func DestroyTestEnv(c echo.Context) error
DestroyTestEnv godoc @Summary Destroy test environment @Description Destroy test environment @Tags [Test env] Test environment management @Accept json @Produce json @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 503 {object} model.Response "Service Unavailable" @Router /test-env [delete]
func EraseTerrarium ¶ added in v0.0.7
func EraseTerrarium(c echo.Context) error
EraseTerrarium godoc @Summary Erase the entire terrarium including directories and configuration files @Description Erase the entire terrarium including directories and configuration files @Tags [Terrarium] An environment to enrich the multi-cloud infrastructure @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId} [delete]
func GetRequestStatusOfGcpAwsVpn ¶
func GetRequestStatusOfGcpAwsVpn(c echo.Context) error
GetRequestStatusOfGcpAwsVpn godoc @Summary Check the status of a specific request by its ID @Description Check the status of a specific request by its ID @Tags [VPN] GCP to AWS VPN tunnel configuration @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param requestId path string true "Request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/vpn/gcp-aws/request/{requestId} [get]
func GetRequestStatusOfGcpAzureVpn ¶
func GetRequestStatusOfGcpAzureVpn(c echo.Context) error
GetRequestStatusOfGcpAzureVpn godoc @Summary Check the status of a specific request by its ID @Description Check the status of a specific request by its ID @Tags [VPN] GCP to Azure VPN tunnel configuration (under development) @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param requestId path string true "Request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/vpn/gcp-azure/request/{requestId} [get]
func GetRequestStatusOfObjectStorage ¶ added in v0.0.17
func GetRequestStatusOfObjectStorage(c echo.Context) error
GetRequestStatusOfObjectStorage godoc @Summary Check the status of a specific request by its ID @Description Check the status of a specific request by its ID @Tags [Object Storage] Operations @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param requestId path string true "Request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/object-storage/request/{requestId} [get]
func GetRequestStatusOfSqlDb ¶ added in v0.0.11
func GetRequestStatusOfSqlDb(c echo.Context) error
GetRequestStatusOfSqlDb godoc @Summary Check the status of a specific request by its ID @Description Check the status of a specific request by its ID @Tags [SQL Database] Operations @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param requestId path string true "Request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/sql-db/request/{requestId} [get]
func GetRequestStatusOfTestEnv ¶
func GetRequestStatusOfTestEnv(c echo.Context) error
GetRequestStatusOfTestEnv godoc @Summary Get the status of the request to configure test environment @Description Get the status of the request to configure test environment @Tags [Test env] Test environment management @Accept json @Produce json @Param requestId path string true "Request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 503 {object} model.Response "Service Unavailable" @Router /test-env/request/{requestId}/status [get]
func GetResouceInfoOfTestEnv ¶
func GetResouceInfoOfTestEnv(c echo.Context) error
GetResouceInfoOfTestEnv godoc @Summary Get all resource info of test environment @Description Get all resource info of test environment @Tags [Test env] Test environment management @Accept json @Produce json @Param detail query string false "Resource info by detail (refined, raw)" default(refined) @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 503 {object} model.Response "Service Unavailable" @Router /test-env [get]
func GetResourceInfoOfGcpAwsVpn ¶
func GetResourceInfoOfGcpAwsVpn(c echo.Context) error
GetResourceInfoOfGcpAwsVpn godoc @Summary Get resource info to configure GCP to AWS VPN tunnels @Description Get resource info to configure GCP to AWS VPN tunnels @Tags [VPN] GCP to AWS VPN tunnel configuration @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param detail query string false "Resource info by detail (refined, raw)" default(refined) @Param x-request-id header string false "custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/vpn/gcp-aws [get]
func GetResourceInfoOfGcpAzureVpn ¶
func GetResourceInfoOfGcpAzureVpn(c echo.Context) error
GetResourceInfoOfGcpAzureVpn godoc @Summary Get resource info to configure GCP to Azure VPN tunnels @Description Get resource info to configure GCP to Azure VPN tunnels @Tags [VPN] GCP to Azure VPN tunnel configuration (under development) @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param detail query string false "Resource info by detail (refined, raw)" default(refined) @Param x-request-id header string false "Custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/vpn/gcp-azure [get]
func GetResourceInfoOfObjectStorage ¶ added in v0.0.17
func GetResourceInfoOfObjectStorage(c echo.Context) error
GetResourceInfoOfObjectStorage godoc @Summary Get resource info of Object Storage @Description Get resource info of Object Storage @Tags [Object Storage] Operations @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param detail query string false "Resource info by detail (refined, raw)" default(refined) @Param x-request-id header string false "custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/object-storage [get]
func GetResourceInfoOfSqlDb ¶ added in v0.0.11
func GetResourceInfoOfSqlDb(c echo.Context) error
GetResourceInfoOfSqlDb godoc @Summary Get resource info of SQL database @Description Get resource info of SQL database @Tags [SQL Database] Operations @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param detail query string false "Resource info by detail (refined, raw)" default(refined) @Param x-request-id header string false "custom request ID" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/sql-db [get]
func GetUser ¶
func GetUser(c echo.Context) error
GetUser godoc @Summary Get specific user information @Description Get information of a user with a specific ID. @Tags [Sample] Users @Accept json @Produce json @Param id path int true "User ID" @Success 200 {object} GetUserResponse "(Sample) This is a sample description for success response in Swagger UI" @Failure 404 {object} object "User Not Found" @Router /sample/users/{id} [get]
func GetUsers ¶
func GetUsers(c echo.Context) error
GetUsers godoc @Summary Get a list of users @Description Get information of all users. @Tags [Sample] Users @Accept json @Produce json @Success 200 {object} GetUsersResponse "(sample) This is a sample description for success response in Swagger UI" @Failure 404 {object} object "User Not Found" @Router /sample/users [get]
func HTTPVersion ¶
func HTTPVersion(c echo.Context) error
HTTPVersion godoc @Summary Check HTTP version of incoming request @Description Checks and logs the HTTP version of the incoming request to the server console. @Tags [System] Utility @Accept json @Produce json @Success 200 {object} model.Response @Failure 404 {object} model.Response @Failure 500 {object} model.Response @Router /httpVersion [get]
func InitEnvForGcpAwsVpn ¶ added in v0.0.7
func InitEnvForGcpAwsVpn(c echo.Context) error
InitEnvForGcpAwsVpn godoc @Summary Initialize a multi-cloud terrarium for GCP to AWS VPN tunnel @Description Initialize a multi-cloud terrarium for GCP to AWS VPN tunnel @Tags [VPN] GCP to AWS VPN tunnel configuration @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param x-request-id header string false "Custom request ID" @Success 201 {object} model.Response "Created" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/vpn/gcp-aws/env [post]
func InitEnvForGcpAzureVpn ¶ added in v0.0.7
func InitEnvForGcpAzureVpn(c echo.Context) error
InitEnvForGcpAzureVpn godoc @Summary Initialize a multi-cloud terrarium for GCP to Azure VPN tunnel @Description Initialize a multi-cloud terrarium for GCP to Azure VPN tunnel @Tags [VPN] GCP to Azure VPN tunnel configuration (under development) @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param x-request-id header string false "Custom request ID" @Success 201 {object} model.Response "Created" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/vpn/gcp-azure/env [post]
func InitEnvForObjectStorage ¶ added in v0.0.17
func InitEnvForObjectStorage(c echo.Context) error
InitEnvForObjectStorage godoc @Summary Initialize a multi-cloud terrarium for Object Storage (e.g., AWS S3 Bucket, Azure Blob Storage) @Description Initialize a multi-cloud terrarium for Object Storage (e.g., AWS S3 Bucket, Azure Blob Storage) @Tags [Object Storage] Operations @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param provider query string false "Provider" Enums(aws, azure) default(aws) @Param x-request-id header string false "Custom request ID" @Success 201 {object} model.Response "Created" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/object-storage/env [post]
func InitEnvForSqlDb ¶ added in v0.0.11
func InitEnvForSqlDb(c echo.Context) error
InitEnvForSqlDb godoc @Summary Initialize a multi-cloud terrarium for SQL database @Description Initialize a multi-cloud terrarium for SQL database @Tags [SQL Database] Operations @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Param provider query string false "Provider" Enums(aws, azure, gcp, ncp) default(aws) @Param x-request-id header string false "Custom request ID" @Success 201 {object} model.Response "Created" @Failure 400 {object} model.Response "Bad Request" @Failure 500 {object} model.Response "Internal Server Error" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId}/sql-db/env [post]
func InitTerrariumForTestEnv ¶
func InitTerrariumForTestEnv(c echo.Context) error
InitTerrariumForTestEnv godoc @Summary Initialize a multi-cloud terrarium for test environment @Description Initialize a multi-cloud terrarium for test environment @Tags [Test env] Test environment management @Accept json @Produce json @Success 201 {object} model.Response "Created" @Failure 400 {object} model.Response "Bad Request" @Failure 503 {object} model.Response "Service Unavailable" @Router /test-env/init [post]
func IssueTerrarium ¶ added in v0.0.7
func IssueTerrarium(c echo.Context) error
IssueTerrarium godoc @Summary Issue/create a terrarium @Description Issue/create a terrarium @Tags [Terrarium] An environment to enrich the multi-cloud infrastructure @Accept json @Produce json @Param TerrariumInfo body model.TerrariumInfo true "Information for a new terrarium" @Success 200 {object} model.Response "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr [post]
func PatchUser ¶
func PatchUser(c echo.Context) error
PatchUser godoc @Summary Patch a user @Description Patch a user with the given information. @Tags [Sample] Users @Accept json @Produce json @Param id path int true "User ID" @Param User body PatchUserRequest true "User information to update" @Success 200 {object} PatchUserResponse "(Sample) This is a sample description for success response in Swagger UI" @Failure 400 {object} object "Invalid Request" @Failure 404 {object} object "User Not Found" @Router /sample/users/{id} [patch]
func ReadAllTerrarium ¶ added in v0.0.7
func ReadAllTerrarium(c echo.Context) error
ReadAllTerrarium godoc @Summary Read all terrarium @Description Read all terrarium @Tags [Terrarium] An environment to enrich the multi-cloud infrastructure @Accept json @Produce json @Success 200 {array} model.TerrariumInfo "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr [get]
func ReadTerrarium ¶ added in v0.0.7
func ReadTerrarium(c echo.Context) error
ReadTerrarium godoc @Summary Read a terrarium @Description Read a terrarium @Tags [Terrarium] An environment to enrich the multi-cloud infrastructure @Accept json @Produce json @Param trId path string true "Terrarium ID" default(tr01) @Success 200 {object} model.TerrariumInfo "OK" @Failure 400 {object} model.Response "Bad Request" @Failure 503 {object} model.Response "Service Unavailable" @Router /tr/{trId} [get]
func Readyz ¶
func Readyz(c echo.Context) error
Readyz func is for checking mc-terrarium server is ready. Readyz godoc @Summary Check mc-terrarium server is ready @Description Check mc-terrarium server is ready @Tags [System] Utility @Accept json @Produce json @Success 200 {object} model.Response @Failure 503 {object} model.Response @Router /readyz [get]
func TofuVersion ¶
func TofuVersion(c echo.Context) error
TofuVersion godoc @Summary Check Tofu version @Description Check Tofu version @Tags [System] Utility @Accept json @Produce json @Success 200 {object} model.Response @Failure 503 {object} model.Response @Router /tofuVersion [get]
func UpdateUser ¶
func UpdateUser(c echo.Context) error
UpdateUser godoc @Summary Update a user @Description Update a user with the given information. @Tags [Sample] Users @Accept json @Produce json @Param id path int true "User ID" @Param User body UpdateUserRequest true "User information to update" @Success 201 {object} UpdateUserResponse "(Sample) This is a sample description for success response in Swagger UI" @Failure 400 {object} object "Invalid Request" @Router /sample/users/{id} [put]
Types ¶
type CreateUserRequest ¶
[Note] Struct Embedding is used to inherit the fields of MyUser
type CreateUserResponse ¶
[Note] Struct Embedding is used to inherit the fields of MyUser
type GetUserResponse ¶
[Note] Struct Embedding is used to inherit the fields of MyUser
type GetUsersResponse ¶
type PatchUserRequest ¶
[Note] Struct Embedding is used to inherit the fields of MyUser
type PatchUserResponse ¶
[Note] Struct Embedding is used to inherit the fields of MyUser
type UpdateUserRequest ¶
[Note] Struct Embedding is used to inherit the fields of MyUser
type UpdateUserResponse ¶
[Note] Struct Embedding is used to inherit the fields of MyUser