server_node.go 639 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package models
  2. import "golang.org/x/crypto/ssh"
  3. type ServerNodeConfig struct {
  4. NodeId string
  5. *ServerNodeInfo
  6. *SSHInfo
  7. *AppInfo
  8. *SysInfo
  9. }
  10. type ServerNodeInfo struct {
  11. IpPort string
  12. LocalFile string
  13. TargetFile string
  14. User string
  15. Password string
  16. XuguAddr string
  17. }
  18. type SSHInfo struct {
  19. SSHClient *ssh.ClientConfig
  20. }
  21. type AppInfo struct {
  22. Gcc string
  23. Libaio string
  24. Snmpd string
  25. Ntpd string
  26. }
  27. type SysInfo struct {
  28. OsStackSize string
  29. OsOpenFiles string
  30. CoreWmemDefault string
  31. CoreRmemDefault string
  32. CoreRmemMax string
  33. CoreWmemMax string
  34. }