recommendation

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package common is to handle REST API for common funcitonalities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
}

func (*Handlers) RecommendInfra

func (rh *Handlers) RecommendInfra(c echo.Context) error

RecommendInfra godoc @Summary Recommend an appropriate infrastructure for cloud migration @Description It recommends a cloud infrastructure most similar to the input. Infrastructure includes network, storage, compute, and so on. @Tags [Recommendation] Infrastructure @Accept json @Produce json @Param UserInfrastructure body RecommendInfraRequest true "Specify network, disk, compute, security group, virtual machine, etc." @Success 200 {object} RecommendInfraResponse "Successfully recommended an appropriate infrastructure for cloud migration" @Failure 404 {object} common.SimpleMsg @Failure 500 {object} common.SimpleMsg @Router /recommendation/infra [post]

type Infrastructure

type Infrastructure struct {
	Network        string
	Disk           string
	Compute        string
	SecurityGroup  string
	VirtualMachine string
}

type RecommendInfraRequest

type RecommendInfraRequest struct {
	Infrastructure
}

type RecommendInfraResponse

type RecommendInfraResponse struct {
	Infrastructure
}

Jump to

Keyboard shortcuts

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