Documentation ¶
Index ¶
- func CreateCluster(cluster *commonmodels.K8SCluster, logger *zap.SugaredLogger) (*commonmodels.K8SCluster, error)
- func DeleteCluster(username, clusterID string, logger *zap.SugaredLogger) error
- func DisconnectCluster(username string, clusterID string, logger *zap.SugaredLogger) error
- func GetCluster(id string, logger *zap.SugaredLogger) (*commonmodels.K8SCluster, error)
- func GetYaml(id, hubURI string, useDeployment bool, logger *zap.SugaredLogger) ([]byte, error)
- func ListClusters(clusterType string, logger *zap.SugaredLogger) ([]*commonmodels.K8SCluster, error)
- func ProxyAgent(writer gin.ResponseWriter, request *http.Request)
- func ReconnectCluster(username string, clusterID string, logger *zap.SugaredLogger) error
- func UpdateCluster(id string, cluster *commonmodels.K8SCluster, logger *zap.SugaredLogger) (*commonmodels.K8SCluster, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCluster ¶
func CreateCluster(cluster *commonmodels.K8SCluster, logger *zap.SugaredLogger) (*commonmodels.K8SCluster, error)
func DeleteCluster ¶
func DeleteCluster(username, clusterID string, logger *zap.SugaredLogger) error
func DisconnectCluster ¶
func DisconnectCluster(username string, clusterID string, logger *zap.SugaredLogger) error
func GetCluster ¶
func GetCluster(id string, logger *zap.SugaredLogger) (*commonmodels.K8SCluster, error)
func ListClusters ¶
func ListClusters(clusterType string, logger *zap.SugaredLogger) ([]*commonmodels.K8SCluster, error)
func ProxyAgent ¶
func ProxyAgent(writer gin.ResponseWriter, request *http.Request)
func ReconnectCluster ¶
func ReconnectCluster(username string, clusterID string, logger *zap.SugaredLogger) error
func UpdateCluster ¶
func UpdateCluster(id string, cluster *commonmodels.K8SCluster, logger *zap.SugaredLogger) (*commonmodels.K8SCluster, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.