| 19 | package response |
| 20 | |
| 21 | type ServerResourceResponse struct { |
| 22 | GVA_MODEL |
| 23 | Type ReourceTypeEnum `json:"type"` |
| 24 | Name string `json:"name"` |
| 25 | AuthenticationType AuthenticationTypeEnum `json:"authentication_type"` |
| 26 | IP string `json:"ip" ` |
| 27 | Port int `json:"port" ` |
| 28 | Status ResourceStatusEnum `json:"status" ` |
| 29 | // ssh 模式下的用户名 && k8s ingress 用户名 |
| 30 | UserName string `json:"username" ` |
| 31 | // ssh 模式 用户名密码验证方式的密码 && k8s ingress 密码 |
| 32 | Password string `json:"password" ` |
| 33 | SSHKey string `json:"sshkey" ` |
| 34 | |
| 35 | KubeConfigContent string `json:"kube_config"` |
| 36 | KubeBaseDNS string `json:"kube_ingress_base_dns" ` |
| 37 | KubeContext string `json:"kube_context" ` |
| 38 | |
| 39 | //KubeUserName string `json:"kube_ingress_user_name"` |
| 40 | //KubePassword string `json:"kube_ingress_password"` |
| 41 | |
| 42 | OwnerGUID string `json:"ownerGuid" ` |
| 43 | OwnerName string `json:"ownerName" ` |
| 44 | } |
| 45 | |
| 46 | // 资源类型 |
| 47 | type ReourceTypeEnum int |
nothing calls this directly
no outgoing calls
no test coverage detected