func (d *kubectlInstallerInCentOS) Available() (ok bool) {
	if runtime.GOOS == "linux" {
		_, err := exec.LookPath("yum")
		ok = err == nil
	}
	return
}
Available check if support current platform
package yum
import (
	_ "embed"
	"fmt"
	"github.com/linuxsuren/http-downloader/pkg/exec"
	"io/ioutil"
	"runtime"
)
var kubernetesRepo string
type kubectlInstallerInCentOS struct {
	count int
}