tmpl

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Init             = "init"
	JoinNode         = "joinNode"
	JoinControlPlane = "joinControlPlane"
)

Variables

This section is empty.

Functions

func ChangeHosts

func ChangeHosts(ip, apiDomainName string) string

func ChownKubectlConfig

func ChownKubectlConfig() string

func CopyAdminConfig

func CopyAdminConfig() string

func Flannel

func Flannel(network, image, backendType string) (string, error)

func Iptables

func Iptables() string

func Kubeadm

func Kubeadm(tmplName, nodeName string, kubernetes rundata.Kubernetes, kubeadmCfg rundata.Kubeadm) (string, error)

func KubeletUnitFile

func KubeletUnitFile(image string) string

func NginxConf

func NginxConf(masters []string, nginxPort, masterPort string) (string, error)

func NginxManifest

func NginxManifest(nginxImage string) string

func RemoveKubeletUnitFile

func RemoveKubeletUnitFile() string

func ResetHosts

func ResetHosts(apiDomainName string) string

func Restart

func Restart(name string) string

func SetHosts

func SetHosts(ip, apiDomainName string) string

func SwapOff

func SwapOff() string

Types

type Apt

type Apt struct {
}

func (Apt) Containerd

func (Apt) Containerd(version string) (string, error)

func (Apt) Docker

func (Apt) Docker(installTyped string, d rundata.Docker) (string, error)

func (Apt) KubeComponent

func (Apt) KubeComponent(version, installType string) (string, error)

func (Apt) RemoveDocker

func (Apt) RemoveDocker() string

func (Apt) RemoveKubeComponent

func (Apt) RemoveKubeComponent() string

type DocekrText

type DocekrText interface {
	Docker(installTyped string, dockerData rundata.Docker) (string, error)
	RemoveDocker() string
}

func NewContainerEngineText

func NewContainerEngineText(installationType string) DocekrText

type KubeText

type KubeText interface {
	KubeComponent(version, installType string) (string, error)
	RemoveKubeComponent() string
}

func NewKubeText

func NewKubeText(installationType string) KubeText

type Yum

type Yum struct {
}

func (Yum) Containerd

func (Yum) Containerd(version string) (string, error)

func (Yum) Docker

func (Yum) Docker(installType string, d rundata.Docker) (string, error)

func (Yum) KubeComponent

func (Yum) KubeComponent(version, installType string) (string, error)

func (Yum) RemoveDocker

func (Yum) RemoveDocker() string

func (Yum) RemoveKubeComponent

func (Yum) RemoveKubeComponent() string

Jump to

Keyboard shortcuts

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