cluster

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterConfig

type ClusterConfig struct {
	Enabled       *bool   `yaml:"enabled"`
	Driver        *string `yaml:"driver"`
	ControlPlanes struct {
		Count  *int                  `yaml:"count,omitempty"`
		CPU    *int                  `yaml:"cpu,omitempty"`
		Memory *int                  `yaml:"memory,omitempty"`
		Nodes  map[string]NodeConfig `yaml:"nodes,omitempty"`
	} `yaml:"controlplanes,omitempty"`
	Workers struct {
		Count  *int                  `yaml:"count,omitempty"`
		CPU    *int                  `yaml:"cpu,omitempty"`
		Memory *int                  `yaml:"memory,omitempty"`
		Nodes  map[string]NodeConfig `yaml:"nodes,omitempty"`
	} `yaml:"workers,omitempty"`
}

ClusterConfig represents the cluster configuration

func (*ClusterConfig) Copy

func (c *ClusterConfig) Copy() *ClusterConfig

Copy creates a deep copy of the ClusterConfig object

func (*ClusterConfig) Merge

func (base *ClusterConfig) Merge(overlay *ClusterConfig)

Merge performs a deep merge of the current ClusterConfig with another ClusterConfig.

type NodeConfig

type NodeConfig struct {
	Hostname *string `yaml:"hostname"`
	Node     *string `yaml:"node,omitempty"`
	Endpoint *string `yaml:"endpoint,omitempty"`
}

NodeConfig represents the node configuration

Jump to

Keyboard shortcuts

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