Documentation ¶
Index ¶
- Constants
- Variables
- type DatacenterInfo
- type FindVM
- type GRPCServer
- type NodeInfo
- type NodeManager
- func (nm *NodeManager) AddNodeInfoToVCList(vcenter string, datacenter string, node *NodeInfo)
- func (nm *NodeManager) DiscoverNode(nodeID string, searchBy FindVM) error
- func (nm *NodeManager) ExportNodes(vcenter string, datacenter string, nodeList *[]*pb.Node) error
- func (nm *NodeManager) FindDatacenterInfoInVCList(vcenter string, datacenter string) (*DatacenterInfo, error)
- func (nm *NodeManager) FindNodeInfoInVCList(vcenter string, datacenter string, UUID string) (*NodeInfo, error)
- func (nm *NodeManager) RegisterNode(node *v1.Node)
- func (nm *NodeManager) UnregisterNode(node *v1.Node)
- type VCenterInfo
- type VSphere
- func (vs *VSphere) Clusters() (cloudprovider.Clusters, bool)
- func (vs *VSphere) HasClusterID() bool
- func (vs *VSphere) Initialize(clientBuilder controller.ControllerClientBuilder)
- func (vs *VSphere) Instances() (cloudprovider.Instances, bool)
- func (vs *VSphere) LoadBalancer() (cloudprovider.LoadBalancer, bool)
- func (vs *VSphere) ProviderName() string
- func (vs *VSphere) Routes() (cloudprovider.Routes, bool)
- func (vs *VSphere) ScrubDNS(nameservers, searches []string) (nsOut, srchOut []string)
- func (vs *VSphere) Zones() (cloudprovider.Zones, bool)
Constants ¶
View Source
const ( ProviderPrefix string = "vsphere://" //CredentialManagerErrMsg = "The Credential Manager is not initialized" NodeNotFoundErrMsg = "Node not found" )
View Source
const ( FindVMByUUID FindVM = iota // 0 FindVMByName // 1 // Error Messages VCenterNotFoundErrMsg = "vCenter not found" DatacenterNotFoundErrMsg = "Datacenter not found" VMNotFoundErrMsg = "VM not found" )
View Source
const (
ProviderName string = "vsphere"
)
Variables ¶
View Source
var ( ErrVCenterNotFound = errors.New(VCenterNotFoundErrMsg) ErrDatacenterNotFound = errors.New(DatacenterNotFoundErrMsg) ErrVMNotFound = errors.New(VMNotFoundErrMsg) )
Error constants
View Source
var ( //ErrCredentialManager = errors.New(CredentialManagerErrMsg) ErrNodeNotFound = errors.New(NodeNotFoundErrMsg) )
Error constants
Functions ¶
This section is empty.
Types ¶
type DatacenterInfo ¶
type DatacenterInfo struct {
// contains filtered or unexported fields
}
type NodeInfo ¶
type NodeInfo struct { UUID string NodeName string NodeAddresses []v1.NodeAddress // contains filtered or unexported fields }
Stores info about the kubernetes node
type NodeManager ¶
type NodeManager struct {
// contains filtered or unexported fields
}
func (*NodeManager) AddNodeInfoToVCList ¶
func (nm *NodeManager) AddNodeInfoToVCList(vcenter string, datacenter string, node *NodeInfo)
AddNodeInfoToVCList creates a relational mapping from VC -> DC -> VM/Node
func (*NodeManager) DiscoverNode ¶
func (nm *NodeManager) DiscoverNode(nodeID string, searchBy FindVM) error
func (*NodeManager) ExportNodes ¶
ExportNodes transforms the NodeInfoList to []*pb.Node
func (*NodeManager) FindDatacenterInfoInVCList ¶
func (nm *NodeManager) FindDatacenterInfoInVCList(vcenter string, datacenter string) (*DatacenterInfo, error)
FindDatacenterInfoInVCList retrieves the DatacenterInfo from the tree
func (*NodeManager) FindNodeInfoInVCList ¶
func (nm *NodeManager) FindNodeInfoInVCList(vcenter string, datacenter string, UUID string) (*NodeInfo, error)
FindNodeInfoInVCList retrieves the NodeInfo from the tree
func (*NodeManager) RegisterNode ¶
func (nm *NodeManager) RegisterNode(node *v1.Node)
RegisterNode - Handler when node is removed from k8s cluster.
func (*NodeManager) UnregisterNode ¶
func (nm *NodeManager) UnregisterNode(node *v1.Node)
UnregisterNode - Handler when node is removed from k8s cluster.
type VCenterInfo ¶
type VCenterInfo struct {
// contains filtered or unexported fields
}
type VSphere ¶
type VSphere struct {
// contains filtered or unexported fields
}
VSphere is an implementation of cloud provider Interface for VSphere.
func (*VSphere) HasClusterID ¶
func (*VSphere) Initialize ¶
func (vs *VSphere) Initialize(clientBuilder controller.ControllerClientBuilder)
func (*VSphere) LoadBalancer ¶
func (vs *VSphere) LoadBalancer() (cloudprovider.LoadBalancer, bool)
func (*VSphere) ProviderName ¶
Click to show internal directories.
Click to hide internal directories.