res

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 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,
	}
	ConntrackTools = Package{
		Name:      "conntrack-tools",
		Versions:  spec.ConntrackToolsVersions,
		TargetDir: "/",
	}
	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 to package must ends with .tag.gz
	Name     string
	Versions []string
	// TargetDir for untar working dir
	TargetDir 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) Install added in v1.3.1

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

func (*Package) InstallWithDefault added in v1.3.1

func (p *Package) InstallWithDefault(s ssh.Interface) error

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