templates

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CommonFunctions = `` /* 1309-byte string literal not displayed */
View Source
const KindTemplate = `` /* 1486-byte string literal not displayed */
View Source
const KubeadmTemplate = `` /* 3668-byte string literal not displayed */
View Source
const NvDriverTemplate = `` /* 378-byte string literal not displayed */

From https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html#ubuntu-lts

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerToolkit

type ContainerToolkit struct {
	ContainerRuntime string
}

func NewContainerToolkit

func NewContainerToolkit(env v1alpha1.Environment) *ContainerToolkit

func (*ContainerToolkit) Execute

func (t *ContainerToolkit) Execute(tpl *bytes.Buffer, env v1alpha1.Environment) error

type Containerd

type Containerd struct {
	Version string
}

func NewContainerd

func NewContainerd(env v1alpha1.Environment) *Containerd

func (*Containerd) Execute

func (t *Containerd) Execute(tpl *bytes.Buffer, env v1alpha1.Environment) error

type CriO

type CriO struct {
	Version string
}

func NewCriO

func NewCriO(env v1alpha1.Environment) *CriO

func (*CriO) Execute

func (t *CriO) Execute(tpl *bytes.Buffer, env v1alpha1.Environment) error

type Docker

type Docker struct {
	Version string
}

func NewDocker

func NewDocker(env v1alpha1.Environment) *Docker

func (*Docker) Execute

func (t *Docker) Execute(tpl *bytes.Buffer, env v1alpha1.Environment) error

type Kubernetes

type Kubernetes struct {
	Version               string
	Installer             string
	KubeletReleaseVersion string
	Arch                  string
	CniPluginsVersion     string
	CalicoVersion         string
	CrictlVersion         string
	K8sEndpointHost       string
	K8sFeatureGates       string
	// Kind exclusive
	KindConfig string
}

func NewKubernetes

func NewKubernetes(env v1alpha1.Environment) (*Kubernetes, error)

func (*Kubernetes) Execute

func (k *Kubernetes) Execute(tpl *bytes.Buffer, env v1alpha1.Environment) error

type NvDriver

type NvDriver struct {
}

func NewNvDriver

func NewNvDriver() *NvDriver

func (*NvDriver) Execute

func (t *NvDriver) Execute(tpl *bytes.Buffer, env v1alpha1.Environment) error

type Template

type Template interface {
	Execute(tpl *bytes.Buffer, env v1alpha1.Environment) error
}

Template is the interface that wraps the Execute method.

Jump to

Keyboard shortcuts

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