router

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 7 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 @Tags Node @Summary Add Node @Description Add Node @ID AddNode @Accept json @Produce json @Param namespace path string true "namespace" @Param cluster path string true "cluster" @Param json body model.NodeReq true "Reuest json" @Success 200 {object} model.Node @Router /ns/{namespace}/clusters/{cluster}/nodes [post]

func CreateCluster

func CreateCluster(c echo.Context) error

CreateCluster @Tags Cluster @Summary Create Cluster @Description Create Cluster @ID CreateCluster @Accept json @Produce json @Param namespace path string true "namespace" @Param json body model.ClusterReq true "Reuest json" @Success 200 {object} model.Cluster @Router /ns/{namespace}/clusters [post]

func DeleteCluster

func DeleteCluster(c echo.Context) error

DeleteCluster @Tags Cluster @Summary Delete a cluster @Description Delete a cluster @ID DeleteCluster @Accept json @Produce json @Param namespace path string true "namespace" @Param cluster path string true "cluster" @Success 200 {object} model.Status @Router /ns/{namespace}/clusters/{cluster} [delete]

func GetCluster

func GetCluster(c echo.Context) error

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

func GetNode

func GetNode(c echo.Context) error

GetNode @Tags Node @Summary Get Node @Description Get Node @ID GetNode @Accept json @Produce json @Param namespace path string true "namespace" @Param cluster path string true "cluster" @Param node path string true "node" @Success 200 {object} model.Node @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 @Tags Cluster @Summary List Cluster @Description List Cluster @ID ListCluster @Accept json @Produce json @Param namespace path string true "namespace" @Success 200 {object} model.ClusterList @Router /ns/{namespace}/clusters [get]

func ListNode

func ListNode(c echo.Context) error

ListNode @Tags Node @Summary List Node @Description List Node @ID ListNode @Accept json @Produce json @Param namespace path string true "namespace" @Param cluster path string true "cluster" @Success 200 {object} model.NodeList @Router /ns/{namespace}/clusters/{cluster}/nodes [get]

func RemoveNode

func RemoveNode(c echo.Context) error

RemoveNode @Tags Node @Summary Remove Node @Description Remove Node @ID RemoveNode @Accept json @Produce json @Param namespace path string true "namespace" @Param cluster path string true "cluster" @Param node path string true "node" @Success 200 {object} model.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