router

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNode

func AddNode(c echo.Context) error

AddNode godoc @Tags Node @Summary Add Node in specified Cluster @Description Add Node in specified Cluster @ID AddNode @Accept json @Produce json @Param namespace path string true "Namespace ID" @Param cluster path string true "Cluster Name" @Param nodeReq body app.NodeReq true "Request Body to add node" @Success 200 {object} model.Node @Failure 400 {object} app.Status @Failure 500 {object} app.Status @Router /ns/{namespace}/clusters/{cluster}/nodes [post]

func CreateCluster

func CreateCluster(c echo.Context) error

CreateCluster godoc @Tags Cluster @Summary Create Cluster @Description Create Cluster @ID CreateCluster @Accept json @Produce json @Param namespace path string true "Namespace ID" @Param ClusterReq body app.ClusterReq true "Request Body to create cluster" @Success 200 {object} model.Cluster @Failure 400 {object} app.Status @Failure 500 {object} app.Status @Router /ns/{namespace}/clusters [post]

func DeleteCluster

func DeleteCluster(c echo.Context) error

DeleteCluster godoc @Tags Cluster @Summary Delete Cluster @Description Delete Cluster @ID DeleteCluster @Accept json @Produce json @Param namespace path string true "Namespace ID" @Param cluster path string true "Cluster Name" @Success 200 {object} app.Status @Failure 400 {object} app.Status @Failure 500 {object} app.Status @Router /ns/{namespace}/clusters/{cluster} [delete]

func GetCluster

func GetCluster(c echo.Context) error

GetCluster godoc @Tags Cluster @Summary Get Cluster @Description Get Cluster @ID GetCluster @Accept json @Produce json @Param namespace path string true "Namespace ID" @Param cluster path string true "Cluster Name" @Success 200 {object} model.Cluster @Failure 400 {object} app.Status @Failure 404 {object} app.Status @Router /ns/{namespace}/clusters/{cluster} [get]

func GetNode

func GetNode(c echo.Context) error

GetNode godoc @Tags Node @Summary Get Node in specified Cluster @Description Get Node in specified Cluster @ID GetNode @Accept json @Produce json @Param namespace path string true "Namespace ID" @Param cluster path string true "Cluster Name" @Param node path string true "Node Name" @Success 200 {object} model.Node @Failure 400 {object} app.Status @Failure 404 {object} app.Status @Router /ns/{namespace}/clusters/{cluster}/nodes/{node} [get]

func Healthy

func Healthy(c echo.Context) error

Healthy Method @Tags Default @Summary Health Check @Description for health check @ID Healthy @Accept json @Produce json @Success 200 {string} string "ok" @Router /healthy [get]

func ListCluster

func ListCluster(c echo.Context) error

ListCluster godoc @Tags Cluster @Summary List all Clusters @Description List all Clusters @ID ListCluster @Accept json @Produce json @Param namespace path string true "Namespace ID" @Success 200 {object} model.ClusterList @Failure 400 {object} app.Status @Router /ns/{namespace}/clusters [get]

func ListNode

func ListNode(c echo.Context) error

ListNode godoc @Tags Node @Summary List all Nodes in specified Cluster @Description List all Nodes in specified Cluster @ID ListNode @Accept json @Produce json @Param namespace path string true "Namespace ID" @Param cluster path string true "Cluster Name" @Success 200 {object} model.NodeList @Failure 400 {object} app.Status @Router /ns/{namespace}/clusters/{cluster}/nodes [get]

func ListSpec added in v0.5.2

func ListSpec(c echo.Context) error

ListSpec godoc @Tags Mcir @Summary List Specs @Description List Specs @ID List Spec @Accept json @Produce json @Param connection path string true "Connection Name" @Param control-plane query string true "string enums" Enums(Y, N) @Param cpu-min query int false "if Control-Plane, >= 2" minimum(1) @Param cpu-max query int false " <= 99999" minimum(1) maximum(99999) @Param memory-min query int false " if Control-Plane, >= 2" minimum(1) @Param memory-max query int false " <= 99999" minimum(1) maximum(99999) @Success 200 {object} service.SpecList @Failure 400 {object} app.Status @Router /mcir/connections/{connection}/specs [get]

func RemoveNode

func RemoveNode(c echo.Context) error

RemoveNode godoc @Tags Node @Summary Remove Node in specified Cluster @Description Remove Node in specified Cluster @ID RemoveNode @Accept json @Produce json @Param namespace path string true "Namespace ID" @Param cluster path string true "Cluster Name" @Param node path string true "Node Name" @Success 200 {object} app.Status @Failure 400 {object} app.Status @Failure 500 {object} app.Status @Router /ns/{namespace}/clusters/{cluster}/nodes/{node} [delete]

Types

This section is empty.

Jump to

Keyboard shortcuts

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