Documentation ¶
Index ¶
- func CentOSVersion(w io.Writer) (string, error)
- func Modprobe(out io.Writer, module string) error
- func ModprobeBFNetFilter(out io.Writer) error
- func ModprobeOverlay(out io.Writer) error
- func RedHatVersion(w io.Writer) (string, error)
- func SwapOff(out io.Writer) error
- func SysctlLoadAllFiles(out io.Writer) error
- func Systemctl(out io.Writer, command, service string) error
- func SystemctlActive(out io.Writer, service string) (bool, error)
- func SystemctlDisable(out io.Writer, service string) error
- func SystemctlDisableAndStop(out io.Writer, service string) error
- func SystemctlEnable(out io.Writer, service string) error
- func SystemctlEnableAndStart(out io.Writer, service string) error
- func SystemctlEnabled(out io.Writer, service string) (bool, error)
- func SystemctlReload(out io.Writer) error
- func SystemctlStart(out io.Writer, service string) error
- func SystemctlStop(out io.Writer, service string) error
- func YumInstall(out io.Writer, packages []string) error
- type KubernetesPackages
- type YumInstaller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CentOSVersion ¶
CentOSVersion extract CentOS operating system version
func ModprobeBFNetFilter ¶
func ModprobeOverlay ¶
func RedHatVersion ¶
RedHatVersion extract RedHat operating system version
func SysctlLoadAllFiles ¶
func SystemctlReload ¶
Types ¶
type KubernetesPackages ¶
type YumInstaller ¶
type YumInstaller struct{}
func NewYumInstaller ¶
func NewYumInstaller() *YumInstaller
func (*YumInstaller) InstallKubeadmPackage ¶
func (y *YumInstaller) InstallKubeadmPackage(out io.Writer, kubernetesVersion string) error
func (*YumInstaller) InstallKubernetesPackages ¶
func (y *YumInstaller) InstallKubernetesPackages(out io.Writer, kubernetesVersion string) error
Click to show internal directories.
Click to hide internal directories.