From 632954f9bd2aed21a566d114ed64b5bce4dedb1b Mon Sep 17 00:00:00 2001
From: cheliequan <liequanche@126.com>
Date: 星期三, 24 五月 2023 20:07:56 +0800
Subject: [PATCH] 更新代码,执行main测试

---
 src/cluster/cluster.go |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/cluster/cluster.go b/src/cluster/cluster.go
index bf26f6a..de960b7 100644
--- a/src/cluster/cluster.go
+++ b/src/cluster/cluster.go
@@ -9,6 +9,7 @@
 	"strings"
 
 	"basic.com/aps/aps_deploy.git/src/util"
+	"basic.com/aps/aps_deploy.git/src/rancher"
 )
 
 type Cluster struct {
@@ -154,10 +155,6 @@
 	SSHPort     int      `json:"sshPort"`
 }
 
-type RancherConfig struct {
-	RancherURL  string `json:"rancherURL"`
-	BearerToken string `json:"bearerToken"`
-}
 
 type ClusterCreateRequest struct {
 	Name                          string      `json:"name"`
@@ -250,7 +247,7 @@
 	return true, nil
 }
 
-func CreateCluster(rancherConfig RancherConfig, clusterName string) error {
+func CreateCluster(rancherConfig rancher.RancherConfig, clusterName string) error {
 	requestBody := createClusterData(clusterName)
 
 	url := fmt.Sprintf("%s/v3/clusters", rancherConfig.RancherURL)

--
Gitblit v1.8.0