Documentation ¶
Index ¶
- func CreateCluster(ctx echo.Context) error
- func DeleteCluster(ctx echo.Context) error
- func FindCluster(ctx echo.Context) error
- func GetCluster(ctx echo.Context) error
- func GetClusterClientSessionAlive(ctx echo.Context) error
- func UpdateCluster(ctx echo.Context) error
- type Cluster
- type ClusterClientSessionStatus
- type Create
- type Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCluster ¶
func CreateCluster(ctx echo.Context) error
@Description Create a cluster @Accept json @Produce json @Tags /api/v1/cluster @Router /api/v1/cluster [post] @Param cluster body Create true "Create" @Success 200 {object} Cluster
func DeleteCluster ¶
func DeleteCluster(ctx echo.Context) error
@Description Delete a cluster @Accept json @Produce json @Tags /api/v1/cluster @Router /api/v1/cluster/{uuid} [delete] @Param uuid path string true "Cluster UUID" @Success 200
func FindCluster ¶
func FindCluster(ctx echo.Context) error
@Description Find clusters @Accept x-www-form-urlencoded @Produce json @Tags /api/v1/cluster @Router /api/v1/cluster [get] @Param q query string false "query github.com/claion-org/claiflow/pkg/server/database/vanilla/stmt/README.md" @Param o query string false "order github.com/claion-org/claiflow/pkg/server/database/vanilla/stmt/README.md" @Param p query string false "paging github.com/claion-org/claiflow/pkg/server/database/vanilla/stmt/README.md" @Success 200 {array} Cluster
func GetCluster ¶
func GetCluster(ctx echo.Context) error
@Description Get a cluster @Accept json @Produce json @Tags /api/v1/cluster @Router /api/v1/cluster/{uuid} [get] @Param uuid path string true "Cluster UUID" @Success 200 {object} Cluster
func GetClusterClientSessionAlive ¶
func GetClusterClientSessionAlive(ctx echo.Context) error
@Description Check Alive a Cluster Client Session @Accept json @Produce json @Tags /api/v1/cluster @Router /api/v1/cluster/{cluster_uuid}/session/alive [get] @Param cluster_uuid path string true "Cluster UUID" @Success 200 {object} ClusterClientSessionStatus
func UpdateCluster ¶
func UpdateCluster(ctx echo.Context) error
@Description Update a cluster @Accept json @Produce json @Tags /api/v1/cluster @Router /api/v1/cluster/{uuid} [put] @Param uuid path string true "Cluster UUID" @Param cluster body Update true "Update" @Success 200 {object} Cluster
Types ¶
type Cluster ¶
type Cluster struct { Uuid string `json:"uuid"` Name string `json:"name"` Summary *string `json:"summary,omitempty"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` }