res

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Docker = Package{
		Name:     "docker",
		Versions: spec.DockerVersions,
	}
	CNIPlugins = Package{
		Name:     "cni-plugins",
		Versions: spec.CNIPluginsVersions,
	}

	Kubeadm = Package{
		Name:     "kubeadm",
		Versions: spec.KubeadmVersions,
	}
	KubernetesNode = Package{
		Name:     "kubernetes-node",
		Versions: spec.K8sVersionsWithV,
	}
	NvidiaDriver = Package{
		Name:     "NVIDIA",
		Versions: spec.NvidiaDriverVersions,
	}
	NvidiaContainerRuntime = Package{
		Name:     "nvidia-container-runtime",
		Versions: spec.NvidiaContainerRuntimeVersions,
	}
)

Functions

func Arch

func Arch(s ssh.Interface) string

Types

type Package

type Package struct {
	Name     string
	Versions []string
}

func (*Package) CopyToNode

func (p *Package) CopyToNode(s ssh.Interface, version string) (string, error)

CopyToNode copy package which use default version to node and return dst filename

func (*Package) CopyToNodeWithDefault

func (p *Package) CopyToNodeWithDefault(s ssh.Interface) (string, error)

CopyToNode copy package which use default version to node and return dst filename

func (*Package) DefaultVersion

func (p *Package) DefaultVersion() string

func (*Package) NormalizeVersion

func (p *Package) NormalizeVersion(version string) (string, error)

func (*Package) Resource

func (p *Package) Resource(arch, version string) (string, error)

func (*Package) ResourceForNode

func (p *Package) ResourceForNode(s ssh.Interface, version string) (string, error)

Jump to

Keyboard shortcuts

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