util

package
v0.0.0-...-e7563ab Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudConfigNamespace = "openshift-config"
)

Variables

View Source
var (
	// Make the vSphere call timeout configurable.
	Timeout = flag.Duration("vmware-timeout", 5*time.Minute, "Timeout of all VMware calls")
)

Functions

This section is empty.

Types

type ClusterInfo

type ClusterInfo struct {
	// contains filtered or unexported fields
}

func MakeClusterInfo

func MakeClusterInfo(d map[string]string) *ClusterInfo

MakeClusterInfo is only used for tests

func NewClusterInfo

func NewClusterInfo() *ClusterInfo

func (*ClusterInfo) GetCbtData

func (c *ClusterInfo) GetCbtData() map[string]int

GetCbtData Get the CBT enabled settings for vms. This will be a count of how many VMs are enabled (true) and how many are disabled (false).

func (*ClusterInfo) GetHardwareVersion

func (c *ClusterInfo) GetHardwareVersion() map[string]int

func (*ClusterInfo) GetHostVersions

func (c *ClusterInfo) GetHostVersions() map[string]ESXiVersionInfo

func (*ClusterInfo) GetVCenterHostnames

func (c *ClusterInfo) GetVCenterHostnames() []string

func (*ClusterInfo) GetVCenterVersion

func (c *ClusterInfo) GetVCenterVersion(hostname string) (string, string)

func (*ClusterInfo) MarkHostForProcessing

func (c *ClusterInfo) MarkHostForProcessing(hostname string) (string, bool)

func (*ClusterInfo) Reset

func (c *ClusterInfo) Reset()

func (*ClusterInfo) SetCbtData

func (c *ClusterInfo) SetCbtData(enabled string)

SetCbtData Set a node as being enabled or disabled for CBT

func (*ClusterInfo) SetHardwareVersion

func (c *ClusterInfo) SetHardwareVersion(version string)

func (*ClusterInfo) SetHostVersion

func (c *ClusterInfo) SetHostVersion(hostname, version, apiVersion string)

func (*ClusterInfo) SetVCenterVersion

func (c *ClusterInfo) SetVCenterVersion(hostname, version, apiVersion string)

type ESXiVersionInfo

type ESXiVersionInfo struct {
	Version    string
	APIVersion string
}

type VSphereConfig

type VSphereConfig struct {
	Config       *vsphere.Config
	LegacyConfig *legacy.VSphereConfig
}

VSphereConfig contains configuration for cloud provider. It wraps the legacy version and the newer upstream version with yaml support

func (*VSphereConfig) LoadConfig

func (c *VSphereConfig) LoadConfig(data string) error

LoadConfig load the desired config into this config object.

Jump to

Keyboard shortcuts

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