Documentation ¶
Index ¶
- type K8sAppHandler
- func (k *K8sAppHandler) BatchDeleteK8sCronjob(ctx *gin.Context)
- func (k *K8sAppHandler) BatchDeleteK8sInstance(ctx *gin.Context)
- func (k *K8sAppHandler) BatchRestartK8sInstance(ctx *gin.Context)
- func (k *K8sAppHandler) CreateK8sAppOne(ctx *gin.Context)
- func (k *K8sAppHandler) CreateK8sCronjobOne(ctx *gin.Context)
- func (k *K8sAppHandler) CreateK8sInstanceOne(ctx *gin.Context)
- func (k *K8sAppHandler) CreateK8sProject(ctx *gin.Context)
- func (k *K8sAppHandler) DeleteK8sAppOne(ctx *gin.Context)
- func (k *K8sAppHandler) DeleteK8sProjectOne(ctx *gin.Context)
- func (k *K8sAppHandler) GetClusterNamespacesUnique(ctx *gin.Context)
- func (k *K8sAppHandler) GetK8sAppList(ctx *gin.Context)
- func (k *K8sAppHandler) GetK8sAppListForSelect(ctx *gin.Context)
- func (k *K8sAppHandler) GetK8sAppOne(ctx *gin.Context)
- func (k *K8sAppHandler) GetK8sCronjobLastPod(ctx *gin.Context)
- func (k *K8sAppHandler) GetK8sCronjobList(ctx *gin.Context)
- func (k *K8sAppHandler) GetK8sCronjobOne(ctx *gin.Context)
- func (k *K8sAppHandler) GetK8sInstanceByApp(ctx *gin.Context)
- func (k *K8sAppHandler) GetK8sInstanceList(ctx *gin.Context)
- func (k *K8sAppHandler) GetK8sInstanceOne(ctx *gin.Context)
- func (k *K8sAppHandler) GetK8sPodListByDeploy(ctx *gin.Context)
- func (k *K8sAppHandler) GetK8sProjectList(ctx *gin.Context)
- func (k *K8sAppHandler) GetK8sProjectListForSelect(ctx *gin.Context)
- func (k *K8sAppHandler) RegisterRouters(server *gin.Engine)
- func (k *K8sAppHandler) UpdateK8sAppOne(ctx *gin.Context)
- func (k *K8sAppHandler) UpdateK8sCronjobOne(ctx *gin.Context)
- func (k *K8sAppHandler) UpdateK8sInstanceOne(ctx *gin.Context)
- func (k *K8sAppHandler) UpdateK8sProject(ctx *gin.Context)
- type K8sClusterHandler
- func (k *K8sClusterHandler) BatchDeleteClusters(ctx *gin.Context)
- func (k *K8sClusterHandler) CreateCluster(ctx *gin.Context)
- func (k *K8sClusterHandler) DeleteCluster(ctx *gin.Context)
- func (k *K8sClusterHandler) GetAllClusters(ctx *gin.Context)
- func (k *K8sClusterHandler) GetCluster(ctx *gin.Context)
- func (k *K8sClusterHandler) RegisterRouters(server *gin.Engine)
- func (k *K8sClusterHandler) UpdateCluster(ctx *gin.Context)
- type K8sConfigMapHandler
- func (k *K8sConfigMapHandler) BatchDeleteConfigMaps(ctx *gin.Context)
- func (k *K8sConfigMapHandler) DeleteConfigMaps(ctx *gin.Context)
- func (k *K8sConfigMapHandler) GetConfigMapListByNamespace(ctx *gin.Context)
- func (k *K8sConfigMapHandler) GetConfigMapYaml(ctx *gin.Context)
- func (k *K8sConfigMapHandler) RegisterRouters(server *gin.Engine)
- func (k *K8sConfigMapHandler) UpdateConfigMap(ctx *gin.Context)
- type K8sDeploymentHandler
- func (k *K8sDeploymentHandler) BatchDeleteDeployment(ctx *gin.Context)
- func (k *K8sDeploymentHandler) BatchRestartDeployments(ctx *gin.Context)
- func (k *K8sDeploymentHandler) DeleteDeployment(ctx *gin.Context)
- func (k *K8sDeploymentHandler) GetDeployListByNamespace(ctx *gin.Context)
- func (k *K8sDeploymentHandler) GetDeployYaml(ctx *gin.Context)
- func (k *K8sDeploymentHandler) RegisterRouters(server *gin.Engine)
- func (k *K8sDeploymentHandler) RestartDeployment(ctx *gin.Context)
- func (k *K8sDeploymentHandler) UpdateDeployment(ctx *gin.Context)
- type K8sNamespaceHandler
- func (k *K8sNamespaceHandler) CreateNamespace(ctx *gin.Context)
- func (k *K8sNamespaceHandler) DeleteNamespace(ctx *gin.Context)
- func (k *K8sNamespaceHandler) GetClusterNamespacesForCascade(ctx *gin.Context)
- func (k *K8sNamespaceHandler) GetClusterNamespacesForSelect(ctx *gin.Context)
- func (k *K8sNamespaceHandler) GetNamespaceDetails(ctx *gin.Context)
- func (k *K8sNamespaceHandler) GetNamespaceEvents(ctx *gin.Context)
- func (k *K8sNamespaceHandler) GetNamespaceResources(ctx *gin.Context)
- func (k *K8sNamespaceHandler) RegisterRouters(router *gin.Engine)
- func (k *K8sNamespaceHandler) UpdateNamespace(ctx *gin.Context)
- type K8sNodeHandler
- type K8sPodHandler
- func (k *K8sPodHandler) DeletePod(ctx *gin.Context)
- func (k *K8sPodHandler) GetContainerLogs(ctx *gin.Context)
- func (k *K8sPodHandler) GetPodContainers(ctx *gin.Context)
- func (k *K8sPodHandler) GetPodListByNamespace(ctx *gin.Context)
- func (k *K8sPodHandler) GetPodYaml(ctx *gin.Context)
- func (k *K8sPodHandler) GetPodsListByNodeName(ctx *gin.Context)
- func (k *K8sPodHandler) RegisterRouters(server *gin.Engine)
- type K8sSvcHandler
- func (k *K8sSvcHandler) BatchDeleteServices(ctx *gin.Context)
- func (k *K8sSvcHandler) DeleteService(ctx *gin.Context)
- func (k *K8sSvcHandler) GetServiceListByNamespace(ctx *gin.Context)
- func (k *K8sSvcHandler) GetServiceYaml(ctx *gin.Context)
- func (k *K8sSvcHandler) RegisterRouters(server *gin.Engine)
- func (k *K8sSvcHandler) UpdateService(ctx *gin.Context)
- type K8sTaintHandler
- func (k *K8sTaintHandler) AddTaintsNodes(ctx *gin.Context)
- func (k *K8sTaintHandler) DeleteTaintsNodes(ctx *gin.Context)
- func (k *K8sTaintHandler) DrainPods(ctx *gin.Context)
- func (k *K8sTaintHandler) RegisterRouters(server *gin.Engine)
- func (k *K8sTaintHandler) ScheduleEnableSwitchNodes(ctx *gin.Context)
- func (k *K8sTaintHandler) TaintYamlCheck(ctx *gin.Context)
- type K8sYamlTaskHandler
- func (k *K8sYamlTaskHandler) ApplyYamlTask(ctx *gin.Context)
- func (k *K8sYamlTaskHandler) CreateYamlTask(ctx *gin.Context)
- func (k *K8sYamlTaskHandler) DeleteYamlTask(ctx *gin.Context)
- func (k *K8sYamlTaskHandler) GetYamlTaskList(ctx *gin.Context)
- func (k *K8sYamlTaskHandler) RegisterRouters(server *gin.Engine)
- func (k *K8sYamlTaskHandler) UpdateYamlTask(ctx *gin.Context)
- type K8sYamlTemplateHandler
- func (k *K8sYamlTemplateHandler) CheckYamlTemplate(ctx *gin.Context)
- func (k *K8sYamlTemplateHandler) CreateYamlTemplate(ctx *gin.Context)
- func (k *K8sYamlTemplateHandler) DeleteYamlTemplate(ctx *gin.Context)
- func (k *K8sYamlTemplateHandler) GetYamlTemplateDetail(ctx *gin.Context)
- func (k *K8sYamlTemplateHandler) GetYamlTemplateList(ctx *gin.Context)
- func (k *K8sYamlTemplateHandler) RegisterRouters(server *gin.Engine)
- func (k *K8sYamlTemplateHandler) UpdateYamlTemplate(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sAppHandler ¶
type K8sAppHandler struct {
// contains filtered or unexported fields
}
func NewK8sAppHandler ¶
func NewK8sAppHandler(l *zap.Logger) *K8sAppHandler
func (*K8sAppHandler) BatchDeleteK8sCronjob ¶
func (k *K8sAppHandler) BatchDeleteK8sCronjob(ctx *gin.Context)
BatchDeleteK8sCronjob 批量删除 CronJob
func (*K8sAppHandler) BatchDeleteK8sInstance ¶
func (k *K8sAppHandler) BatchDeleteK8sInstance(ctx *gin.Context)
BatchDeleteK8sInstance 批量删除 Kubernetes 实例
func (*K8sAppHandler) BatchRestartK8sInstance ¶
func (k *K8sAppHandler) BatchRestartK8sInstance(ctx *gin.Context)
BatchRestartK8sInstance 批量重启 Kubernetes 实例
func (*K8sAppHandler) CreateK8sAppOne ¶
func (k *K8sAppHandler) CreateK8sAppOne(ctx *gin.Context)
CreateK8sAppOne 创建单个 Kubernetes 应用
func (*K8sAppHandler) CreateK8sCronjobOne ¶
func (k *K8sAppHandler) CreateK8sCronjobOne(ctx *gin.Context)
CreateK8sCronjobOne 创建单个 CronJob
func (*K8sAppHandler) CreateK8sInstanceOne ¶
func (k *K8sAppHandler) CreateK8sInstanceOne(ctx *gin.Context)
CreateK8sInstanceOne 创建单个 Kubernetes 实例
func (*K8sAppHandler) CreateK8sProject ¶
func (k *K8sAppHandler) CreateK8sProject(ctx *gin.Context)
CreateK8sProject 创建 Kubernetes 项目
func (*K8sAppHandler) DeleteK8sAppOne ¶
func (k *K8sAppHandler) DeleteK8sAppOne(ctx *gin.Context)
DeleteK8sAppOne 删除单个 Kubernetes 应用
func (*K8sAppHandler) DeleteK8sProjectOne ¶
func (k *K8sAppHandler) DeleteK8sProjectOne(ctx *gin.Context)
DeleteK8sProjectOne 删除单个 Kubernetes 项目
func (*K8sAppHandler) GetClusterNamespacesUnique ¶
func (k *K8sAppHandler) GetClusterNamespacesUnique(ctx *gin.Context)
GetClusterNamespacesUnique 获取唯一的命名空间列表
func (*K8sAppHandler) GetK8sAppList ¶
func (k *K8sAppHandler) GetK8sAppList(ctx *gin.Context)
GetK8sAppList 获取 Kubernetes 应用列表
func (*K8sAppHandler) GetK8sAppListForSelect ¶
func (k *K8sAppHandler) GetK8sAppListForSelect(ctx *gin.Context)
GetK8sAppListForSelect 获取用于选择的 Kubernetes 应用列表
func (*K8sAppHandler) GetK8sAppOne ¶
func (k *K8sAppHandler) GetK8sAppOne(ctx *gin.Context)
GetK8sAppOne 获取单个 Kubernetes 应用
func (*K8sAppHandler) GetK8sCronjobLastPod ¶
func (k *K8sAppHandler) GetK8sCronjobLastPod(ctx *gin.Context)
GetK8sCronjobLastPod 获取 CronJob 最近的 Pod
func (*K8sAppHandler) GetK8sCronjobList ¶
func (k *K8sAppHandler) GetK8sCronjobList(ctx *gin.Context)
GetK8sCronjobList 获取 CronJob 列表
func (*K8sAppHandler) GetK8sCronjobOne ¶
func (k *K8sAppHandler) GetK8sCronjobOne(ctx *gin.Context)
GetK8sCronjobOne 获取单个 CronJob
func (*K8sAppHandler) GetK8sInstanceByApp ¶
func (k *K8sAppHandler) GetK8sInstanceByApp(ctx *gin.Context)
GetK8sInstanceByApp 根据应用获取 Kubernetes 实例
func (*K8sAppHandler) GetK8sInstanceList ¶
func (k *K8sAppHandler) GetK8sInstanceList(ctx *gin.Context)
GetK8sInstanceList 获取 Kubernetes 实例列表
func (*K8sAppHandler) GetK8sInstanceOne ¶
func (k *K8sAppHandler) GetK8sInstanceOne(ctx *gin.Context)
GetK8sInstanceOne 获取单个 Kubernetes 实例
func (*K8sAppHandler) GetK8sPodListByDeploy ¶
func (k *K8sAppHandler) GetK8sPodListByDeploy(ctx *gin.Context)
GetK8sPodListByDeploy 根据部署获取 Kubernetes Pod 列表
func (*K8sAppHandler) GetK8sProjectList ¶
func (k *K8sAppHandler) GetK8sProjectList(ctx *gin.Context)
GetK8sProjectList 获取 Kubernetes 项目列表
func (*K8sAppHandler) GetK8sProjectListForSelect ¶
func (k *K8sAppHandler) GetK8sProjectListForSelect(ctx *gin.Context)
GetK8sProjectListForSelect 获取用于选择的 Kubernetes 项目列表
func (*K8sAppHandler) RegisterRouters ¶
func (k *K8sAppHandler) RegisterRouters(server *gin.Engine)
func (*K8sAppHandler) UpdateK8sAppOne ¶
func (k *K8sAppHandler) UpdateK8sAppOne(ctx *gin.Context)
UpdateK8sAppOne 更新单个 Kubernetes 应用
func (*K8sAppHandler) UpdateK8sCronjobOne ¶
func (k *K8sAppHandler) UpdateK8sCronjobOne(ctx *gin.Context)
UpdateK8sCronjobOne 更新单个 CronJob
func (*K8sAppHandler) UpdateK8sInstanceOne ¶
func (k *K8sAppHandler) UpdateK8sInstanceOne(ctx *gin.Context)
UpdateK8sInstanceOne 更新单个 Kubernetes 实例
func (*K8sAppHandler) UpdateK8sProject ¶
func (k *K8sAppHandler) UpdateK8sProject(ctx *gin.Context)
UpdateK8sProject 更新 Kubernetes 项目
type K8sClusterHandler ¶
type K8sClusterHandler struct {
// contains filtered or unexported fields
}
func NewK8sClusterHandler ¶
func NewK8sClusterHandler(l *zap.Logger, clusterService admin.ClusterService) *K8sClusterHandler
func (*K8sClusterHandler) BatchDeleteClusters ¶
func (k *K8sClusterHandler) BatchDeleteClusters(ctx *gin.Context)
func (*K8sClusterHandler) CreateCluster ¶
func (k *K8sClusterHandler) CreateCluster(ctx *gin.Context)
CreateCluster 创建新的集群
func (*K8sClusterHandler) DeleteCluster ¶
func (k *K8sClusterHandler) DeleteCluster(ctx *gin.Context)
DeleteCluster 删除指定 ID 的集群
func (*K8sClusterHandler) GetAllClusters ¶
func (k *K8sClusterHandler) GetAllClusters(ctx *gin.Context)
GetAllClusters 获取集群列表
func (*K8sClusterHandler) GetCluster ¶
func (k *K8sClusterHandler) GetCluster(ctx *gin.Context)
GetCluster 获取指定 ID 的集群详情
func (*K8sClusterHandler) RegisterRouters ¶
func (k *K8sClusterHandler) RegisterRouters(server *gin.Engine)
func (*K8sClusterHandler) UpdateCluster ¶
func (k *K8sClusterHandler) UpdateCluster(ctx *gin.Context)
UpdateCluster 更新指定 ID 的集群
type K8sConfigMapHandler ¶
type K8sConfigMapHandler struct {
// contains filtered or unexported fields
}
func NewK8sConfigMapHandler ¶
func NewK8sConfigMapHandler(l *zap.Logger, configmapService admin.ConfigMapService) *K8sConfigMapHandler
func (*K8sConfigMapHandler) BatchDeleteConfigMaps ¶
func (k *K8sConfigMapHandler) BatchDeleteConfigMaps(ctx *gin.Context)
BatchDeleteConfigMaps 批量删除 ConfigMap
func (*K8sConfigMapHandler) DeleteConfigMaps ¶
func (k *K8sConfigMapHandler) DeleteConfigMaps(ctx *gin.Context)
func (*K8sConfigMapHandler) GetConfigMapListByNamespace ¶
func (k *K8sConfigMapHandler) GetConfigMapListByNamespace(ctx *gin.Context)
GetConfigMapListByNamespace 根据命名空间获取 ConfigMap 列表
func (*K8sConfigMapHandler) GetConfigMapYaml ¶
func (k *K8sConfigMapHandler) GetConfigMapYaml(ctx *gin.Context)
GetConfigMapYaml 获取 ConfigMap 的 YAML 配置
func (*K8sConfigMapHandler) RegisterRouters ¶
func (k *K8sConfigMapHandler) RegisterRouters(server *gin.Engine)
func (*K8sConfigMapHandler) UpdateConfigMap ¶
func (k *K8sConfigMapHandler) UpdateConfigMap(ctx *gin.Context)
UpdateConfigMap 更新指定 Name 的 ConfigMap
type K8sDeploymentHandler ¶
type K8sDeploymentHandler struct {
// contains filtered or unexported fields
}
func NewK8sDeploymentHandler ¶
func NewK8sDeploymentHandler(l *zap.Logger, deploymentService admin.DeploymentService) *K8sDeploymentHandler
func (*K8sDeploymentHandler) BatchDeleteDeployment ¶
func (k *K8sDeploymentHandler) BatchDeleteDeployment(ctx *gin.Context)
BatchDeleteDeployment 删除指定 Name 的部署
func (*K8sDeploymentHandler) BatchRestartDeployments ¶
func (k *K8sDeploymentHandler) BatchRestartDeployments(ctx *gin.Context)
BatchRestartDeployments 批量重启部署
func (*K8sDeploymentHandler) DeleteDeployment ¶
func (k *K8sDeploymentHandler) DeleteDeployment(ctx *gin.Context)
func (*K8sDeploymentHandler) GetDeployListByNamespace ¶
func (k *K8sDeploymentHandler) GetDeployListByNamespace(ctx *gin.Context)
GetDeployListByNamespace 根据命名空间获取部署列表
func (*K8sDeploymentHandler) GetDeployYaml ¶
func (k *K8sDeploymentHandler) GetDeployYaml(ctx *gin.Context)
GetDeployYaml 获取部署的 YAML 配置
func (*K8sDeploymentHandler) RegisterRouters ¶
func (k *K8sDeploymentHandler) RegisterRouters(server *gin.Engine)
func (*K8sDeploymentHandler) RestartDeployment ¶
func (k *K8sDeploymentHandler) RestartDeployment(ctx *gin.Context)
func (*K8sDeploymentHandler) UpdateDeployment ¶
func (k *K8sDeploymentHandler) UpdateDeployment(ctx *gin.Context)
UpdateDeployment 更新指定 Name 的部署
type K8sNamespaceHandler ¶
type K8sNamespaceHandler struct {
// contains filtered or unexported fields
}
func NewK8sNamespaceHandler ¶
func NewK8sNamespaceHandler(logger *zap.Logger, namespaceService admin.NamespaceService) *K8sNamespaceHandler
func (*K8sNamespaceHandler) CreateNamespace ¶
func (k *K8sNamespaceHandler) CreateNamespace(ctx *gin.Context)
CreateNamespace 创建新的命名空间
func (*K8sNamespaceHandler) DeleteNamespace ¶
func (k *K8sNamespaceHandler) DeleteNamespace(ctx *gin.Context)
DeleteNamespace 删除指定的命名空间
func (*K8sNamespaceHandler) GetClusterNamespacesForCascade ¶
func (k *K8sNamespaceHandler) GetClusterNamespacesForCascade(ctx *gin.Context)
GetClusterNamespacesForCascade 获取级联选择的命名空间列表
func (*K8sNamespaceHandler) GetClusterNamespacesForSelect ¶
func (k *K8sNamespaceHandler) GetClusterNamespacesForSelect(ctx *gin.Context)
GetClusterNamespacesForSelect 获取用于选择的命名空间列表
func (*K8sNamespaceHandler) GetNamespaceDetails ¶
func (k *K8sNamespaceHandler) GetNamespaceDetails(ctx *gin.Context)
GetNamespaceDetails 获取指定命名空间的详情
func (*K8sNamespaceHandler) GetNamespaceEvents ¶
func (k *K8sNamespaceHandler) GetNamespaceEvents(ctx *gin.Context)
GetNamespaceEvents 获取指定命名空间中的事件
func (*K8sNamespaceHandler) GetNamespaceResources ¶
func (k *K8sNamespaceHandler) GetNamespaceResources(ctx *gin.Context)
GetNamespaceResources 获取指定命名空间中的资源
func (*K8sNamespaceHandler) RegisterRouters ¶
func (k *K8sNamespaceHandler) RegisterRouters(router *gin.Engine)
func (*K8sNamespaceHandler) UpdateNamespace ¶
func (k *K8sNamespaceHandler) UpdateNamespace(ctx *gin.Context)
UpdateNamespace 更新指定命名空间
type K8sNodeHandler ¶
type K8sNodeHandler struct {
// contains filtered or unexported fields
}
func NewK8sNodeHandler ¶
func NewK8sNodeHandler(logger *zap.Logger, nodeService admin.NodeService) *K8sNodeHandler
func (*K8sNodeHandler) AddLabelNodes ¶
func (k *K8sNodeHandler) AddLabelNodes(ctx *gin.Context)
AddLabelNodes 为节点添加标签
func (*K8sNodeHandler) DeleteLabelNodes ¶
func (k *K8sNodeHandler) DeleteLabelNodes(ctx *gin.Context)
DeleteLabelNodes 删除节点标签
func (*K8sNodeHandler) GetNodeDetail ¶
func (k *K8sNodeHandler) GetNodeDetail(ctx *gin.Context)
GetNodeDetail 获取指定名称的节点详情
func (*K8sNodeHandler) GetNodeList ¶
func (k *K8sNodeHandler) GetNodeList(ctx *gin.Context)
GetNodeList 获取节点列表
func (*K8sNodeHandler) RegisterRouters ¶
func (k *K8sNodeHandler) RegisterRouters(server *gin.Engine)
type K8sPodHandler ¶
type K8sPodHandler struct {
// contains filtered or unexported fields
}
func NewK8sPodHandler ¶
func NewK8sPodHandler(logger *zap.Logger, podService admin.PodService) *K8sPodHandler
func (*K8sPodHandler) DeletePod ¶
func (k *K8sPodHandler) DeletePod(ctx *gin.Context)
DeletePod 删除指定名称的 Pod
func (*K8sPodHandler) GetContainerLogs ¶
func (k *K8sPodHandler) GetContainerLogs(ctx *gin.Context)
GetContainerLogs 获取容器日志
func (*K8sPodHandler) GetPodContainers ¶
func (k *K8sPodHandler) GetPodContainers(ctx *gin.Context)
GetPodContainers 获取 Pod 的容器列表
func (*K8sPodHandler) GetPodListByNamespace ¶
func (k *K8sPodHandler) GetPodListByNamespace(ctx *gin.Context)
GetPodListByNamespace 根据命名空间获取 Pods 列表
func (*K8sPodHandler) GetPodYaml ¶
func (k *K8sPodHandler) GetPodYaml(ctx *gin.Context)
GetPodYaml 获取 Pod 的 YAML 配置
func (*K8sPodHandler) GetPodsListByNodeName ¶
func (k *K8sPodHandler) GetPodsListByNodeName(ctx *gin.Context)
GetPodsListByNodeName 获取指定节点上的 Pods 列表
func (*K8sPodHandler) RegisterRouters ¶
func (k *K8sPodHandler) RegisterRouters(server *gin.Engine)
type K8sSvcHandler ¶
type K8sSvcHandler struct {
// contains filtered or unexported fields
}
func NewK8sSvcHandler ¶
func NewK8sSvcHandler(l *zap.Logger, svcService admin.SvcService) *K8sSvcHandler
func (*K8sSvcHandler) BatchDeleteServices ¶
func (k *K8sSvcHandler) BatchDeleteServices(ctx *gin.Context)
BatchDeleteServices 批量删除 Service
func (*K8sSvcHandler) DeleteService ¶
func (k *K8sSvcHandler) DeleteService(ctx *gin.Context)
DeleteService 删除指定 Service
func (*K8sSvcHandler) GetServiceListByNamespace ¶
func (k *K8sSvcHandler) GetServiceListByNamespace(ctx *gin.Context)
GetServiceListByNamespace 根据命名空间获取 Service 列表
func (*K8sSvcHandler) GetServiceYaml ¶
func (k *K8sSvcHandler) GetServiceYaml(ctx *gin.Context)
GetServiceYaml 获取 Service 的 YAML 配置
func (*K8sSvcHandler) RegisterRouters ¶
func (k *K8sSvcHandler) RegisterRouters(server *gin.Engine)
func (*K8sSvcHandler) UpdateService ¶
func (k *K8sSvcHandler) UpdateService(ctx *gin.Context)
UpdateService 更新指定 Name 的 Service
type K8sTaintHandler ¶
type K8sTaintHandler struct {
// contains filtered or unexported fields
}
func NewK8sTaintHandler ¶
func NewK8sTaintHandler(logger *zap.Logger, taintService admin.TaintService) *K8sTaintHandler
func (*K8sTaintHandler) AddTaintsNodes ¶
func (k *K8sTaintHandler) AddTaintsNodes(ctx *gin.Context)
AddTaintsNodes 为节点添加 Taint
func (*K8sTaintHandler) DeleteTaintsNodes ¶
func (k *K8sTaintHandler) DeleteTaintsNodes(ctx *gin.Context)
DeleteTaintsNodes 删除节点 Taint
func (*K8sTaintHandler) DrainPods ¶
func (k *K8sTaintHandler) DrainPods(ctx *gin.Context)
DrainPods 清空节点上的 Pods
func (*K8sTaintHandler) RegisterRouters ¶
func (k *K8sTaintHandler) RegisterRouters(server *gin.Engine)
func (*K8sTaintHandler) ScheduleEnableSwitchNodes ¶
func (k *K8sTaintHandler) ScheduleEnableSwitchNodes(ctx *gin.Context)
ScheduleEnableSwitchNodes 启用或切换节点调度
func (*K8sTaintHandler) TaintYamlCheck ¶
func (k *K8sTaintHandler) TaintYamlCheck(ctx *gin.Context)
TaintYamlCheck 检查节点 Taint 的 YAML 配置
type K8sYamlTaskHandler ¶
type K8sYamlTaskHandler struct {
// contains filtered or unexported fields
}
func NewK8sYamlTaskHandler ¶
func NewK8sYamlTaskHandler(l *zap.Logger, yamlTaskService admin.YamlTaskService) *K8sYamlTaskHandler
func (*K8sYamlTaskHandler) ApplyYamlTask ¶
func (k *K8sYamlTaskHandler) ApplyYamlTask(ctx *gin.Context)
ApplyYamlTask 应用指定 ID 的 YAML 任务
func (*K8sYamlTaskHandler) CreateYamlTask ¶
func (k *K8sYamlTaskHandler) CreateYamlTask(ctx *gin.Context)
CreateYamlTask 创建新的 YAML 任务
func (*K8sYamlTaskHandler) DeleteYamlTask ¶
func (k *K8sYamlTaskHandler) DeleteYamlTask(ctx *gin.Context)
DeleteYamlTask 删除指定 ID 的 YAML 任务
func (*K8sYamlTaskHandler) GetYamlTaskList ¶
func (k *K8sYamlTaskHandler) GetYamlTaskList(ctx *gin.Context)
GetYamlTaskList 获取 YAML 任务列表
func (*K8sYamlTaskHandler) RegisterRouters ¶
func (k *K8sYamlTaskHandler) RegisterRouters(server *gin.Engine)
func (*K8sYamlTaskHandler) UpdateYamlTask ¶
func (k *K8sYamlTaskHandler) UpdateYamlTask(ctx *gin.Context)
UpdateYamlTask 更新指定 ID 的 YAML 任务
type K8sYamlTemplateHandler ¶
type K8sYamlTemplateHandler struct {
// contains filtered or unexported fields
}
func NewK8sYamlTemplateHandler ¶
func NewK8sYamlTemplateHandler(l *zap.Logger, yamlTemplateService admin.YamlTemplateService) *K8sYamlTemplateHandler
func (*K8sYamlTemplateHandler) CheckYamlTemplate ¶
func (k *K8sYamlTemplateHandler) CheckYamlTemplate(ctx *gin.Context)
func (*K8sYamlTemplateHandler) CreateYamlTemplate ¶
func (k *K8sYamlTemplateHandler) CreateYamlTemplate(ctx *gin.Context)
CreateYamlTemplate 创建新的 YAML 模板
func (*K8sYamlTemplateHandler) DeleteYamlTemplate ¶
func (k *K8sYamlTemplateHandler) DeleteYamlTemplate(ctx *gin.Context)
DeleteYamlTemplate 删除指定 ID 的 YAML 模板
func (*K8sYamlTemplateHandler) GetYamlTemplateDetail ¶
func (k *K8sYamlTemplateHandler) GetYamlTemplateDetail(ctx *gin.Context)
func (*K8sYamlTemplateHandler) GetYamlTemplateList ¶
func (k *K8sYamlTemplateHandler) GetYamlTemplateList(ctx *gin.Context)
GetYamlTemplateList 获取 YAML 模板列表
func (*K8sYamlTemplateHandler) RegisterRouters ¶
func (k *K8sYamlTemplateHandler) RegisterRouters(server *gin.Engine)
func (*K8sYamlTemplateHandler) UpdateYamlTemplate ¶
func (k *K8sYamlTemplateHandler) UpdateYamlTemplate(ctx *gin.Context)
UpdateYamlTemplate 更新指定 ID 的 YAML 模板