servicecatalogroutes

package
v0.0.0-...-58c3220 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const GetDeployedModelInfoURL = "/model-info/:id"
View Source
const (
	HealthCheckURL = "/health"
)

Variables

This section is empty.

Functions

func SetUpCatalogSwagger

func SetUpCatalogSwagger(rg *gin.RouterGroup, apiStaticFS http.FileSystem, reader swagger.DefinitionReader)

SetUpCatalogSwagger serves swagger documentation that combine all deployed models on a single page

func SetUpHealthCheck

func SetUpHealthCheck(server *gin.Engine)

func SetUpSwagger

func SetUpSwagger(rg *gin.RouterGroup, apiStaticFS http.FileSystem)

func SetupDeployedModelRoute

func SetupDeployedModelRoute(rg *gin.RouterGroup, getter GetDeployedModelFunc)

@Summary Get info about deployed model @Description Get info about deployed model @Name id @Accept json @Produce json @Param id path string true "ModelDeployment ID" @Success 200 {object} model.DeployedModel @Failure 404 {object} httputil.HTTPResult @Failure 400 {object} httputil.HTTPResult @Router /service-catalog/model-info/{id} [get]

Types

type DeployedModelHandler

type DeployedModelHandler struct {
	GetDeployedModel GetDeployedModelFunc
}

func (*DeployedModelHandler) Handle

func (t *DeployedModelHandler) Handle(c *gin.Context)

type DeployedModelHandlerParams

type DeployedModelHandlerParams struct {
	ID string `uri:"id" binding:"required"`
}

type GetDeployedModelFunc

type GetDeployedModelFunc func(deploymentID string) (model_types.DeployedModel, error)

Jump to

Keyboard shortcuts

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