Versions in this module Expand all Collapse all v3 v3.3.8 May 6, 2020 v3.3.7 May 6, 2020 v3.3.6 May 6, 2020 Changes in this version + const TemplateText + var ApiServer string + var ApiServerCertSANs []string + var CertEtcdPath = "/root/.sealos/pki/etcd" + var CertPath = "/root/.sealos/pki" + var CertificateKey string + var CleanAll bool + var CleanForce bool + var ClusterDir = "/root/.sealos/clusters/" + var ConfigType string + var DefaultURL = "https://sealyun.oss-cn-beijing.aliyuncs.com/37374d999dbadb788ef0461844a70151-1.16.0/kube1.16.0.tar.gz" + var DnsDomain string + var IPIP bool + var Interface string + var Ipvs care.LvsCare + var JoinToken string + var KubeadmFile string + var LvscareImage ipvs.LvscareImage + var MTU string + var MasterIPs []string + var Network string + var NodeIPs []string + var PkgUrl string + var PodCIDR string + var Repo string + var SSHConfig sshutil.SSH + var SvcCIDR string + var TokenCaCertHash string + var URLmap map[string]string + var VIP string + var Version string + var VersionURL string + var WithoutCNI bool + var YesRx = regexp.MustCompile("^(?i:y(?:es)?)$") + func AppInstall(url string) + func BuildClean(deleteNodes, deleteMasters []string) + func BuildInit() + func BuildJoin(joinMasters, joinNodes []string) + func CloudInstall(c *Cluster) + func CmdWorkSpace(node, cmd, workdir string) + func Cmp(a, b net.IP) int + func Config() + func Confirm(prompt string) bool + func DecodeIPs(ips []string) []string + func Dump(path string, content interface{}) error + func Exec(c *PkgConfig, config SealConfig) + func FetchSealosAbsPath() string + func GetConfirmResult(str string) bool + func GetRemoteHostName(hostIP string) string + func IpFormat(host string) string + func Load(path string, content interface{}) error + func NewCommands(cmds []Command) (Runner, Runner) + func NextIP(ip net.IP) net.IP + func ParseIPs(ips []string) []string + func RandString(len int) string + func SendPackage(location string, hosts []string, dst string, before, after *string) string + func SliceRemoveStr(ss []string, s string) (result []string) + func Template() []byte + func TemplateFromTemplateContent(templateContent string) []byte + func VersionToInt(version string) int + type Apply interface + KubeApply func(name string) + type Check interface + CheckValid func() + type Clean interface + Clean func() + type CleanCluster interface + type Cluster struct + Masters []cloud.VM + Name string + Nodes []cloud.VM + SecuretyGroupID string + SwitchID string + VPCID string + var C Cluster + type Command struct + Cmd string + Name string + Type string + type CommandType string + const InitMaster + const JoinMaster + const JoinNode + type Flags struct + Flavor string + Image string + Interaction bool + Master int + MasterType string + Node int + NodeType string + Passwd string + Version string + Zone string + type Init interface + type Install interface + type Join interface + GeneratorToken func() + JoinMasters func() + JoinNodes func() + type JoinNodeAndMaster interface + type KubeadmType struct + ApiServer struct{ ... } + Kind string + Networking struct{ ... } + func KubeadmDataFromYaml(context string) *KubeadmType + type PkgConfig struct + Cmds []Command + Name string + URL string + func LoadConfig(packageFile string) (*PkgConfig, error) + type PreInit interface + InstallMaster0 func() + KubeadmConfigInstall func() + type Print interface + Print func(process ...string) + type RunOnEveryNodes struct + Cmd []Command + func (r *RunOnEveryNodes) Run(config SealConfig, url, pkgName string) + type RunOnMaster struct + Cmd []Command + func (r *RunOnMaster) Run(config SealConfig, url, pkgName string) + type Runner interface + Run func(config SealConfig, url, pkgName string) + type SealConfig struct + ApiServerCertSANs []string + ApiServerDomian string + CertEtcdPath string + CertPath string + DnsDomain string + LvscareName string + LvscareTag string + Masters []string + Nodes []string + Passwd string + PkgURL string + PodCIDR string + PrivateKey string + Repo string + SvcCIDR string + User string + VIP string + Version string + func (c *SealConfig) Dump(path string) + func (c *SealConfig) Load(path string) (err error) + func (c *SealConfig) ShowDefaultConfig() + type SealosClean struct + func (s *SealosClean) Clean() + type SealosInstaller struct + Hosts []string + Masters []string + Nodes []string + func (s *SealosInstaller) CheckValid() + func (s *SealosInstaller) Command(version string, name CommandType) (cmd string) + func (s *SealosInstaller) CreateKubeconfig() + func (s *SealosInstaller) GenerateCert() + func (s *SealosInstaller) GeneratorCerts() + func (s *SealosInstaller) GeneratorToken() + func (s *SealosInstaller) InstallMaster0() + func (s *SealosInstaller) JoinMasters(masters []string) + func (s *SealosInstaller) JoinNodes() + func (s *SealosInstaller) KubeadmConfigInstall() + func (s *SealosInstaller) Print(process ...string) + func (s *SealosInstaller) PrintFinish() + func (s *SealosInstaller) SendKubeConfigs(masters []string, isMaster0 bool) + func (s *SealosInstaller) SendPackage() + type Send interface + SendPackage func() Other modules containing this package github.com/fanux/sealos