install

package
v2.0.3+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2019 License: Apache-2.0 Imports: 16 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	User        string
	Passwd      string
	KubeadmFile string
	Version     string
)

username

Functions

func AddrReformat

func AddrReformat(host string) string

func Cmd

func Cmd(host string, cmd string) []byte

Cmd is

func Connect

func Connect(user, passwd, host string) (*ssh.Session, error)

Connect is

func Copy

func Copy(host, localFilePath, remoteFilePath string)

Copy is

func GetFileSize

func GetFileSize(url string) int

func RemoteFilExist

func RemoteFilExist(host, remoteFilePath string) bool

func ReturnCmd

func ReturnCmd(host, cmd string) string

func SftpConnect

func SftpConnect(user, password, host string) (*sftp.Client, error)

SftpConnect is

func Template

func Template(masters []string, vip string, version string) []byte

Template is

func WatchFileSize

func WatchFileSize(host, filename string, size int)

Types

type Installer

type Installer interface {
	KubeadmConfigInstall()
	InstallMaster0()
	JoinMasters()
	JoinNodes()
	CleanCluster()
	SendPackage(url string)
}

Installer is

func BuildInstaller

func BuildInstaller(masters []string, nodes []string, vip string) Installer

BuildInstaller is

type SealosInstaller

type SealosInstaller struct {
	Masters         []string
	Nodes           []string
	VIP             string
	JoinToken       string
	TokenCaCertHash string
	CertificateKey  string
}

SealosInstaller is

func (*SealosInstaller) CleanCluster

func (s *SealosInstaller) CleanCluster()

CleanCluster is

func (*SealosInstaller) InstallMaster0

func (s *SealosInstaller) InstallMaster0()

InstallMaster0 is

func (*SealosInstaller) JoinMasters

func (s *SealosInstaller) JoinMasters()

JoinMasters is

func (*SealosInstaller) JoinNodes

func (s *SealosInstaller) JoinNodes()

JoinNodes is

func (*SealosInstaller) KubeadmConfigInstall

func (s *SealosInstaller) KubeadmConfigInstall()

KubeadmConfigInstall is

func (*SealosInstaller) SendPackage

func (s *SealosInstaller) SendPackage(url string)

SendPackage is

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL