Versions in this module Expand all Collapse all v0 v0.1.1 Dec 18, 2018 v0.1.0 Dec 9, 2018 Changes in this version + const ConnectionNotFoundErrMsg + const FindVMByName + const FindVMByUUID + const POOL_SIZE + const QUEUE_SIZE + const UnsupportedConfigurationErrMsg + var ErrConnectionNotFound = errors.New(ConnectionNotFoundErrMsg) + var ErrUnsupportedConfiguration = errors.New(UnsupportedConfigurationErrMsg) + type ConnectionManager struct + VsphereInstanceMap map[string]*VSphereInstance + func NewConnectionManager(config *vcfg.Config, secretLister v1.SecretLister) *ConnectionManager + func (cm *ConnectionManager) Connect(ctx context.Context, vcenter string) error + func (cm *ConnectionManager) ConnectByInstance(ctx context.Context, vsphereInstance *VSphereInstance) error + func (cm *ConnectionManager) Logout() + func (cm *ConnectionManager) Verify() error + func (cm *ConnectionManager) VerifyWithContext(ctx context.Context) error + func (cm *ConnectionManager) WhichVCandDCByFCDId(ctx context.Context, fcdID string) (*FcdDiscoveryInfo, error) + func (cm *ConnectionManager) WhichVCandDCByNodeId(ctx context.Context, nodeID string, searchBy FindVM) (*VmDiscoveryInfo, error) + func (cm *ConnectionManager) WhichVCandDCByZone(ctx context.Context, zone string) (*DiscoveryInfo, error) + type DiscoveryInfo struct + DataCenter *vclib.Datacenter + VcServer string + type FcdDiscoveryInfo struct + DataCenter *vclib.Datacenter + FCDInfo *vclib.FirstClassDiskInfo + VcServer string + type FindVM int + type VSphereInstance struct + Cfg *vcfg.VirtualCenterConfig + Conn *vclib.VSphereConnection + type VmDiscoveryInfo struct + DataCenter *vclib.Datacenter + NodeName string + UUID string + VM *vclib.VirtualMachine + VcServer string