Documentation ¶
Index ¶
- Variables
- func AddrReformat(host string) string
- func Cmd(host string, cmd string) []byte
- func Connect(user, passwd, host string) (*ssh.Session, error)
- func Copy(host, localFilePath, remoteFilePath string)
- func GetFileSize(url string) int
- func RemoteFilExist(host, remoteFilePath string) bool
- func ReturnCmd(host, cmd string) string
- func SftpConnect(user, password, host string) (*sftp.Client, error)
- func Template(masters []string, vip string, version string) []byte
- func WatchFileSize(host, filename string, size int)
- type Installer
- type SealosInstaller
Constants ¶
This section is empty.
Variables ¶
View Source
var ( User string Passwd string KubeadmFile string Version string )
username
Functions ¶
func AddrReformat ¶
func GetFileSize ¶
func RemoteFilExist ¶
func SftpConnect ¶
SftpConnect is
func WatchFileSize ¶
Types ¶
type Installer ¶
type Installer interface { KubeadmConfigInstall() InstallMaster0() JoinMasters() JoinNodes() CleanCluster() SendPackage(url string) }
Installer is
type SealosInstaller ¶
type SealosInstaller struct { Masters []string Nodes []string VIP string JoinToken string TokenCaCertHash string CertificateKey string }
SealosInstaller is
func (*SealosInstaller) InstallMaster0 ¶
func (s *SealosInstaller) InstallMaster0()
InstallMaster0 is
func (*SealosInstaller) KubeadmConfigInstall ¶
func (s *SealosInstaller) KubeadmConfigInstall()
KubeadmConfigInstall is
func (*SealosInstaller) SendPackage ¶
func (s *SealosInstaller) SendPackage(url string)
SendPackage is
Click to show internal directories.
Click to hide internal directories.