package dto // 集群域 type CreateClusterRequest struct { Name string `json:"name" binding:"required"` Description string `json:"description"` ConfigType string `json:"configType"` // kubeconfig | token APIServer string `json:"apiServer"` // token 模式必填 KubeConfig string `json:"kubeconfig"` // kubeconfig 模式必填 Token string `json:"token"` // token 模式必填 Context string `json:"context"` }