Documentation ¶
Index ¶
- Variables
- func Arch(s ssh.Interface) string
- type Package
- func (p *Package) CopyToNode(s ssh.Interface, version string) (string, error)
- func (p *Package) CopyToNodeWithDefault(s ssh.Interface) (string, error)
- func (p *Package) DefaultVersion() string
- func (p *Package) Install(s ssh.Interface, version string) error
- func (p *Package) InstallWithDefault(s ssh.Interface) error
- func (p *Package) NormalizeVersion(version string) (string, error)
- func (p *Package) Resource(arch, version string) (string, error)
- func (p *Package) ResourceForNode(s ssh.Interface, version string) (string, error)
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 ¶
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 ¶
CopyToNode copy package which use default version to node and return dst filename
func (*Package) CopyToNodeWithDefault ¶
CopyToNode copy package which use default version to node and return dst filename
func (*Package) DefaultVersion ¶
func (*Package) InstallWithDefault ¶ added in v1.3.1
func (*Package) NormalizeVersion ¶
Click to show internal directories.
Click to hide internal directories.