files

package
v3.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 9

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"
	BUILD      = "buildx"
)

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

func SHA256CheckEqual added in v3.1.2

func SHA256CheckEqual(filePath string, checksum string) (bool, error)

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)

Jump to

Keyboard shortcuts

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