cluster

package
v0.0.0-...-e8da0a6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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"`
}

func NewCluster

func NewCluster(m model.Cluster) Cluster

type ClusterClientSessionStatus

type ClusterClientSessionStatus struct {
	Alive            bool   `json:"alive"`
	ClientVersion    string `json:"clientVersion,omitempty"`
	ClientLibVersion string `json:"clientLibVersion,omitempty"`
}

type Create

type Create struct {
	Uuid    *string `json:"uuid,omitempty"` // (optional)
	Name    string  `json:"name"`
	Summary *string `json:"summary,omitempty"` // (optional)
}

type Update

type Update struct {
	Name    *string `json:"name,omitempty"`    // (optional)
	Summary *string `json:"summary,omitempty"` // (optional)
}

Jump to

Keyboard shortcuts

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