Documentation ¶
Index ¶
Constants ¶
View Source
const ( CNI = "cni" CRICTL = "crictl" DOCKER = "docker" CRIDOCKERD = "cri-dockerd" ETCD = "etcd" HELM = "helm" KUBE = "kube" REGISTRY = "registry" CONTAINERD = "containerd" RUNC = "runc" )
KubeBinary Type field const
Variables ¶
View Source
var ( // FileSha256 is a hash table the storage the checksum of the binary files. It is parsed from 'version/components.json'. FileSha256 = map[string]map[string]map[string]string{} )
Functions ¶
This section is empty.
Types ¶
type KubeBinary ¶
type KubeBinary struct { Type string ID string FileName string Arch string Version string Url string BaseDir string Zone string // contains filtered or unexported fields }
func NewKubeBinary ¶
func NewKubeBinary(name, arch, version, prePath string, getCmd func(path, url string) string) *KubeBinary
func (*KubeBinary) CreateBaseDir ¶
func (b *KubeBinary) CreateBaseDir() error
func (*KubeBinary) Download ¶
func (b *KubeBinary) Download() error
func (*KubeBinary) GetCmd ¶
func (b *KubeBinary) GetCmd() string
func (*KubeBinary) GetSha256 ¶
func (b *KubeBinary) GetSha256() string
func (*KubeBinary) Path ¶
func (b *KubeBinary) Path() string
func (*KubeBinary) SHA256Check ¶
func (b *KubeBinary) SHA256Check() error
SHA256Check is used to hash checks on downloaded binary. (sha256)
Click to show internal directories.
Click to hide internal directories.