node

package
v0.2.6-alpha.19 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImage

func GetImage(ctx context.Context, r client.Client, node corev1.Node, robot robotv1alpha1.Robot) (string, error)

func GetImageForBridge

func GetImageForBridge(ctx context.Context, r client.Client, node corev1.Node, robot robotv1alpha1.Robot) (string, error)

func GetImageForEnvironment

func GetImageForEnvironment(ctx context.Context, r client.Client, node corev1.Node, robot robotv1alpha1.Robot) (string, error)

func GetImageForRobot

func GetImageForRobot(ctx context.Context, r client.Client, node corev1.Node, robot robotv1alpha1.Robot) (string, error)

func GetPlatformVersion

func GetPlatformVersion(node corev1.Node) string

func HasGPU

func HasGPU(node corev1.Node) bool

func IsK3s added in v0.2.4

func IsK3s(node corev1.Node) bool

Types

type Application

type Application struct {
	Name    string `yaml:"name"`
	Version string `yaml:"version"`
}

type DevSpaceImage

type DevSpaceImage struct {
	UbuntuDistro string `yaml:"ubuntuDistro"`
	Desktop      string `yaml:"desktop"`
	Version      string `yaml:"version"`
}

type Element

type Element struct {
	Application   Application   `yaml:"application"`
	DevSpaceImage DevSpaceImage `yaml:"devspace"`
}

type Images

type Images struct {
	Organization string               `yaml:"organization"`
	Repository   string               `yaml:"repository"`
	Domains      map[string][]Element `yaml:"domains"`
}

type Platform

type Platform struct {
	Versions []Version `yaml:"versions"`
}

type ReadyRobotProperties

type ReadyRobotProperties struct {
	Enabled bool
	Image   string
}

Not used in robot manifest, needed for internal use.

func GetReadyRobotProperties

func GetReadyRobotProperties(robot robotv1alpha1.Robot) ReadyRobotProperties

type Version

type Version struct {
	Date    string `yaml:"date"`
	Version string `yaml:"version"`
	Images  Images `yaml:"images"`
}

Jump to

Keyboard shortcuts

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