Documentation
¶
Index ¶
- Constants
- Variables
- type ClusterInfo
- func (c *ClusterInfo) GetCbtData() map[string]int
- func (c *ClusterInfo) GetHardwareVersion() map[string]int
- func (c *ClusterInfo) GetHostVersions() map[string]ESXiVersionInfo
- func (c *ClusterInfo) GetVCenterHostnames() []string
- func (c *ClusterInfo) GetVCenterVersion(hostname string) (string, string)
- func (c *ClusterInfo) MarkHostForProcessing(hostname string) (string, bool)
- func (c *ClusterInfo) Reset()
- func (c *ClusterInfo) SetCbtData(enabled string)
- func (c *ClusterInfo) SetHardwareVersion(version string)
- func (c *ClusterInfo) SetHostVersion(hostname, version, apiVersion string)
- func (c *ClusterInfo) SetVCenterVersion(hostname, version, apiVersion string)
- type ESXiVersionInfo
- type VSphereConfig
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 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.
Click to show internal directories.
Click to hide internal directories.