wiparser

package
v0.0.0-...-e561cac Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const InstanceConfigMap = "windows-instances"

InstanceConfigMap is the name of the ConfigMap where VMs to be configured should be described.

Variables

This section is empty.

Functions

func GetInstances

func GetInstances(c client.Client, namespace string) ([]*instance.Info, error)

GetInstances returns a list of Windows instances by parsing the Windows instance configMap.

func GetNodeUsername

func GetNodeUsername(instancesData map[string]string, node *core.Node) (string, error)

GetNodeUsername retrieves the username associated with the given node from the instance ConfigMap data

func Parse

func Parse(instancesData map[string]string, nodes *core.NodeList) ([]*instance.Info, error)

Parse returns the list of instances specified in the Windows instances data. This function should be passed a list of Nodes in the cluster, as each instance returned will contain a reference to its associated Node, if it has one in the given NodeList. If an instance does not have an associated node from the NodeList, the node reference will be nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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