capi

package
v0.0.0-...-9fc8b42 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: UPL-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClusterControlPlaneRef []string = []string{"spec", "controlPlaneRef"}
View Source
var ClusterInfrastructureRef []string = []string{"spec", "infrastructureRef"}

These should be treated as constants

View Source
var ControlPlaneMachineTemplateInfrastructureRef []string = []string{"spec", "machineTemplate", "infrastructureRef"}
View Source
var ControlPlaneVersion []string = []string{"spec", "version"}
View Source
var MachineDeploymentInfrastructureRef []string = []string{"spec", "template", "spec", "infrastructureRef"}
View Source
var MachineDeploymentVersion []string = []string{"spec", "template", "spec", "version"}

Functions

This section is empty.

Types

type ClusterGraph

type ClusterGraph struct {
	Cluster               *GraphNode
	InfrastructureCluster *GraphNode
	ControlPlane          *GraphNode
	MachineTemplates      map[string]map[string]*GraphNode
	MachineDeployments    map[string]*GraphNode
	MachineSets           map[string]*GraphNode
	Machines              map[string]*GraphNode
	All                   map[string]map[string]*GraphNode
}

func GetClusterGraph

func GetClusterGraph(restConf *rest.Config, namespace string, name string) (*ClusterGraph, error)

func (*ClusterGraph) AddToAll

func (cg *ClusterGraph) AddToAll(gn *GraphNode) *GraphNode

func (*ClusterGraph) WalkMachineTemplates

func (cg *ClusterGraph) WalkMachineTemplates(cb WalkResourceCb, arg interface{}) error

type GraphNode

type GraphNode struct {
	Object   *unstructured.Unstructured
	Children map[string]map[string]*GraphNode
}

func (*GraphNode) AddChild

func (gn *GraphNode) AddChild(c *GraphNode)

func (*GraphNode) GetName

func (gn *GraphNode) GetName() string

type Named

type Named interface {
	GetName() string
}

type WalkResourceCb

type WalkResourceCb func(*GraphNode, *GraphNode, interface{}) error

Jump to

Keyboard shortcuts

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