wangpengfei
2023-05-31 052db984ad73ddb0ba66237e93a48b5e120e6a4e
src/rancher/rancher.go
@@ -6,7 +6,6 @@
   "basic.com/aps/aps_deploy.git/src/util"
)
type Node struct {
   Roles       []string `json:"roles"`
   IP          string   `json:"ip"`
@@ -15,14 +14,12 @@
   SSHPort     int      `json:"sshPort"`
}
type RancherClusterConfig struct {
   RancherURL  string `json:"rancherURL"`
   BearerToken string `json:"bearerToken"`
   ClusterName string   `mapstructure:"ClusterName"`
   Nodes       []Node   `mapstructure:"Nodes"`
}
func isRancherInstalled(ip, username, password string, sshPort int) (bool, error) {
   // 检查Rancher容器是否已运行